From 9764481e5b37d3e80667024a11feec1266d565ae Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 4 Jul 2024 15:35:20 +0530 Subject: [PATCH] Use external head for subgraph deployment alerts --- .../data/config/monitoring/subgraph-alert-rules.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack_orchestrator/data/config/monitoring/subgraph-alert-rules.yml b/stack_orchestrator/data/config/monitoring/subgraph-alert-rules.yml index ed59e8ef..23ff39a2 100644 --- a/stack_orchestrator/data/config/monitoring/subgraph-alert-rules.yml +++ b/stack_orchestrator/data/config/monitoring/subgraph-alert-rules.yml @@ -19,7 +19,7 @@ groups: type: prometheus uid: PBFA97CFB590B2093 editorMode: code - expr: ethereum_chain_head_number - on(network) group_right deployment_head{deployment=~"REPLACE_WITH_SUBGRAPH_IDS"} + expr: label_replace(latest_block_number{instance="external"}, "network", "$1", "chain", "(.*)") - on(network) group_right deployment_head{deployment=~"REPLACE_WITH_SUBGRAPH_IDS"} instant: true intervalMs: 1000 legendFormat: __auto