From 47ee117d32270bbd288da25a2da11e42674c02cc Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 4 Jul 2023 20:14:19 -0400 Subject: [PATCH] blackbox exporter file, not actually using yet --- .../override.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 filesystem/etc/systemd/system/prometheus-blackbox-exporter.service.d/override.conf 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 -- 2.30.2