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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
scrape_configs:

  - job_name: anubis
    static_configs:
      - targets: ['anubis:9090']

  - job_name: authelia
    static_configs:
      - targets: ['authelia:9959']

  - job_name: blackbox-exporter-dns
    metrics_path: /probe
    params:
      module: [ dns ]
    static_configs:
      - targets:
        - 8.8.8.8
        - 8.8.4.4
        - 1.1.1.1
        - 1.0.0.1
        - 9.9.9.9
        - 149.112.112.112
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - source_labels: [__param_target]
        target_label: target # for the dashboard
      - target_label: __address__
        replacement: mountain-of-faith:9115

  - job_name: blackbox-exporter-http
    metrics_path: /probe
    params:
      module: [ http ]
    static_configs:
      - targets:
        # internet
        - https://www.facebook.com
        - https://www.google.com
        - https://www.linuxserver.io
        - https://www.youtube.com
        # personal
        - https://auth.chislan.family
        - https://auth.kejadlen.dev
        - https://birbs.chislan.family
        - https://git.kejadlen.dev
        - https://hey.kejadlen.dev
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - source_labels: [__param_target]
        target_label: target # for the dashboard
      - target_label: __address__
        replacement: mountain-of-faith:9115

  - job_name: blackbox-exporter-http-internal
    metrics_path: /probe
    params:
      module: [ http_internal ]
    static_configs:
      - targets:
        - https://books
        - https://docs
        - https://grafana
        - https://home-assistant-509
        - https://home-assistant-5119
        - https://homebox
        - https://irc
        - https://logs
        - https://metrics
        - https://pihole/admin/login
        - https://rss
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - source_labels: [__param_target]
        target_label: target # for the dashboard
      - target_label: __address__
        replacement: mountain-of-faith:9115

  - job_name: blackbox-exporter-icmp
    metrics_path: /probe
    params:
      module: [ icmp ]
    static_configs:
      - targets:
        - facebook.com
        - google.com
        - linuxserver.io
        - youtube.com
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - source_labels: [__param_target]
        target_label: target # for the dashboard
      - target_label: __address__
        replacement: mountain-of-faith:9115

  - job_name: cadvisor
    scrape_interval: 5s
    static_configs:
      - targets:
          - cadvisor:8080

  - job_name: caddy
    static_configs:
      - targets:
          - caddy:2019
          - legacy-of-lunatic-kingdom:2019

  - job_name: docker
    static_configs:
      - targets: ['host.docker.internal:9323']

  - job_name: gitea
    bearer_token: {{ gitea.metrics.token }}
    static_configs:
      - targets: ['gitea:3000']

  - job_name: gotosocial
    metrics_path: /metrics
    scheme: http
    static_configs:
      - targets: ['gotosocial:9464']

  - job_name: grafana
    static_configs:
      - targets: ['grafana:3000']

  - job_name: home-assistant
    scrape_interval: 60s
    metrics_path: /api/prometheus

    authorization:
      credentials: {{ home_assistant.access_token }}

    scheme: https
    tls_config:
      ca_file: /caddy-root.crt
    static_configs:
      - targets: ['home-assistant-5119']

  - job_name: linode
    linode_sd_configs:
      - authorization:
          credentials: {{ linode.api_token }}
        port: 9100
    relabel_configs:
      - source_labels: [__meta_linode_status]
        regex: running
        action: keep
      - source_labels: [__meta_linode_instance_label]
        target_label: __address__
        replacement: $1:9100
      # Existing dashboards match on the node-exporter job.
      - target_label: job
        replacement: node-exporter

  - job_name: miniflux
    static_configs:
      - targets: ['miniflux:8080']

  - job_name: minio-job
    bearer_token: {{ minio.cluster_token }}
    metrics_path: /minio/v2/metrics/cluster
    scheme: http
    static_configs:
    - targets: ['mountain-of-faith:9000']

  - job_name: minio-job-bucket
    bearer_token: {{ minio.bucket_token }}
    metrics_path: /minio/v2/metrics/bucket
    scheme: http
    static_configs:
    - targets: ['mountain-of-faith:9000']

  - job_name: node-exporter
    static_configs:
      - targets:
          - hopeless-masquerade:9100
          - legacy-of-lunatic-kingdom:9100
          - mountain-of-faith:9100

  - job_name: paperless
    metrics_path: /flower/metrics
    static_configs:
      - targets: ['paperless-ngx:5555']

  - job_name: postgres
    static_configs:
      - targets: ['host.docker.internal:9187']
    relabel_configs:
      - source_labels: [__address__]
        regex: 'host\.docker\.internal:9187'
        target_label: instance
        replacement: 'lotus-land-story:9187'

  - job_name: "prusalink"
    scrape_timeout: 60s
    scrape_interval: 60s # giving API some time to respond
    metrics_path: "/metrics/prusalink"
    static_configs:
      - targets: ["mountain-of-faith:10009"]

  - job_name: "prusaudp"
    scrape_interval: 1s
    metrics_path: "/metrics/udp"
    static_configs:
      - targets: ["mountain-of-faith:10009"]

  - job_name: syncthing-legacy-of-lunatic-kingdom
    bearer_token: {{ syncthing.legacy_of_lunatic_kingdom.api_key }}
    static_configs:
      - targets:
        - legacy-of-lunatic-kingdom:8384

  - job_name: syncthing-mountain-of-faith
    bearer_token: {{ syncthing.mountain_of_faith.api_key }}
    static_configs:
      - targets:
        - mountain-of-faith:8384

  - job_name: victoria-logs
    static_configs:
      - targets: ['victoria-logs:9428']