Use external head for subgraph deployment alerts

This commit is contained in:
Prathamesh Musale 2024-07-04 15:35:20 +05:30
parent 39df4683ac
commit 54307004da

View File

@ -19,7 +19,7 @@ groups:
type: prometheus type: prometheus
uid: PBFA97CFB590B2093 uid: PBFA97CFB590B2093
editorMode: code 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 instant: true
intervalMs: 1000 intervalMs: 1000
legendFormat: __auto legendFormat: __auto