auto refresh

This commit is contained in:
Henry Hiles 2025-10-30 22:25:25 -04:00
commit 91656004bc
No known key found for this signature in database

View file

@ -1,6 +1,7 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
pkgs.writers.writeJSON "status.json" { pkgs.writers.writeJSON "status.json" {
title = "Service Status"; title = "Service Status";
refresh = "10s";
panels = panels =
let let
status = null; status = null;
@ -43,6 +44,7 @@ pkgs.writers.writeJSON "status.json" {
type = "prometheus"; type = "prometheus";
uid = "prometheus"; uid = "prometheus";
}; };
options.graphMode = "none";
fieldConfig = { fieldConfig = {
defaults = { defaults = {
color.mode = "thresholds"; color.mode = "thresholds";
@ -68,7 +70,6 @@ pkgs.writers.writeJSON "status.json" {
} }
]; ];
}; };
unit = "none";
}; };
}; };
targets = [ targets = [