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

Cleanup historical average to one series + ensure offset is used in t… #118

Merged
merged 1 commit into from
Nov 4, 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
11 changes: 6 additions & 5 deletions dashboards/blockchain/blockchain-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (network) (\n topk(1, \n chia_blockchain_netspace_mib{network=\"$network\"} \n or \n (\n chia_full_node_netspace_mib{network=\"$network\"} \n and on (instance) (delta(chia_full_node_node_height[5m]) != 0) \n and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1)\n ) \n != 0\n )\n)\n- \nsum by (network)((\n topk(1, \n chia_blockchain_netspace_mib{network=\"$network\"} offset $__range or \n (\n chia_full_node_netspace_mib{network=\"$network\"} offset $__range) \n and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1)\n ) \n != 0))",
"instant": false,
"expr": "sum by (network) (\n topk(1, \n chia_blockchain_netspace_mib{network=\"$network\"} or\n chia_full_node_netspace_mib{network=\"$network\"} and on (instance) (delta(chia_full_node_node_height[5m]) != 0) and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1) != 0\n )\n)\n- \nsum by (network) (\n topk(1, \n chia_blockchain_netspace_mib{network=\"$network\"} offset $__range or\n chia_full_node_netspace_mib{network=\"$network\"} offset $__range and on (instance) (delta(chia_full_node_node_height[5m] offset $__range) != 0) and on (instance) (chia_full_node_node_synced{network=\"$network\"} offset $__range == 1) != 0\n )\n)",
"instant": true,
"interval": "",
"legendFormat": "Netspace",
"range": false,
"refId": "A"
}
],
Expand Down Expand Up @@ -786,7 +787,7 @@
"uid": "PB06BBC9CA81C548D"
},
"editorMode": "code",
"expr": "topk(1, \n avg_over_time(job:combined_topk_chia_full_node_netspace_mib_synced{network=\"$network\"}[7d])\n)",
"expr": "sum by (network) (topk(1, \n avg_over_time(job:combined_topk_chia_full_node_netspace_mib_synced{network=\"$network\"}[7d])\n))",
"hide": false,
"legendFormat": "7d Average",
"range": true,
Expand All @@ -799,7 +800,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(1, \n avg_over_time(job:combined_topk_chia_full_node_netspace_mib_synced{network=\"$network\"}[30d])\n)",
"expr": "sum by (network) (topk(1, \n avg_over_time(job:combined_topk_chia_full_node_netspace_mib_synced{network=\"$network\"}[30d])\n))",
"hide": false,
"interval": "",
"legendFormat": "30d Average",
Expand Down Expand Up @@ -1645,6 +1646,6 @@
"timezone": "",
"title": "Blockchain State",
"uid": "CL1X4UWnk",
"version": 31,
"version": 34,
"weekStart": ""
}