From fd2fb16380121aed7c2448fce016bb80fb14a4c2 Mon Sep 17 00:00:00 2001 From: tuyennhv Date: Wed, 24 Apr 2024 02:11:00 +0700 Subject: [PATCH] chore: n-historical state - track state persist count per epoch (#6699) --- dashboards/lodestar_state_cache_regen.json | 56 +++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/dashboards/lodestar_state_cache_regen.json b/dashboards/lodestar_state_cache_regen.json index bccac0ff257..be52d414ea3 100644 --- a/dashboards/lodestar_state_cache_regen.json +++ b/dashboards/lodestar_state_cache_regen.json @@ -1309,7 +1309,48 @@ "mappings": [], "unit": "s" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "count_per_epoch" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "none" + } + ] + }, + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "count_per_epoch" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] }, "gridPos": { "h": 8, @@ -1356,6 +1397,19 @@ "legendFormat": "sec_from_slot", "range": true, "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "rate(lodestar_cp_state_cache_state_persist_seconds_from_slot_count[$rate_interval]) * 384", + "hide": false, + "instant": false, + "legendFormat": "count_per_epoch", + "range": true, + "refId": "C" } ], "title": "State persist",