From 822446fd155f0ff5585787dbe3d8a1dade44d269 Mon Sep 17 00:00:00 2001 From: tuyennhv Date: Wed, 13 Mar 2024 08:41:20 +0700 Subject: [PATCH] chore: track epoch transition by reason and prepare next epoch duration (#6529) * chore: track epoch transtion by reason and prepare next epoch duration * Restore beacon job variable --------- Co-authored-by: Nico Flaig --- dashboards/lodestar_block_processor.json | 180 ++++++++++++++++++++++- 1 file changed, 172 insertions(+), 8 deletions(-) diff --git a/dashboards/lodestar_block_processor.json b/dashboards/lodestar_block_processor.json index 8e68d611cc0d..f5edee221e40 100644 --- a/dashboards/lodestar_block_processor.json +++ b/dashboards/lodestar_block_processor.json @@ -1915,6 +1915,88 @@ "title": "State SSZ cache miss rate on preState", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "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 + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 82 + }, + "id": 536, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "rate(lodestar_epoch_transition_by_caller_total[$rate_interval]) * 384", + "instant": false, + "legendFormat": "{{caller}}", + "range": true, + "refId": "A" + } + ], + "title": "Epoch transition by reason", + "type": "timeseries" + }, { "datasource": { "type": "prometheus", @@ -1965,7 +2047,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 82 }, "id": 526, @@ -3455,6 +3537,88 @@ "title": "Runs / epoch", "type": "timeseries" }, + { + "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 + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 149 + }, + "id": 535, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "rate(lodestar_precompute_next_epoch_transition_duration_seconds_sum[$rate_interval])\n/\nrate(lodestar_precompute_next_epoch_transition_duration_seconds_count[$rate_interval])", + "instant": false, + "legendFormat": "prepare_next_epoch_duration", + "range": true, + "refId": "A" + } + ], + "title": "Prepare Next Epoch Duration", + "type": "timeseries" + }, { "collapsed": false, "datasource": { @@ -3465,7 +3629,7 @@ "h": 1, "w": 24, "x": 0, - "y": 149 + "y": 157 }, "id": 136, "panels": [], @@ -3533,7 +3697,7 @@ "h": 8, "w": 12, "x": 0, - "y": 150 + "y": 158 }, "id": 130, "options": { @@ -3633,7 +3797,7 @@ "h": 8, "w": 12, "x": 12, - "y": 150 + "y": 158 }, "id": 140, "options": { @@ -3735,7 +3899,7 @@ "h": 8, "w": 12, "x": 0, - "y": 158 + "y": 166 }, "id": 132, "options": { @@ -3863,7 +4027,7 @@ "h": 8, "w": 12, "x": 12, - "y": 158 + "y": 166 }, "id": 138, "options": { @@ -3985,7 +4149,7 @@ "h": 8, "w": 12, "x": 0, - "y": 166 + "y": 174 }, "id": 531, "options": { @@ -4101,7 +4265,7 @@ "h": 8, "w": 12, "x": 12, - "y": 166 + "y": 174 }, "id": 533, "options": {