Skip to content

Instantly share code, notes, and snippets.

@cryptovestor21
Last active February 14, 2022 15:03
Show Gist options
  • Save cryptovestor21/0abc633e9c48b9549a2513ee9ed46a04 to your computer and use it in GitHub Desktop.
Save cryptovestor21/0abc633e9c48b9549a2513ee9ed46a04 to your computer and use it in GitHub Desktop.
Grafana panel json for monitoring Eth node chainhead status via graph-node prometheus endpoint
{
"id": 50,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"type": "timeseries",
"title": "Ethereum Chain head (rate of block number change)",
"alert": {
"alertRuleTags": {},
"conditions": [
{
"evaluator": {
"params": [
0.001
],
"type": "lt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "5m",
"frequency": "1m",
"handler": 1,
"message": "Critical warning - Graph Ethereum archive nodes have fallen off the chainhead - check health of nodes immediately",
"name": "Ethereum Chain head (rate of block number change) alert",
"noDataState": "alerting",
"notifications": []
},
"datasource": "Prometheus_graph-indexer-0",
"thresholds": [
{
"value": 0.001,
"op": "lt",
"visible": true,
"colorMode": "critical"
}
],
"pluginVersion": "8.0.0",
"description": "If rate of change falls to zero (RED), the eth nodes are having issues keeping to the chainhead",
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"barAlignment": 0,
"lineWidth": 1,
"fillOpacity": 0,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "auto",
"pointSize": 4,
"stacking": {
"mode": "none",
"group": "A"
},
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": {
"type": "linear"
},
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
},
"thresholdsStyle": {
"mode": "line"
}
},
"color": {
"mode": "palette-classic"
},
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 0.01
}
]
},
"mappings": [],
"unit": "short"
},
"overrides": []
},
"options": {
"tooltip": {
"mode": "single"
},
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": []
}
},
"targets": [
{
"exemplar": true,
"expr": "rate(ethereum_chain_head_number[5m])",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{job}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment