From 50bd1e399dfb216525983bab74f71eb011273956 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 2 Jan 2022 01:08:23 +0100 Subject: ... --- hosts/vidhar/prometheus/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'hosts') diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 3d0af319..af21ee7d 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -149,6 +149,20 @@ in { relabel_configs = relabelHosts; scrape_interval = "1s"; } + { job_name = "loki"; + static_configs = [ + { targets = ["localhost:9094"]; } + ]; + relabel_configs = relabelHosts; + scrape_interval = "1s"; + } + { job_name = "promtail"; + static_configs = [ + { targets = ["localhost:9080"]; } + ]; + relabel_configs = relabelHosts; + scrape_interval = "1s"; + } ]; }; users.users.${config.services.prometheus.exporters.unbound.user} = { -- cgit v1.2.3