summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/prometheus')
-rw-r--r--hosts/vidhar/prometheus/default.nix12
1 files changed, 12 insertions, 0 deletions
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 {
241 ]; 241 ];
242 scrape_interval = "5s"; 242 scrape_interval = "5s";
243 } 243 }
244 { job_name = "pushgateway";
245 honor_labels = true;
246 static_configs = [
247 { targets = ["localhost:9091"];}
248 ];
249 scrape_interval = "5s";
250 }
244 ]; 251 ];
245 252
246 rules = [ 253 rules = [
@@ -288,7 +295,12 @@ in {
288 ]; 295 ];
289 }) 296 })
290 ]; 297 ];
298
299 pushgateway = {
300 enable = true;
301 };
291 }; 302 };
303
292 users.users.${config.services.prometheus.exporters.unbound.user} = { 304 users.users.${config.services.prometheus.exporters.unbound.user} = {
293 description = "Prometheus unbound exporter service user"; 305 description = "Prometheus unbound exporter service user";
294 isSystemUser = true; 306 isSystemUser = true;