grafana: use instant queries for fleet dashboard stat panels
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m6s
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m6s
Prevents stat panels from being affected by dashboard time range selection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,8 @@
|
|||||||
{
|
{
|
||||||
"expr": "count(nixos_flake_revision_behind{tier=~\"$tier\"} == 1)",
|
"expr": "count(nixos_flake_revision_behind{tier=~\"$tier\"} == 1)",
|
||||||
"legendFormat": "Behind",
|
"legendFormat": "Behind",
|
||||||
"refId": "A"
|
"refId": "A",
|
||||||
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
@@ -69,7 +70,8 @@
|
|||||||
{
|
{
|
||||||
"expr": "count(nixos_config_mismatch{tier=~\"$tier\"} == 1)",
|
"expr": "count(nixos_config_mismatch{tier=~\"$tier\"} == 1)",
|
||||||
"legendFormat": "Need Reboot",
|
"legendFormat": "Need Reboot",
|
||||||
"refId": "A"
|
"refId": "A",
|
||||||
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
@@ -103,7 +105,8 @@
|
|||||||
{
|
{
|
||||||
"expr": "count(nixos_flake_info{tier=~\"$tier\"})",
|
"expr": "count(nixos_flake_info{tier=~\"$tier\"})",
|
||||||
"legendFormat": "Hosts",
|
"legendFormat": "Hosts",
|
||||||
"refId": "A"
|
"refId": "A",
|
||||||
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
@@ -130,7 +133,8 @@
|
|||||||
{
|
{
|
||||||
"expr": "max(nixos_flake_input_age_seconds{input=\"nixpkgs\", tier=~\"$tier\"})",
|
"expr": "max(nixos_flake_input_age_seconds{input=\"nixpkgs\", tier=~\"$tier\"})",
|
||||||
"legendFormat": "Nixpkgs",
|
"legendFormat": "Nixpkgs",
|
||||||
"refId": "A"
|
"refId": "A",
|
||||||
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
@@ -164,7 +168,8 @@
|
|||||||
{
|
{
|
||||||
"expr": "count(nixos_flake_revision_behind{tier=~\"$tier\"} == 0)",
|
"expr": "count(nixos_flake_revision_behind{tier=~\"$tier\"} == 0)",
|
||||||
"legendFormat": "Up-to-date",
|
"legendFormat": "Up-to-date",
|
||||||
"refId": "A"
|
"refId": "A",
|
||||||
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
|
|||||||
Reference in New Issue
Block a user