blackbox exporter file, not actually using yet
authorIan Kelling <ian@iankelling.org>
Wed, 5 Jul 2023 00:14:19 +0000 (20:14 -0400)
committerIan Kelling <ian@iankelling.org>
Wed, 5 Jul 2023 00:14:19 +0000 (20:14 -0400)
filesystem/etc/systemd/system/prometheus-blackbox-exporter.service.d/override.conf [new file with mode: 0644]

diff --git a/filesystem/etc/systemd/system/prometheus-blackbox-exporter.service.d/override.conf b/filesystem/etc/systemd/system/prometheus-blackbox-exporter.service.d/override.conf
new file mode 100644 (file)
index 0000000..19d7b5c
--- /dev/null
@@ -0,0 +1,16 @@
+### DEPLOYED BY ANSBILE. CHANGES WILL BE OVERWRITTEN.
+# apparently alertmanager failes to start when the internet is down:
+# Mar 10 13:20:09 kd prometheus-alertmanager[2719]: level=error ts=2022-03-10T18:20:09.907Z caller=main.go:243 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address found, and explicit IP not provided"
+
+[Unit]
+# needed to continually restart
+StartLimitIntervalSec=0
+
+[Service]
+Restart=always
+# time to sleep before restarting a service
+RestartSec=300
+
+# empty signifies to replace the existing value
+ExecStart=
+ExecStart=/usr/local/bin/blackbox_exporter $ARGS