From e9b7a4314ff58ec678dfd14fbefbb116c3c4758b Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Mon, 20 May 2024 01:12:31 +0200 Subject: [PATCH] scrape r09-receiver data every 10 seconds --- hosts/notice-me-senpai/grafana.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/notice-me-senpai/grafana.nix b/hosts/notice-me-senpai/grafana.nix index 2c58eda..bb1c7a3 100644 --- a/hosts/notice-me-senpai/grafana.nix +++ b/hosts/notice-me-senpai/grafana.nix @@ -54,7 +54,11 @@ in replacement = "${exporter}"; } ]; - }; + } // ( + if exporter == "r09-receiver" then { + scrape_interval = "10s"; + } else {} + ); # generate scraper config makeScrapeConfigHost = name: exporters: lib.mapAttrs (makeScrapeConfig name) exporters;