From: Ian Kelling Date: Wed, 5 Jul 2023 00:14:19 +0000 (-0400) Subject: blackbox exporter file, not actually using yet X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=47ee117d32270bbd288da25a2da11e42674c02cc blackbox exporter file, not actually using yet --- 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 index 0000000..19d7b5c --- /dev/null +++ b/filesystem/etc/systemd/system/prometheus-blackbox-exporter.service.d/override.conf @@ -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