Skip to content

Instantly share code, notes, and snippets.

@fabdarice
Created November 22, 2020 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabdarice/bac9cf81905f0d4a2dba45786e3223af to your computer and use it in GitHub Desktop.
Save fabdarice/bac9cf81905f0d4a2dba45786e3223af to your computer and use it in GitHub Desktop.
Own Validator Inclusion Distance
{
"alert": {
"alertRuleTags": {},
"conditions": [
{
"evaluator": {
"params": [
3
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"15m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "25m",
"frequency": "1m",
"handler": 1,
"name": "VALIDATOR: Inclusion Distance > 3",
"noDataState": "no_data",
"notifications": [
{
"uid": "tKW7SThMz"
}
]
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"unit": "short",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 6,
"x": 6,
"y": 18
},
"hiddenSeries": false,
"id": 153,
"legend": {
"avg": true,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "label_replace(max by(pubkey) (validator_inclusion_distance{job=\"validator-testnet\"}), \"pubkey_short\", \"$1\", \"pubkey\", \"(.{10}).*\")",
"format": "time_series",
"instant": false,
"interval": "384s",
"legendFormat": "{{pubkey_short}}",
"refId": "A"
}
],
"thresholds": [
{
"value": 3,
"op": "gt",
"fill": true,
"line": true,
"colorMode": "critical"
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Inclusion Distance",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:423",
"format": "short",
"label": null,
"logBase": 1,
"max": "8",
"min": "1",
"show": true
},
{
"$$hashKey": "object:424",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
},
"datasource": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment