From 0ced21959a8289ad62a5607f129727046e79cf45 Mon Sep 17 00:00:00 2001 From: Aaryamann Challani <43716372+rymnc@users.noreply.github.com> Date: Fri, 19 May 2023 16:24:53 +0530 Subject: [PATCH] chore(rln-relay): update metrics dashboard (#1745) --- metrics/waku-rln-relay-fleet-dashboard.json | 230 +++++++++++++++--- .../waku-rln-relay-single-node-dashboard.json | 89 ++++++- 2 files changed, 289 insertions(+), 30 deletions(-) diff --git a/metrics/waku-rln-relay-fleet-dashboard.json b/metrics/waku-rln-relay-fleet-dashboard.json index d2f452cd0..a8252251f 100644 --- a/metrics/waku-rln-relay-fleet-dashboard.json +++ b/metrics/waku-rln-relay-fleet-dashboard.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -22,17 +25,22 @@ "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 46, - "iteration": 1666106809831, "links": [], "liveNow": false, "panels": [ { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -88,7 +96,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -112,12 +121,18 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -173,7 +188,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -197,12 +213,18 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -258,7 +280,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -282,12 +305,18 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -338,12 +367,13 @@ "x": 12, "y": 9 }, - "id": 8, + "id": 22, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -356,23 +386,31 @@ "type": "prometheus", "uid": "P6693426190CB2316" }, + "editorMode": "code", "exemplar": true, - "expr": "waku_rln_relay_mounting_duration_seconds{instance=~\"[[host]].([[dc:pipe]]).([[fleet:pipe]])\"}", + "expr": "waku_rln_proof_verification_duration_seconds{instance=~\"[[host]].([[dc:pipe]]).([[fleet:pipe]])\"}", "interval": "", "legendFormat": "{{instance}}", + "range": true, "refId": "A" } ], - "title": "Waku RLN Relay Mounting Duration", + "title": "Waku RLN Relay Proof Verification Duration", "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -428,7 +466,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -452,12 +491,18 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -508,12 +553,13 @@ "x": 12, "y": 17 }, - "id": 11, + "id": 8, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -527,22 +573,28 @@ "uid": "P6693426190CB2316" }, "exemplar": true, - "expr": "waku_rln_valid_messages_total_sum{instance=~\"[[host]].([[dc:pipe]]).([[fleet:pipe]])\"}", + "expr": "waku_rln_relay_mounting_duration_seconds{instance=~\"[[host]].([[dc:pipe]]).([[fleet:pipe]])\"}", "interval": "", "legendFormat": "{{instance}}", "refId": "A" } ], - "title": "Waku RLN Relay Valid Messages Count", + "title": "Waku RLN Relay Mounting Duration", "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -598,7 +650,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -622,12 +675,18 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -678,12 +737,13 @@ "x": 12, "y": 25 }, - "id": 15, + "id": 11, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -697,24 +757,28 @@ "uid": "P6693426190CB2316" }, "exemplar": true, - "expr": "waku_rln_valid_messages_total_bucket{instance=~\"[[host]].([[dc:pipe]]).([[fleet:pipe]])\"}", - "format": "time_series", + "expr": "waku_rln_valid_messages_total_sum{instance=~\"[[host]].([[dc:pipe]]).([[fleet:pipe]])\"}", "interval": "", - "intervalFactor": 1, - "legendFormat": "{{instance}}:{{le}}", + "legendFormat": "{{instance}}", "refId": "A" } ], - "title": "Waku RLN Relay Valid Messages By Root Window", + "title": "Waku RLN Relay Valid Messages Count", "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -770,7 +834,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -794,12 +859,18 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -850,12 +921,107 @@ "x": 12, "y": 33 }, + "id": 15, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, + "exemplar": true, + "expr": "waku_rln_valid_messages_total_bucket{instance=~\"[[host]].([[dc:pipe]]).([[fleet:pipe]])\"}", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{instance}}:{{le}}", + "refId": "A" + } + ], + "title": "Waku RLN Relay Valid Messages By Root Window", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, + "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 + }, + "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": 41 + }, "id": 19, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -880,7 +1046,7 @@ } ], "refresh": false, - "schemaVersion": 35, + "schemaVersion": 37, "style": "dark", "tags": [], "templating": { @@ -895,6 +1061,10 @@ "wakuv2.test" ] }, + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "definition": "label_values(libp2p_peers, fleet)", "hide": 0, "includeAll": false, @@ -945,6 +1115,10 @@ "$__all" ] }, + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, "definition": "label_values(libp2p_peers, datacenter)", "hide": 0, "includeAll": true, @@ -965,13 +1139,13 @@ ] }, "time": { - "from": "now-12h", + "from": "now-30m", "to": "now" }, "timepicker": {}, "timezone": "", - "title": "Waku RLN Relay", + "title": "Waku RLN Relay Testnet 3", "uid": "U6YIdDSVz", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/metrics/waku-rln-relay-single-node-dashboard.json b/metrics/waku-rln-relay-single-node-dashboard.json index ad9e21474..df76c6b9b 100644 --- a/metrics/waku-rln-relay-single-node-dashboard.json +++ b/metrics/waku-rln-relay-single-node-dashboard.json @@ -1,5 +1,5 @@ - -tations": { +{ + "annotations": { "list": [ { "builtIn": 1, @@ -876,6 +876,91 @@ tations": { ], "title": "Waku RLN Relay Registration Duration", "type": "timeseries" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": 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": 33 + }, + "id": 20, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P6693426190CB2316" + }, + "exemplar": true, + "expr": "waku_rln_proof_verification_duration_seconds{}", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Waku RLN Relay Proof Verification Duration", + "type": "timeseries" } ], "refresh": false,