From 52e32157c076a5c2999a49de8b524f50e35c665d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 29 May 2023 22:10:27 +0200 Subject: prometheus-borg-exporter --- hosts/vidhar/prometheus/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hosts/vidhar/prometheus') diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 133ddbbc..d6d29c17 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -241,6 +241,13 @@ in { ]; scrape_interval = "5s"; } + { job_name = "pushgateway"; + honor_labels = true; + static_configs = [ + { targets = ["localhost:9091"];} + ]; + scrape_interval = "5s"; + } ]; rules = [ @@ -288,7 +295,12 @@ in { ]; }) ]; + + pushgateway = { + enable = true; + }; }; + users.users.${config.services.prometheus.exporters.unbound.user} = { description = "Prometheus unbound exporter service user"; isSystemUser = true; -- cgit v1.2.3