diff options
author | Florian Klink <flokli@flokli.de> | 2024-12-27T13·23+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-12-27T13·37+0000 |
commit | 95e8a0a8016746ce5df14fb682433deb2866698c (patch) | |
tree | a2384238d583aef9cb95a3cafb0d14a531d87f88 | |
parent | b36f2e3a32f580e508112faa3e958ce5f8d3ced1 (diff) |
fix(users/flokli/nixos-tvix-cache): set timeInterval for metrics DS r/9036
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 <willibutz@posteo.de> Change-Id: Ife306b2fda968654cad818a82f99e0011819be3c Reviewed-on: https://cl.tvl.fyi/c/depot/+/12923 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz>
-rw-r--r-- | users/flokli/nixos/nixos-tvix-cache/monitoring.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/users/flokli/nixos/nixos-tvix-cache/monitoring.nix b/users/flokli/nixos/nixos-tvix-cache/monitoring.nix index 5a74939a0acd..cca6cb4bf1b8 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"; + }; } ]; }; |