Skip to content

Commit 111f72d

Browse files
authored
chore: update dashboard (#23312)
.
1 parent 943ca27 commit 111f72d

1 file changed

Lines changed: 146 additions & 39 deletions

File tree

spartan/metrics/grafana/dashboards/aztec_network.json

Lines changed: 146 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@
248248
{
249249
"datasource": {
250250
"type": "prometheus",
251-
"uid": "prometheus"
251+
"uid": "${data_source}"
252252
},
253253
"editorMode": "code",
254254
"exemplar": false,
255-
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\",aztec_status=\"\"}, \"aztec_status\", \"Pending chain\", \"aztec_status\", \"^$\"))",
255+
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\",aztec_status=\"proposed\"}, \"aztec_status\", \"Proposed chain\", \"aztec_status\", \"^proposed$\")) or max by (aztec_status) (label_replace(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\",aztec_status=\"\"}, \"aztec_status\", \"Proposed chain\", \"aztec_status\", \"^$\"))",
256256
"instant": true,
257257
"legendFormat": "{{aztec_status}}",
258258
"range": false,
@@ -261,16 +261,16 @@
261261
{
262262
"datasource": {
263263
"type": "prometheus",
264-
"uid": "prometheus"
264+
"uid": "${data_source}"
265265
},
266266
"editorMode": "code",
267267
"exemplar": false,
268-
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\",aztec_status=\"proven\"}, \"aztec_status\", \"Proven chain\", \"aztec_status\", \"^proven$\"))",
268+
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\",aztec_status=\"checkpointed\"}, \"aztec_status\", \"Checkpointed chain\", \"aztec_status\", \"^checkpointed$\")) or max by (aztec_status) (label_replace(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\",aztec_status=\"\"}, \"aztec_status\", \"Checkpointed chain\", \"aztec_status\", \"^$\"))",
269269
"hide": false,
270270
"instant": true,
271271
"legendFormat": "{{aztec_status}}",
272272
"range": false,
273-
"refId": "E"
273+
"refId": "B"
274274
},
275275
{
276276
"datasource": {
@@ -279,38 +279,12 @@
279279
},
280280
"editorMode": "code",
281281
"exemplar": false,
282-
"expr": "max by (aztec_status) (label_replace(aztec_archiver_l1_block_height{k8s_namespace_name=\"$namespace\"}, \"aztec_status\", \"l1\", \"aztec_status\", \"^$\"))",
282+
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\",aztec_status=\"proven\"}, \"aztec_status\", \"Proven chain\", \"aztec_status\", \"^proven$\"))",
283283
"hide": false,
284284
"instant": true,
285-
"legendFormat": "L1",
285+
"legendFormat": "{{aztec_status}}",
286286
"range": false,
287-
"refId": "B"
288-
},
289-
{
290-
"datasource": {
291-
"type": "prometheus",
292-
"uid": "${data_source}"
293-
},
294-
"editorMode": "code",
295-
"expr": "max(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\", aztec_status=\"\"}) - max(aztec_archiver_block_height{k8s_namespace_name=\"$namespace\", aztec_status=\"proven\"})",
296-
"hide": false,
297-
"instant": false,
298-
"legendFormat": "Pending chain depth",
299-
"range": true,
300287
"refId": "C"
301-
},
302-
{
303-
"datasource": {
304-
"type": "prometheus",
305-
"uid": "${data_source}"
306-
},
307-
"editorMode": "code",
308-
"expr": "max(aztec_archiver_prune_count{k8s_namespace_name=\"$namespace\"}) or vector(0)",
309-
"hide": false,
310-
"instant": false,
311-
"legendFormat": "Total re-orgs",
312-
"range": true,
313-
"refId": "D"
314288
}
315289
],
316290
"title": "Current Block Heights",
@@ -2592,15 +2566,47 @@
25922566
"uid": "${data_source}"
25932567
},
25942568
"disableTextWrap": false,
2595-
"editorMode": "builder",
2596-
"expr": "max by(service_name, aztec_status) (aztec_archiver_block_height{service_namespace=\"$namespace\", aztec_status=~\"proposed|proven\"})",
2569+
"editorMode": "code",
2570+
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{service_namespace=\"$namespace\", aztec_status=\"proposed\"}, \"aztec_status\", \"Proposed chain\", \"aztec_status\", \"^proposed$\")) or max by (aztec_status) (label_replace(aztec_archiver_block_height{service_namespace=\"$namespace\", aztec_status=\"\"}, \"aztec_status\", \"Proposed chain\", \"aztec_status\", \"^$\"))",
25972571
"fullMetaSearch": false,
25982572
"includeNullMetadata": true,
25992573
"instant": false,
2600-
"legendFormat": "__auto",
2574+
"legendFormat": "{{aztec_status}}",
26012575
"range": true,
26022576
"refId": "A",
26032577
"useBackend": false
2578+
},
2579+
{
2580+
"datasource": {
2581+
"type": "prometheus",
2582+
"uid": "${data_source}"
2583+
},
2584+
"disableTextWrap": false,
2585+
"editorMode": "code",
2586+
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{service_namespace=\"$namespace\", aztec_status=\"checkpointed\"}, \"aztec_status\", \"Checkpointed chain\", \"aztec_status\", \"^checkpointed$\")) or max by (aztec_status) (label_replace(aztec_archiver_block_height{service_namespace=\"$namespace\", aztec_status=\"\"}, \"aztec_status\", \"Checkpointed chain\", \"aztec_status\", \"^$\"))",
2587+
"fullMetaSearch": false,
2588+
"includeNullMetadata": true,
2589+
"instant": false,
2590+
"legendFormat": "{{aztec_status}}",
2591+
"range": true,
2592+
"refId": "B",
2593+
"useBackend": false
2594+
},
2595+
{
2596+
"datasource": {
2597+
"type": "prometheus",
2598+
"uid": "${data_source}"
2599+
},
2600+
"disableTextWrap": false,
2601+
"editorMode": "code",
2602+
"expr": "max by (aztec_status) (label_replace(aztec_archiver_block_height{service_namespace=\"$namespace\", aztec_status=\"proven\"}, \"aztec_status\", \"Proven chain\", \"aztec_status\", \"^proven$\"))",
2603+
"fullMetaSearch": false,
2604+
"includeNullMetadata": true,
2605+
"instant": false,
2606+
"legendFormat": "{{aztec_status}}",
2607+
"range": true,
2608+
"refId": "C",
2609+
"useBackend": false
26042610
}
26052611
],
26062612
"title": "Block height",
@@ -2669,8 +2675,8 @@
26692675
"gridPos": {
26702676
"h": 8,
26712677
"w": 12,
2672-
"x": 12,
2673-
"y": 75
2678+
"x": 0,
2679+
"y": 83
26742680
},
26752681
"id": 11,
26762682
"options": {
@@ -2774,7 +2780,7 @@
27742780
"gridPos": {
27752781
"h": 8,
27762782
"w": 12,
2777-
"x": 0,
2783+
"x": 12,
27782784
"y": 83
27792785
},
27802786
"id": 24,
@@ -2814,6 +2820,107 @@
28142820
],
28152821
"title": "Archiver Sync Duration (P95)",
28162822
"type": "timeseries"
2823+
},
2824+
{
2825+
"datasource": {
2826+
"default": true,
2827+
"type": "prometheus",
2828+
"uid": "${data_source}"
2829+
},
2830+
"fieldConfig": {
2831+
"defaults": {
2832+
"color": {
2833+
"mode": "palette-classic"
2834+
},
2835+
"custom": {
2836+
"axisBorderShow": false,
2837+
"axisCenteredZero": false,
2838+
"axisColorMode": "text",
2839+
"axisLabel": "",
2840+
"axisPlacement": "auto",
2841+
"barAlignment": 0,
2842+
"barWidthFactor": 0.6,
2843+
"drawStyle": "line",
2844+
"fillOpacity": 8,
2845+
"gradientMode": "none",
2846+
"hideFrom": {
2847+
"legend": false,
2848+
"tooltip": false,
2849+
"viz": false
2850+
},
2851+
"insertNulls": false,
2852+
"lineInterpolation": "stepBefore",
2853+
"lineWidth": 1,
2854+
"pointSize": 5,
2855+
"scaleDistribution": {
2856+
"type": "linear"
2857+
},
2858+
"showPoints": "never",
2859+
"showValues": false,
2860+
"spanNulls": false,
2861+
"stacking": {
2862+
"group": "A",
2863+
"mode": "none"
2864+
},
2865+
"thresholdsStyle": {
2866+
"mode": "off"
2867+
}
2868+
},
2869+
"mappings": [],
2870+
"thresholds": {
2871+
"mode": "absolute",
2872+
"steps": [
2873+
{
2874+
"color": "green",
2875+
"value": 0
2876+
},
2877+
{
2878+
"color": "red",
2879+
"value": 80
2880+
}
2881+
]
2882+
},
2883+
"unit": "none"
2884+
},
2885+
"overrides": []
2886+
},
2887+
"gridPos": {
2888+
"h": 8,
2889+
"w": 12,
2890+
"x": 12,
2891+
"y": 75
2892+
},
2893+
"id": 41,
2894+
"options": {
2895+
"legend": {
2896+
"calcs": [],
2897+
"displayMode": "list",
2898+
"placement": "bottom",
2899+
"showLegend": true
2900+
},
2901+
"tooltip": {
2902+
"hideZeros": false,
2903+
"mode": "single",
2904+
"sort": "none"
2905+
}
2906+
},
2907+
"pluginVersion": "12.3.6",
2908+
"targets": [
2909+
{
2910+
"datasource": {
2911+
"type": "prometheus",
2912+
"uid": "${data_source}"
2913+
},
2914+
"editorMode": "code",
2915+
"expr": "max by(k8s_pod_name) (aztec_archiver_block_height{k8s_namespace_name=\"$namespace\", aztec_status=\"proposed\"}) or max by(k8s_pod_name) (aztec_archiver_block_height{k8s_namespace_name=\"$namespace\", aztec_status=\"\"})",
2916+
"instant": false,
2917+
"legendFormat": "{{k8s_pod_name}}",
2918+
"range": true,
2919+
"refId": "A"
2920+
}
2921+
],
2922+
"title": "Proposed Chains by Pod",
2923+
"type": "timeseries"
28172924
}
28182925
],
28192926
"preload": false,

0 commit comments

Comments
 (0)