[metrics] add personal uptime checks to blackbox-exporter
change tsuxlqstsmpmkxzsvzuwkpyyruklmzyz
commit 94733c223ac03332694f9a66dea761bcacf4fc6b
author Alpha Chen <alpha@kejadlen.dev>
date
parent mouvzpyn
diff --git a/lotus-land-story/templates/scrape.yml b/lotus-land-story/templates/scrape.yml
index 7701d53..6d198fb 100644
--- a/lotus-land-story/templates/scrape.yml
+++ b/lotus-land-story/templates/scrape.yml
@@ -36,10 +36,43 @@ scrape_configs:
       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://birdnetpi.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
+        - https://homebox
+        - https://irc
+        - https://logs
+        - https://metrics
+        - https://pihole/admin/login
+        - https://rss
     relabel_configs:
       - source_labels: [__address__]
         target_label: __param_target
diff --git a/mountain-of-faith/main.yml b/mountain-of-faith/main.yml
index 5a83095..baadce2 100644
--- a/mountain-of-faith/main.yml
+++ b/mountain-of-faith/main.yml
@@ -165,6 +165,13 @@
               prober: http
               http:
                 preferred_ip_protocol: ip4
+            http_internal:
+              prober: http
+              http:
+                preferred_ip_protocol: ip4
+                tls_config:
+                  # TODO use ca_file instead
+                  insecure_skip_verify: true
             http_ipv6:
               prober: http
             icmp: