From c42932db0e10addac7d1fca5e9960f60d497e2b5 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 20 Dec 2021 17:49:06 +0100 Subject: [PATCH] Trying out smokeping exporter --- hosts/monitoring-3/configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hosts/monitoring-3/configuration.nix b/hosts/monitoring-3/configuration.nix index db2748b..050f72b 100644 --- a/hosts/monitoring-3/configuration.nix +++ b/hosts/monitoring-3/configuration.nix @@ -62,6 +62,14 @@ in { networking.firewall.allowedUDPPorts = [ 54523 ]; services.prometheus.exporters.node.enable = true; + services.prometheus.exporters.smokeping = { + enable = true; + listenAddress = "[::1]"; + port = 9374; + hosts = [ + "clerie.de" + ]; + }; services.prometheus.xmpp-alerts = { enable = true; @@ -162,6 +170,17 @@ in { } ]; } + { + job_name = "smokeping"; + scrape_interval = "20s"; + static_configs = [ + { + targets = [ + "monitoring-3.mon.clerie.de:9374" + ]; + } + ]; + } ]; alertmanagers = [ {