From 0480ba147c9019e8920d78749f75719be441290e Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Tue, 23 Apr 2024 16:13:29 +0700 Subject: [PATCH] chore: n-historical state - track state persist count per epoch --- 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",