Prometheus: lower scraping frequency

This commit is contained in:
Filippo Berto 2024-06-08 14:39:56 +02:00
parent b4b3ef3a98
commit 3094b2eb12
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -348,7 +348,7 @@ in
};
systemd.enable = true;
};
globalConfig = { scrape_interval = "5s"; };
globalConfig = { scrape_interval = "10s"; };
scrapeConfigs = [
{ job_name = "node"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }]; }
{ job_name = "process"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.process.port}" ]; }]; }