From dff1f8bbaed5156d3f773be2b8e0e2e9ee40435b Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Wed, 26 Feb 2025 16:28:07 +0800 Subject: [PATCH 1/3] store query success and faulure --- .../provisioning/dashboards/status-go.json | 120 +++++++++++++++++- 1 file changed, 119 insertions(+), 1 deletion(-) diff --git a/grafana/provisioning/dashboards/status-go.json b/grafana/provisioning/dashboards/status-go.json index cdf6ae4..0248dcf 100644 --- a/grafana/provisioning/dashboards/status-go.json +++ b/grafana/provisioning/dashboards/status-go.json @@ -501,6 +501,124 @@ "title": "Message Reliability", "type": "row" }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Outgoing messages will be marked as failed if it's not get stored in 10 seconds.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "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" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 30 + }, + "id": 15, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "increase(statusgo_waku_store_query_successes_total[5m])", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "interval": "", + "legendFormat": "Store Success (5m)", + "range": true, + "refId": "B", + "useBackend": false + }, + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "increase(statusgo_waku_store_query_failures_total[5m])", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "Store Failed (5m)", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Message Stored Check", + "type": "timeseries" + }, { "datasource": { "type": "prometheus", @@ -560,7 +678,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 30 }, "id": 3, From 00aa476834abe9964e1d07f245e1c5b9695bc0ef Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Wed, 26 Feb 2025 16:59:40 +0800 Subject: [PATCH 2/3] add ack panel --- .../provisioning/dashboards/status-go.json | 111 ++++++++++++++++-- 1 file changed, 102 insertions(+), 9 deletions(-) diff --git a/grafana/provisioning/dashboards/status-go.json b/grafana/provisioning/dashboards/status-go.json index 0248dcf..488a3f4 100644 --- a/grafana/provisioning/dashboards/status-go.json +++ b/grafana/provisioning/dashboards/status-go.json @@ -619,6 +619,99 @@ "title": "Message Stored Check", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "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": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 30 + }, + "id": 16, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "editorMode": "code", + "expr": "increase(statusgo_waku_message_delivery_confirmations_total[5m])", + "legendFormat": "Acked Messages (5m)", + "range": true, + "refId": "A" + } + ], + "title": "Acknowledged Messages", + "type": "timeseries" + }, { "datasource": { "type": "prometheus", @@ -678,8 +771,8 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 30 + "x": 0, + "y": 38 }, "id": 3, "options": { @@ -703,7 +796,7 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "statusgo_waku_message_errors_total", + "expr": "statusgo_waku_envelope_sent_errors_total", "instant": false, "legendFormat": "Message Errors", "range": true, @@ -719,7 +812,7 @@ "h": 1, "w": 24, "x": 0, - "y": 38 + "y": 46 }, "id": 14, "panels": [], @@ -787,7 +880,7 @@ "h": 8, "w": 12, "x": 0, - "y": 39 + "y": 47 }, "id": 1, "options": { @@ -894,7 +987,7 @@ "h": 8, "w": 12, "x": 12, - "y": 39 + "y": 47 }, "id": 4, "options": { @@ -992,7 +1085,7 @@ "h": 8, "w": 12, "x": 0, - "y": 47 + "y": 55 }, "id": 9, "options": { @@ -1051,7 +1144,7 @@ "h": 8, "w": 12, "x": 12, - "y": 47 + "y": 55 }, "id": 10, "options": { @@ -1155,7 +1248,7 @@ "h": 8, "w": 12, "x": 0, - "y": 55 + "y": 63 }, "id": 11, "options": { From 0cf85c3c5006a3bf1b2d8bc17e680060620e1574 Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Wed, 26 Feb 2025 17:16:10 +0800 Subject: [PATCH 3/3] missing messages panel --- .../provisioning/dashboards/status-go.json | 96 ++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/grafana/provisioning/dashboards/status-go.json b/grafana/provisioning/dashboards/status-go.json index 488a3f4..25c10de 100644 --- a/grafana/provisioning/dashboards/status-go.json +++ b/grafana/provisioning/dashboards/status-go.json @@ -712,6 +712,100 @@ "title": "Acknowledged Messages", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Aggregate the missing messages by pubsub topic since the service started.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "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": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 17, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "editorMode": "code", + "expr": "sum(statusgo_waku_missed_messages_total) by (pubsub_topic)", + "legendFormat": "Total Missed Messages (5m) - {{pubsub_topic}}", + "range": true, + "refId": "A" + } + ], + "title": "Missing Messages From Store", + "type": "timeseries" + }, { "datasource": { "type": "prometheus", @@ -771,7 +865,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 38 }, "id": 3,