From 8b1002aef3cb0ca9f949f7aafa233e8c0ff85e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Barnouin?= Date: Fri, 18 Oct 2024 15:34:19 +0200 Subject: [PATCH] Add kuma prometheus exporter --- services/grafana/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/grafana/default.nix b/services/grafana/default.nix index c9f73d0..eb7e1c7 100644 --- a/services/grafana/default.nix +++ b/services/grafana/default.nix @@ -75,6 +75,16 @@ in enable = true; port = 9001; scrapeConfigs = [ + { + job_name = "kuma"; + scrape_interval = "30s"; + scheme = "http"; + static_configs = [{ + targets = [ "192.168.1.90:3001" ]; + }]; + basic_auth.username = "tbarnouin"; + basic_auth.password_file = "/run/secrets/grafana/kuma_token"; + } { job_name = "grafana"; static_configs = [{