Skip to content

Commit

Permalink
Ignore stuck height nodes on netspace graph (#95)
Browse files Browse the repository at this point in the history
* Ignore stuck height nodes on netspace graph

* Check for stuck heights on diff/ssi

* Ignore stuck heights for mempool dash
  • Loading branch information
cmmarslender authored Jun 13, 2024
1 parent 085ded0 commit b45b0f4
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 20 deletions.
38 changes: 23 additions & 15 deletions dashboards/blockchain/blockchain-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand All @@ -112,7 +112,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, \n chia_blockchain_netspace_mib{network=\"$network\"} or \n (chia_full_node_netspace_mib{network=\"$network\"} and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1)) !=0\n )\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_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)",
"interval": "",
"legendFormat": "Netspace",
"range": true,
Expand Down Expand Up @@ -171,7 +171,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -238,7 +238,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -305,7 +305,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -377,7 +377,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -443,7 +443,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -510,7 +510,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -577,7 +577,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -645,7 +645,7 @@
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -766,6 +766,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand All @@ -778,7 +779,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, instance_name, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, \n chia_blockchain_netspace_mib{network=\"$network\"} or\n chia_full_node_netspace_mib{network=\"$network\"} and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1) != 0\n )\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, instance_name, namespace, job, instance_name, ref, container, group, endpoint, region, exported_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)",
"hide": false,
"interval": "",
"legendFormat": "Netspace",
Expand Down Expand Up @@ -911,6 +912,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand All @@ -923,7 +925,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, \n chia_blockchain_difficulty{network=\"$network\"} or \n ( chia_full_node_difficulty{network=\"$network\"} and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1) ) !=0\n )\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, \n chia_blockchain_difficulty{network=\"$network\"} or \n ( chia_full_node_difficulty{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)",
"instant": false,
"interval": "",
"legendFormat": "Difficulty",
Expand All @@ -935,7 +937,7 @@
"uid": "PB06BBC9CA81C548D"
},
"editorMode": "code",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_sub_slot_iters{network=\"$network\"} and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1))\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_sub_slot_iters{network=\"$network\"} and on (instance) (delta(chia_full_node_node_height[5m]) != 0) and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1))\n)",
"hide": false,
"legendFormat": "Sub Slot Iters",
"range": true,
Expand Down Expand Up @@ -1048,6 +1050,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1172,6 +1175,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1280,6 +1284,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1377,6 +1382,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1449,7 +1455,7 @@
"sizing": "auto",
"valueMode": "color"
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1552,6 +1558,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1617,10 +1624,11 @@
"from": "now-6h",
"to": "now"
},
"timeRangeUpdatedDuringEditOrView": false,
"timepicker": {},
"timezone": "",
"title": "Blockchain State",
"uid": "CL1X4UWnk",
"version": 24,
"version": 29,
"weekStart": ""
}
22 changes: 17 additions & 5 deletions dashboards/blockchain/mempool-transactions-fees.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand All @@ -142,7 +143,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, \n (\n chia_full_node_mempool_size{network=\"$network\"} and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1)\n ) or\n chia_blockchain_mempool_size{network=\"$network\"}\n )\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, \n (\n chia_full_node_mempool_size{network=\"$network\"} and on (instance) (delta(chia_full_node_node_height[5m]) != 0) and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1)\n ) or\n chia_blockchain_mempool_size{network=\"$network\"}\n )\n)",
"interval": "",
"legendFormat": "Spends",
"range": true,
Expand Down Expand Up @@ -240,6 +241,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand All @@ -252,7 +254,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_mempool_cost{network=\"$network\"} and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1))\n) !=0",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_mempool_cost{network=\"$network\"} and on (instance) (delta(chia_full_node_node_height[5m]) != 0) and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1))\n) !=0",
"hide": false,
"interval": "",
"legendFormat": "Mempool Cost",
Expand Down Expand Up @@ -392,6 +394,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand All @@ -404,7 +407,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_block_cost{network=\"$network\"}) / 5000000\n) * \nsum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n bottomk(1, \n rate(chia_full_node_node_height{network=\"$network\"}[5m]) > 0 and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1)\n )\n) / 3",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_block_cost{network=\"$network\"}) / 5000000\n) * \nsum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n bottomk(1, \n rate(chia_full_node_node_height{network=\"$network\"}[5m]) > 0 and on (instance) (delta(chia_full_node_node_height[5m]) != 0) and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1)\n )\n) / 3",
"interval": "",
"legendFormat": "5,000,000 Cost TX",
"range": true,
Expand Down Expand Up @@ -508,6 +511,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand All @@ -520,7 +524,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_block_cost{network=\"$network\"} and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1))\n) /\nsum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_block_max_cost{network=\"$network\"})\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_block_cost{network=\"$network\"} and on (instance) (delta(chia_full_node_node_height[5m]) != 0) and on (instance) (chia_full_node_node_synced{network=\"$network\"} == 1))\n) /\nsum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region, exported_network) (\n topk(1, chia_full_node_block_max_cost{network=\"$network\"})\n)",
"interval": "",
"legendFormat": "Instant",
"range": true,
Expand Down Expand Up @@ -657,6 +661,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -798,6 +803,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -928,6 +934,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1047,6 +1054,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1170,6 +1178,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1300,6 +1309,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1419,6 +1429,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -1508,10 +1519,11 @@
"from": "now-6h",
"to": "now"
},
"timeRangeUpdatedDuringEditOrView": false,
"timepicker": {},
"timezone": "",
"title": "Mempool, Transactions, & Fees",
"uid": "46EAA05E",
"version": 13,
"version": 22,
"weekStart": ""
}

0 comments on commit b45b0f4

Please sign in to comment.