Skip to content

Commit

Permalink
sum by (network) instead of sum without (...) to make it easier to ke…
Browse files Browse the repository at this point in the history
…ep a consistent series even when underlying instance IDs change
  • Loading branch information
cmmarslender committed Dec 3, 2024
1 parent 1dd92b4 commit 9611e18
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions dashboards/blockchain/nakamoto-coefficient.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"graphTooltip": 0,
"id": 3,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
Expand Down Expand Up @@ -64,6 +63,7 @@
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -75,7 +75,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.3.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -112,6 +112,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -175,14 +176,15 @@
"sort": "none"
}
},
"pluginVersion": "11.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"editorMode": "code",
"expr": "sum without(cluster, application, container, endpoint, instance, job, namespace, pod, service, region) (topk(1, chia_block_metrics_nakamoto_coefficient_gt51${adjusted_nc}}))",
"expr": "sum by (network) (topk(1, chia_block_metrics_nakamoto_coefficient_gt51${adjusted_nc}}))",
"legendFormat": "Nakamoto Coefficient (>=51%)",
"range": true,
"refId": "A"
Expand All @@ -193,7 +195,7 @@
"uid": "PB06BBC9CA81C548D"
},
"editorMode": "code",
"expr": "sum without(cluster, application, container, endpoint, instance, job, namespace, pod, service, region) (topk(1, chia_block_metrics_nakamoto_coefficient_gt50${adjusted_nc}}))",
"expr": "sum by (network) (topk(1, chia_block_metrics_nakamoto_coefficient_gt50${adjusted_nc}}))",
"hide": false,
"legendFormat": "Nakamoto Coefficient (>=50%)",
"range": true,
Expand Down Expand Up @@ -239,6 +241,7 @@
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
Expand All @@ -250,7 +253,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.3.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -372,7 +375,7 @@
"showHeader": true,
"sortBy": []
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.3.1",
"targets": [
{
"dataset": "blocks",
Expand Down Expand Up @@ -414,23 +417,21 @@
"type": "table"
}
],
"preload": false,
"refresh": "",
"schemaVersion": 39,
"schemaVersion": 40,
"tags": [],
"templating": {
"list": [
{
"allValue": "",
"current": {
"selected": true,
"text": "Adjusted",
"text": "_adjusted{",
"value": "_adjusted{"
},
"description": "Adjusted NC accounts for alternate farmer/harvester implementations that redirect a portion of farmer rewards to the developer's address. The default NC view shows these dev addresses as large farmers, but since the individual farmers sign their own blocks, the Adjusted NC removes these dev addresses from the calculations.",
"hide": 0,
"includeAll": false,
"label": "Adjusted NC",
"multi": false,
"name": "adjusted_nc",
"options": [
{
Expand All @@ -445,8 +446,6 @@
}
],
"query": "Default : {,Adjusted : _adjusted{",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
}
]
Expand All @@ -459,6 +458,6 @@
"timezone": "",
"title": "Nakamoto Coefficient",
"uid": "6S16D9AVk",
"version": 4,
"version": 9,
"weekStart": ""
}

0 comments on commit 9611e18

Please sign in to comment.