Skip to content

Commit

Permalink
add pie chart of node versions ready for the upcoming 2.1 hard fork
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Feb 14, 2024
1 parent f17f5b9 commit e0bddf6
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions dashboards/blockchain/peer-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,92 @@
],
"type": "table"
},
{
"datasource": {
"uid": "PB06BBC9CA81C548D",
"type": "prometheus"
},
"description": "Shows the fraction of peers discovered that run a version recent enough to support the 2.1 hard fork",
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
}
},
"unitScale": true,
"color": {
"mode": "palette-classic"
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 7,
"x": 17,
"y": 0
},
"id": 30,
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"pieType": "pie",
"tooltip": {
"mode": "single",
"sort": "none"
},
"legend": {
"showLegend": true,
"displayMode": "list",
"placement": "bottom",
"values": [
"percent"
]
},
"displayLabels": [
"percent"
]
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"exemplar": false,
"expr": "sum(max by (version) (chia_crawler_peer_version{network=\"$network\", version =~ \"[2-9]\\\\.[1-9][0-9]*\\\\.[0-9]+.*\"}))",
"interval": "",
"legendFormat": "ready for hard fork",
"refId": "A",
"editorMode": "code",
"range": true
},
{
"datasource": {
"uid": "PB06BBC9CA81C548D",
"type": "prometheus"
},
"refId": "B",
"expr": "sum(max by (version) (chia_crawler_peer_version{network=\"$network\", version !~ \"[2-9]\\\\.[1-9][0-9]*\\\\.[0-9]+.*\"}))",
"range": true,
"instant": false,
"hide": false,
"editorMode": "code",
"legendFormat": "not ready"
}
],
"title": "Hard fork readiness",
"type": "piechart"
},
{
"description": "Nodes with available connections are nodes that allow inbound connections and have available space for more peers to connect",
"fieldConfig": {
Expand Down

0 comments on commit e0bddf6

Please sign in to comment.