aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/prometheus/templates/prometheus.yml.j2
blob: 0c6e7cd61650fa4819368c5df3c7bbf86c08de68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Config managed by ansible
# manage this box via leckie pl0x
# - CYBERIA HEAVY INDUSTRIES

global:
  scrape_interval:     15s
  evaluation_interval: 15s

alerting:
  alertmanagers:
    - static_configs:
      - targets: ['localhost:9093']

rule_files:
  - "ops-handbook/rules/*"

scrape_configs:
  - job_name: 'prometheus'
    scrape_interval: 5s
    scrape_timeout: 5s
    static_configs:
      - targets: ['localhost:9090']
  - job_name: node
    static_configs:
      - targets: [
{% for server in groups['all'] %}
        '{{ server }}:9100',
{% endfor %}
        # Static Servers
        'elliot.cyberia.club:9100',
        'baikal.cyberia.club:9100',
        'matrix.cyberia.club:9100'
        ]
  - job_name: synapse
    scheme: 'https'
    metrics_path: '/_synapse/metrics'
    static_configs:
      - targets: [
        'matrix.cyberia.club'
    ]
  - job_name: postgres
    static_configs:
      - targets: [
        'matrix.cyberia.club:9187'
    ]
  - job_name: libvirtd
    static_configs:
      - targets: [
        'baikal.cyberia.club:9729'
    ]
  - job_name: meta.sr.ht
    scheme: 'https'
    static_configs:
      - targets: [
        'meta.cyberia.club:443'
      ]
  - job_name: builds.sr.ht
    scheme: 'https'
    static_configs:
      - targets: [
        'builds.cyberia.club:443'
      ]
  - job_name: lists.sr.ht
    scheme: 'https'
    static_configs:
      - targets: [
        'lists.cyberia.club:443'
      ]
  - job_name: todo.sr.ht
    scheme: 'https'
    static_configs:
      - targets: [
        'todo.cyberia.club:443'
      ]
  - job_name: git.sr.ht
    scheme: 'https'
    static_configs:
      - targets: [
        'giit.cyberia.club:443'
      ]
  - job_name: 'blackbox-http'
    metrics_path: /probe
    params:
      module: [http_2xx]
    static_configs:
      - targets:
        # Certificate monitoring
        - https://matrix.cyberia.club
        - https://stream.cyberia.club
        - https://cafe.cyberia.club
        - https://riot.cyberia.club
        - https://nullhex.com
        - https://git.cyberia.club
        - https://cyberia.club
        - https://capsul.org
        - https://btcpay.cyberia.club
        - https://nshc-feedback.nullhex.com/
        - https://hygiene.nullhex.com/
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:9115
  - job_name: 'blackbox-smtp'
    metrics_path: /probe
    params:
      module: [smtp_starttls]
    static_configs:
      - targets:
        - m1.nullhex.com:587
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:9115