repos / ops

infra for pico services
git clone https://github.com/picosh/ops.git

commit
8e1a24f
parent
0dfff9b
author
Antonio Mika
date
2024-01-03 03:16:20 +0000 UTC
Add monitoring for irc.pico.sh
1 files changed,  +34, -0
M monitoring/prometheus/config/prometheus.yml
+34, -0
 1@@ -328,3 +328,37 @@ scrape_configs:
 2           - http://chat.pico.sh
 3           - http://auth.pico.sh
 4           - http://imgproxy.pico.sh
 5+  - job_name: blackbox_exporter_tls
 6+    metrics_path: "/probe"
 7+    params:
 8+      module:
 9+        - tcps_connect
10+    relabel_configs:
11+      - source_labels:
12+          - __address__
13+        target_label: __param_target
14+      - source_labels:
15+          - __param_target
16+        target_label: instance
17+      - target_label: __address__
18+        replacement: blackbox_exporter:9115
19+    static_configs:
20+      - targets:
21+          - irc.pico.sh:6697
22+  - job_name: blackbox_exporter_tls_ip6
23+    metrics_path: "/probe"
24+    params:
25+      module:
26+        - tcps_connect_ip6
27+    relabel_configs:
28+      - source_labels:
29+          - __address__
30+        target_label: __param_target
31+      - source_labels:
32+          - __param_target
33+        target_label: instance
34+      - target_label: __address__
35+        replacement: blackbox_exporter:9115
36+    static_configs:
37+      - targets:
38+          - irc.pico.sh:6697