From bd58d07001d41002d19e667ec103bdadd632dcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 18 May 2025 00:59:55 +0200 Subject: [PATCH] Monitor wireguard --- hosts/http-proxy/wireguard.nix | 4 ++++ services/monitoring/prometheus.nix | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/hosts/http-proxy/wireguard.nix b/hosts/http-proxy/wireguard.nix index ef5a4d1..b7c545e 100644 --- a/hosts/http-proxy/wireguard.nix +++ b/hosts/http-proxy/wireguard.nix @@ -26,4 +26,8 @@ }; }; }; + # monitoring + services.prometheus.exporters.wireguard = { + enable = true; + }; } diff --git a/services/monitoring/prometheus.nix b/services/monitoring/prometheus.nix index c5f91d7..068090f 100644 --- a/services/monitoring/prometheus.nix +++ b/services/monitoring/prometheus.nix @@ -334,6 +334,14 @@ } ]; } + { + job_name = "wireguard"; + static_configs = [ + { + targets = [ "http-proxy.home.2rjus.net:9586" ]; + } + ]; + } ]; }; }