Skip to content

Commit

Permalink
Merge pull request #66 from Chia-Network/historical-estimated-ips
Browse files Browse the repository at this point in the history
Add historical view of estimated IPS + clean up layout
  • Loading branch information
cmmarslender authored Oct 20, 2023
2 parents 11d114b + 74e810c commit 822ee5a
Showing 1 changed file with 134 additions and 38 deletions.
172 changes: 134 additions & 38 deletions dashboards/blockchain/blockchain-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
"gridPos": {
"h": 3,
"w": 4,
"w": 6,
"x": 0,
"y": 1
},
Expand Down Expand Up @@ -145,8 +145,8 @@
},
"gridPos": {
"h": 3,
"w": 4,
"x": 4,
"w": 6,
"x": 6,
"y": 1
},
"id": 19,
Expand Down Expand Up @@ -209,8 +209,8 @@
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"w": 6,
"x": 12,
"y": 1
},
"id": 16,
Expand Down Expand Up @@ -272,8 +272,8 @@
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"w": 6,
"x": 18,
"y": 1
},
"id": 20,
Expand Down Expand Up @@ -315,7 +315,7 @@
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"description": "Based on 86400 seconds in a day and a target of 4608 blocks in a day, we expect a block every 18.75 seconds.\n\nIf this number is less than 18.75, the chain is moving faster than the target and you would expect difficulty to increase at the next adjustment.\n\nIf the number is greater than 18.75, the chain is moving slower than the target, and you would expect difficulty to decrease at the next adjustment.",
"description": "A constant that adjusts periodically to ensure the chain moves at the desired rate of 4608 blocks per day.\n\nDocs: https://docs.chia.net/epoch-and-difficulty/",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -336,11 +336,11 @@
},
"gridPos": {
"h": 3,
"w": 4,
"x": 16,
"y": 1
"w": 6,
"x": 0,
"y": 4
},
"id": 25,
"id": 18,
"options": {
"colorMode": "value",
"graphMode": "none",
Expand All @@ -364,21 +364,21 @@
"uid": "PB06BBC9CA81C548D"
},
"exemplar": false,
"expr": "$__range_s/(\n sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1, \n chia_blockchain_height{network=\"$network\"} or\n chia_full_node_node_height{network=\"$network\"}\n ) != 0\n ) - \n sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1, \n chia_blockchain_height{network=\"$network\"} offset $__range or\n chia_full_node_node_height{network=\"$network\"} offset $__range\n ) != 0\n )\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1,\n chia_blockchain_difficulty{network=\"$network\"} or\n chia_full_node_difficulty{network=\"$network\"} !=0 \n )\n)",
"interval": "",
"legendFormat": "Difficulty",
"refId": "A"
}
],
"title": "Seconds per Block (18.75 Target)",
"title": "Difficulty",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"description": "A constant that adjusts periodically to ensure the chain moves at the desired rate of 4608 blocks per day.\n\nDocs: https://docs.chia.net/epoch-and-difficulty/",
"description": "A constant that adjusts periodically to ensure signage points are created at the desired rate\n\nDocs: https://docs.chia.net/epoch-and-difficulty/",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -399,11 +399,11 @@
},
"gridPos": {
"h": 3,
"w": 4,
"x": 0,
"w": 6,
"x": 6,
"y": 4
},
"id": 18,
"id": 43,
"options": {
"colorMode": "value",
"graphMode": "none",
Expand All @@ -426,22 +426,24 @@
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1,\n chia_blockchain_difficulty{network=\"$network\"} or\n chia_full_node_difficulty{network=\"$network\"} !=0 \n )\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1,\n chia_full_node_sub_slot_iters{network=\"$network\"} !=0 \n )\n)",
"interval": "",
"legendFormat": "Difficulty",
"range": true,
"refId": "A"
}
],
"title": "Difficulty",
"title": "Sub Slot Iters",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"description": "A constant that adjusts periodically to ensure signage points are created at the desired rate\n\nDocs: https://docs.chia.net/epoch-and-difficulty/",
"description": "Estimated IPS for the network's quickest timelord, derived from the 'sub slot iters' value. On mainnet, this adjusts every 24 hours and every 4 hours on testnet. Expect this value to trail the actual fastest timelord's IPS by a minimum of one epoch.",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -462,11 +464,11 @@
},
"gridPos": {
"h": 3,
"w": 4,
"x": 4,
"w": 6,
"x": 12,
"y": 4
},
"id": 43,
"id": 44,
"options": {
"colorMode": "value",
"graphMode": "none",
Expand All @@ -491,22 +493,23 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1,\n chia_full_node_sub_slot_iters{network=\"$network\"} !=0 \n )\n)",
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1,\n chia_full_node_sub_slot_iters{network=\"$network\"} !=0 \n )\n)/600",
"instant": true,
"interval": "",
"legendFormat": "Difficulty",
"range": true,
"range": false,
"refId": "A"
}
],
"title": "Sub Slot Iters",
"title": "IPS Estimate (Last Epoch)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"description": "Estimated IPS for the network's quickest timelord, derived from the 'sub slot iters' value. On mainnet, this adjusts every 24 hours and every 4 hours on testnet. Expect this value to trail the actual fastest timelord's IPS by a minimum of one epoch.",
"description": "Based on 86400 seconds in a day and a target of 4608 blocks in a day, we expect a block every 18.75 seconds.\n\nIf this number is less than 18.75, the chain is moving faster than the target and you would expect difficulty to increase at the next adjustment.\n\nIf the number is greater than 18.75, the chain is moving slower than the target, and you would expect difficulty to decrease at the next adjustment.",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -527,11 +530,11 @@
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"w": 6,
"x": 18,
"y": 4
},
"id": 44,
"id": 25,
"options": {
"colorMode": "value",
"graphMode": "none",
Expand All @@ -554,16 +557,14 @@
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1,\n chia_full_node_sub_slot_iters{network=\"$network\"} !=0 \n )\n)/600",
"expr": "$__range_s/(\n sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1, \n chia_blockchain_height{network=\"$network\"} or\n chia_full_node_node_height{network=\"$network\"}\n ) != 0\n ) - \n sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1, \n chia_blockchain_height{network=\"$network\"} offset $__range or\n chia_full_node_node_height{network=\"$network\"} offset $__range\n ) != 0\n )\n)",
"interval": "",
"legendFormat": "Difficulty",
"range": true,
"refId": "A"
}
],
"title": "IPS Estimate (Last Epoch)",
"title": "Seconds per Block (18.75 Target)",
"type": "stat"
},
{
Expand Down Expand Up @@ -1194,6 +1195,101 @@
"title": "Signage Points per 9.375s (Target 1)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"description": "Estimated IPS for the network's quickest timelord, derived from the 'sub slot iters' value. On mainnet, this adjusts every 24 hours and every 4 hours on testnet. Expect this value to trail the actual fastest timelord's IPS by a minimum of one epoch.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisPlacement": "auto",
"barAlignment": 1,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"y": 16
},
"id": 45,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PB06BBC9CA81C548D"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1,\n chia_full_node_sub_slot_iters{network=\"$network\"} !=0 \n )\n)/600",
"instant": false,
"interval": "1h",
"legendFormat": "IPS Estimate",
"refId": "A"
}
],
"title": "IPS Estimate (Last Epoch)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -1222,8 +1318,8 @@
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"y": 16
"x": 0,
"y": 24
},
"id": 41,
"options": {
Expand Down Expand Up @@ -1318,6 +1414,6 @@
"timezone": "",
"title": "Blockchain State",
"uid": "CL1X4UWnk",
"version": 31,
"version": 32,
"weekStart": ""
}

0 comments on commit 822ee5a

Please sign in to comment.