From 95e8a0a8016746ce5df14fb682433deb2866698c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 27 Dec 2024 14:23:40 +0100 Subject: [PATCH] fix(users/flokli/nixos-tvix-cache): set timeInterval for metrics DS The data source defaults to 15s of time interval. As alloy scrapes every 60s only, this causes watching dashboards with a smaller time range to just not show any data, like the CPU graph being empty for a time range < last 12h. Fix by setting time interval to 60s. Co-Authored-By: WilliButz Change-Id: Ife306b2fda968654cad818a82f99e0011819be3c Reviewed-on: https://cl.tvl.fyi/c/depot/+/12923 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: raitobezarius --- users/flokli/nixos/nixos-tvix-cache/monitoring.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/users/flokli/nixos/nixos-tvix-cache/monitoring.nix b/users/flokli/nixos/nixos-tvix-cache/monitoring.nix index 5a74939a0..cca6cb4bf 100644 --- a/users/flokli/nixos/nixos-tvix-cache/monitoring.nix +++ b/users/flokli/nixos/nixos-tvix-cache/monitoring.nix @@ -165,6 +165,9 @@ in type = "prometheus"; uid = "mimir"; url = "http://localhost:9009/prometheus"; + jsonData = { + timeInterval = "60s"; + }; } ]; };