From 7602407529dbd7844ae9886cdf53e95465ef5be8 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Fri, 28 Apr 2023 12:12:21 -0300 Subject: [PATCH] sitespeedio: run more frequently, keep metrics for longer --- hosts/celaeno/services/sitespeedio.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/celaeno/services/sitespeedio.nix b/hosts/celaeno/services/sitespeedio.nix index fe89d1b3..1f04bc77 100644 --- a/hosts/celaeno/services/sitespeedio.nix +++ b/hosts/celaeno/services/sitespeedio.nix @@ -2,7 +2,7 @@ services = { sitespeedio = { enable = true; - period = "hourly"; + period = "*:0/10"; # Every ten minutes urls = [ "https://m7.rs" "https://m7.rs/blog" @@ -18,7 +18,12 @@ prometheus.exporters.graphite = { enable = true; - extraFlags = [ "--graphite.mapping-strict-match" ]; # Drop non-matched metrics + extraFlags = [ + # Drop non-matched metrics + "--graphite.mapping-strict-match" + # Keep samples for an hour + "--graphite.sample-expiry=1h" + ]; mappingSettings.mappings = [ # Page summaries {