feat: expose ChainSpec metrics (#10737)

This commit is contained in:
Philippe Laflamme
2024-09-10 06:40:49 -04:00
committed by GitHub
parent 282a96a70d
commit 2985720c78
6 changed files with 111 additions and 8 deletions

View File

@ -147,7 +147,79 @@
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {
"valueSize": 20
},
"textMode": "name",
"wideLayout": true
},
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"exemplar": false,
"expr": "reth_chain_spec{instance=~\"$instance\"}",
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "Chain",
"transparent": true,
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 3,
"y": 1
},
"id": 240,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
@ -203,8 +275,8 @@
},
"gridPos": {
"h": 3,
"w": 6,
"x": 3,
"w": 5,
"x": 5,
"y": 1
},
"id": 192,
@ -271,8 +343,8 @@
},
"gridPos": {
"h": 3,
"w": 3,
"x": 9,
"w": 2,
"x": 10,
"y": 1
},
"id": 193,