From 370232723fc3118ae6f13c1e34b7d4af8b56f058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 19 Jan 2022 20:37:30 +0100 Subject: [PATCH] Signifficantly increase scraping speed --- config/services/prometheus.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/services/prometheus.nix b/config/services/prometheus.nix index 2ebaa2df..326fba68 100644 --- a/config/services/prometheus.nix +++ b/config/services/prometheus.nix @@ -2,6 +2,10 @@ services.prometheus = { enable = true; port = 9002; + globalConfig = { + scrape_interval = "10s"; + scrape_timeout = "2s"; + }; scrapeConfigs = [ { job_name = "node_exporter";