From 666f2cab39aa5e0d3871ee565b7aacdf0016dd10 Mon Sep 17 00:00:00 2001 From: spypsy <6403450+spypsy@users.noreply.github.com> Date: Wed, 29 Oct 2025 23:25:36 +0000 Subject: [PATCH] fix: no new blocks alerting - Alert when no block data can be loaded by our metrics dashboard - bonus step: use `increase` which handles missing / weird (reset) data more robustly --- spartan/metrics/grafana/alerts/rules.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spartan/metrics/grafana/alerts/rules.yaml b/spartan/metrics/grafana/alerts/rules.yaml index 68c32d100567..cca649a87154 100644 --- a/spartan/metrics/grafana/alerts/rules.yaml +++ b/spartan/metrics/grafana/alerts/rules.yaml @@ -187,7 +187,7 @@ groups: datasourceUid: spartan-metrics-prometheus model: editorMode: code - expr: max by (k8s_namespace_name) (delta(aztec_archiver_block_height{k8s_namespace_name!="",aztec_status=""}[$__rate_interval])) + expr: max by (k8s_namespace_name) (increase(aztec_archiver_block_height{k8s_namespace_name!="",aztec_status=""}[10m])) instant: true intervalMs: 60000 legendFormat: __auto @@ -252,11 +252,11 @@ groups: type: threshold dashboardUid: "" panelId: 0 - noDataState: NoData + noDataState: Alerting execErrState: Error for: 10m annotations: - summary: Pending chain in {{ ` {{ $labels.k8s_namespace_name }} ` }} hasn't advanced in 5 minutes + summary: Pending chain in {{ ` {{ $labels.k8s_namespace_name }} ` }} hasn't advanced in 10 minutes labels: <<: *common_labels isPaused: false