Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sum by (network) instead of sum without (...) to make it easier to ke… #120

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": ""
}
Loading