Add alerts for graph-node subgraphs #821

Merged
ashwin merged 4 commits from deep-stack/stack-orchestrator:pm-subgraph-alerts into main 2024-05-17 04:01:42 +00:00
Showing only changes of commit b0501fddeb - Show all commits

View File

@ -6,23 +6,9 @@ groups:
interval: 30s
rules:
- uid: b2a9144b-6104-46fc-92b5-352f4e643c4c
title: sushiswap_v3_subgraph_head_tracking
title: subgraph_head_tracking
condition: condition
data:
- refId: latest_head
relativeTimeRange:
from: 600
to: 0
datasourceUid: PBFA97CFB590B2093
model:
editorMode: code
expr: ethereum_chain_head_number{job="graph-node", network="filecoin"}
instant: true
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: false
refId: latest_head
- refId: diff
relativeTimeRange:
from: 600
@ -33,7 +19,7 @@ groups:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
expr: ethereum_chain_head_number - on(network) group_right deployment_head{deployment="QmRPQM4ZtRJYr8WiNdg6oqKRNQHHXv5rZrD4gzqQrJpPhz"}
expr: ethereum_chain_head_number - on(network) group_right deployment_head{}
instant: true
intervalMs: 1000
legendFormat: __auto
@ -74,6 +60,5 @@ groups:
for: 5m
annotations:
summary: Subgraph deployment {{ index $labels "deployment" }} is falling behind head by {{ index $values "diff" }}
labels:
latest_head: '{{ index $values "latest_head" }}'
labels: {}
isPaused: false