feat: Better progress reporting for stage checkpoints (#2982)

Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
Georgios Konstantopoulos
2023-06-05 09:10:46 -07:00
committed by GitHub
parent 6fab79bbc2
commit 08900740bc
28 changed files with 1601 additions and 341 deletions

View File

@ -27,7 +27,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.4.7"
"version": "9.5.2"
},
{
"type": "panel",
@ -128,7 +128,7 @@
},
"gridPos": {
"h": 8,
"w": 5,
"w": 12,
"x": 0,
"y": 0
},
@ -145,7 +145,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "9.4.7",
"pluginVersion": "9.5.2",
"targets": [
{
"datasource": {
@ -192,8 +192,8 @@
},
"gridPos": {
"h": 8,
"w": 9,
"x": 5,
"w": 12,
"x": 12,
"y": 0
},
"id": 20,
@ -209,9 +209,10 @@
"fields": "",
"values": false
},
"showUnfilled": true
"showUnfilled": true,
"valueMode": "color"
},
"pluginVersion": "9.4.7",
"pluginVersion": "9.5.2",
"targets": [
{
"datasource": {
@ -231,6 +232,97 @@
"transparent": true,
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 69,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "reth_sync_entities_processed / reth_sync_entities_total",
"legendFormat": "{{stage}}",
"range": true,
"refId": "A"
}
],
"title": "Sync progress (stage progress in %)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
@ -290,9 +382,9 @@
},
"gridPos": {
"h": 8,
"w": 10,
"x": 14,
"y": 0
"w": 12,
"x": 12,
"y": 8
},
"id": 12,
"options": {
@ -320,7 +412,7 @@
"refId": "A"
}
],
"title": "Sync progress",
"title": "Sync progress (stage progress as highest block number reached)",
"type": "timeseries"
},
{
@ -329,7 +421,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 8
"y": 16
},
"id": 38,
"panels": [],
@ -397,7 +489,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 9
"y": 17
},
"id": 40,
"options": {
@ -457,7 +549,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 9
"y": 17
},
"id": 42,
"maxDataPoints": 25,
@ -501,7 +593,7 @@
"unit": "percentunit"
}
},
"pluginVersion": "9.4.7",
"pluginVersion": "9.5.2",
"targets": [
{
"datasource": {
@ -548,7 +640,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 17
"y": 25
},
"id": 48,
"options": {
@ -657,7 +749,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 17
"y": 25
},
"id": 52,
"options": {
@ -715,7 +807,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 25
"y": 33
},
"id": 50,
"options": {
@ -883,10 +975,11 @@
"h": 8,
"w": 12,
"x": 12,
"y": 25
"y": 33
},
"id": 58,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
@ -897,7 +990,7 @@
},
"showHeader": true
},
"pluginVersion": "9.4.7",
"pluginVersion": "9.5.2",
"targets": [
{
"datasource": {
@ -923,7 +1016,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 33
"y": 41
},
"id": 46,
"panels": [],
@ -989,7 +1082,7 @@
"h": 8,
"w": 24,
"x": 0,
"y": 34
"y": 42
},
"id": 56,
"options": {
@ -1062,7 +1155,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 42
"y": 50
},
"id": 6,
"panels": [],
@ -1131,7 +1224,7 @@
"h": 8,
"w": 8,
"x": 0,
"y": 43
"y": 51
},
"id": 18,
"options": {
@ -1224,7 +1317,7 @@
"h": 8,
"w": 8,
"x": 8,
"y": 43
"y": 51
},
"id": 16,
"options": {
@ -1342,7 +1435,7 @@
"h": 8,
"w": 8,
"x": 16,
"y": 43
"y": 51
},
"id": 8,
"options": {
@ -1421,7 +1514,7 @@
"h": 8,
"w": 8,
"x": 0,
"y": 51
"y": 59
},
"id": 54,
"options": {
@ -1585,7 +1678,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 59
"y": 67
},
"id": 24,
"panels": [],
@ -1637,8 +1730,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -1678,7 +1770,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 60
"y": 68
},
"id": 26,
"options": {
@ -1792,8 +1884,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -1808,7 +1899,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 60
"y": 68
},
"id": 33,
"options": {
@ -1909,8 +2000,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -1925,7 +2015,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 68
"y": 76
},
"id": 36,
"options": {
@ -1974,7 +2064,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 76
"y": 84
},
"id": 32,
"panels": [],
@ -2027,8 +2117,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -2068,7 +2157,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 77
"y": 85
},
"id": 30,
"options": {
@ -2218,8 +2307,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
@ -2230,7 +2318,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 77
"y": 85
},
"id": 28,
"options": {
@ -2331,8 +2419,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -2347,7 +2434,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 85
"y": 93
},
"id": 35,
"options": {
@ -2396,7 +2483,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 93
"y": 101
},
"id": 68,
"panels": [
@ -2446,8 +2533,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -2462,7 +2548,7 @@
"h": 8,
"w": 11,
"x": 0,
"y": 1
"y": 9
},
"id": 60,
"options": {
@ -2539,8 +2625,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -2555,7 +2640,7 @@
"h": 8,
"w": 13,
"x": 11,
"y": 1
"y": 9
},
"id": 62,
"options": {
@ -2632,8 +2717,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -2648,7 +2732,7 @@
"h": 7,
"w": 11,
"x": 0,
"y": 9
"y": 17
},
"id": 64,
"options": {
@ -2700,6 +2784,6 @@
"timezone": "",
"title": "reth",
"uid": "2k8BXz24x",
"version": 5,
"version": 6,
"weekStart": ""
}