From 6295f18f7c911567637348a1262ba9da3d176848 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 18 Jul 2024 23:06:15 +0530 Subject: [PATCH] rico0: add systemd-exporter metrics --- hosts/rico0/services/apps/prometheus.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/rico0/services/apps/prometheus.nix b/hosts/rico0/services/apps/prometheus.nix index 45769c7..9cfb449 100644 --- a/hosts/rico0/services/apps/prometheus.nix +++ b/hosts/rico0/services/apps/prometheus.nix @@ -12,6 +12,18 @@ _: { enable = true; listenAddress = "127.0.0.1"; scrapeConfigs = [ + { + job_name = "systemd"; + scheme = "https"; + metrics_path = "/systemd-metrics"; + static_configs = [ + { targets = [ "rico0.labs.adtya.xyz" ]; } + { targets = [ "rico1.labs.adtya.xyz" ]; } + { targets = [ "rico2.labs.adtya.xyz" ]; } + { targets = [ "wynne.labs.adtya.xyz" ]; } + { targets = [ "layne.labs.adtya.xyz" ]; } + ]; + } { job_name = "node"; scheme = "https";