From ff0d473a1589c44525cc14a11ca17c85d4d44f47 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 11 Jul 2022 13:50:14 +0200 Subject: [PATCH] chore(helm): updating backend dashboard Signed-off-by: rjshrjndrn --- .../backend/openreplay-components.json | 473 ++++++++++-------- 1 file changed, 256 insertions(+), 217 deletions(-) diff --git a/ee/scripts/helmcharts/manifests/observability/dashboards/backend/openreplay-components.json b/ee/scripts/helmcharts/manifests/observability/dashboards/backend/openreplay-components.json index 1dc2fe7e7..b876cbc43 100644 --- a/ee/scripts/helmcharts/manifests/observability/dashboards/backend/openreplay-components.json +++ b/ee/scripts/helmcharts/manifests/observability/dashboards/backend/openreplay-components.json @@ -1,36 +1,12 @@ { - "__inputs": [], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "8.2.0" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph (old)", - "version": "" - }, - { - "type": "panel", - "id": "heatmap", - "name": "Heatmap", - "version": "" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - } - ], "annotations": { "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -47,15 +23,16 @@ }, "editable": true, "fiscalYearStartMonth": 0, - "gnetId": null, "graphTooltip": 0, - "id": null, - "iteration": 1656567623206, + "iteration": 1657540002972, "links": [], "liveNow": false, "panels": [ { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of all requests that have been processed / service", "fieldConfig": { "defaults": { @@ -96,9 +73,13 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "8.2.0", + "pluginVersion": "9.0.1", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(increase(requests_total[${time}]))", "interval": "", @@ -110,7 +91,10 @@ "type": "stat" }, { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of all messages that have been processed / service", "fieldConfig": { "defaults": { @@ -157,9 +141,13 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "8.2.0", + "pluginVersion": "9.0.1", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(increase(messages_total[${time}]))", "interval": "", @@ -171,7 +159,10 @@ "type": "stat" }, { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of messages that have been saved to session files", "fieldConfig": { "defaults": { @@ -218,9 +209,13 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "8.2.0", + "pluginVersion": "9.0.1", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(increase(messages_saved[${time}]))", "interval": "", @@ -232,7 +227,10 @@ "type": "stat" }, { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of all sessions that have been compressed and saved to s3", "fieldConfig": { "defaults": { @@ -278,11 +276,15 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "8.2.0", + "pluginVersion": "9.0.1", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, - "expr": "sum(increase(sessions_total{container_name=\"saas-storage\"}[${time}]))", + "expr": "sum(increase(sessions_total{container=\"storage\"}[${time}]))", "interval": "", "legendFormat": "", "refId": "A" @@ -293,7 +295,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -302,14 +307,20 @@ }, "id": 28, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Storage", "type": "row" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -318,7 +329,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Sizes of saved sessions (before compression)\n", "gridPos": { "h": 8, @@ -337,6 +351,10 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(rate(sessions_size_sum[${time}]))/sum(rate(sessions_size_count[${time}]))", "interval": "", @@ -353,26 +371,15 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "decbytes", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -381,7 +388,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Durations of archiving process for all handled sessions", "gridPos": { "h": 8, @@ -400,6 +410,10 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(rate(archiving_duration_sum[${time}]))/sum(rate(archiving_duration_count[${time}]))", "interval": "", @@ -416,24 +430,19 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "ms", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -442,14 +451,20 @@ }, "id": 20, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Sink", "type": "row" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -458,7 +473,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Sizes of saved messages\n", "gridPos": { "h": 8, @@ -477,6 +495,10 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(rate(messages_size_sum[${time}])) / sum(rate(messages_size_count[${time}]))", "hide": false, @@ -494,24 +516,19 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "decbytes", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -520,14 +537,20 @@ }, "id": 12, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Http", "type": "row" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -536,7 +559,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Sizes of request’s body for start and ingest endpoints", "gridPos": { "h": 8, @@ -555,6 +581,10 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(rate(requests_body_size_sum[${time}]))/sum(rate(requests_body_size_count[${time}]))", "interval": "", @@ -562,8 +592,6 @@ "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Request body size / ${time}", "tooltip": { "show": true, @@ -573,26 +601,15 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "decbytes", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -601,7 +618,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Request processing duration for all endpoints", "gridPos": { "h": 8, @@ -620,6 +640,10 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(rate(requests_duration_sum[${time}]))/sum(rate(requests_duration_count[${time}]))", "interval": "", @@ -636,24 +660,19 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "ms", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -662,6 +681,15 @@ }, "id": 6, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "ender", "type": "row" }, @@ -672,7 +700,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of active sessions (unfinished sessions)\n", "fill": 1, "fillGradient": 0, @@ -700,7 +731,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.2.0", + "pluginVersion": "9.0.1", "pointradius": 2, "points": false, "renderer": "flot", @@ -710,6 +741,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(sessions_active)", "format": "time_series", @@ -719,9 +754,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Active sessions", "tooltip": { "shared": true, @@ -730,33 +763,24 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -764,7 +788,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of all sessions that have been processed / service", "fill": 1, "fillGradient": 0, @@ -792,7 +819,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.2.0", + "pluginVersion": "9.0.1", "pointradius": 2, "points": false, "renderer": "flot", @@ -802,17 +829,19 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, - "expr": "sum(increase(sessions_total{container_name=\"saas-ender\"}[${time}]))", + "expr": "sum(increase(sessions_total{container=\"ender\"}[${time}]))", "interval": "", "legendFormat": "", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Sessions processed / ${time}", "tooltip": { "shared": true, @@ -821,38 +850,32 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -861,6 +884,15 @@ }, "id": 4, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Assets", "type": "row" }, @@ -869,7 +901,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of all assets that have been processed / service", "fill": 1, "fillGradient": 0, @@ -897,7 +932,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.2.0", + "pluginVersion": "9.0.1", "pointradius": 2, "points": false, "renderer": "flot", @@ -907,6 +942,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(increase(assets_total[${time}]))", "interval": "", @@ -915,9 +954,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Assets processed / ${time}", "tooltip": { "shared": true, @@ -926,38 +963,32 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -966,14 +997,20 @@ }, "id": 36, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Db", "type": "row" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -982,7 +1019,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Size of batch in bytes before execution in PG", "gridPos": { "h": 8, @@ -1000,6 +1040,10 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(rate(batch_size_bytes_sum[${time}]))/sum(rate(batch_size_bytes_count[${time}]))", "interval": "", @@ -1016,26 +1060,15 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "decbytes", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -1044,7 +1077,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Number of sql requests before execution in PG", "gridPos": { "h": 8, @@ -1062,6 +1098,10 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(rate(batch_size_lines_sum[${time}]))/sum(rate(batch_size_lines_count[${time}]))", "interval": "", @@ -1078,26 +1118,15 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "short", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, + "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", @@ -1106,7 +1135,10 @@ "mode": "opacity" }, "dataFormat": "timeseries", - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "description": "Duration of SQL request", "gridPos": { "h": 8, @@ -1124,11 +1156,27 @@ "reverseYBuckets": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "exemplar": true, - "expr": "sum(rate(sql_request_time_sum[${time}]))/sum(rate(sql_request_time_count[${time}]))", + "expr": "sum(rate(sql_request_time_bucket[${time}]))", "interval": "", "legendFormat": "", "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "sum(rate(sql_request_time_sum[${time}]))/sum(rate(sql_request_time_count[${time}]))", + "hide": true, + "interval": "", + "legendFormat": "", + "refId": "B" } ], "title": "Duration of sql request / ${time}", @@ -1140,24 +1188,16 @@ "xAxis": { "show": true }, - "xBucketNumber": null, - "xBucketSize": null, "yAxis": { - "decimals": null, "format": "ms", "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null + "show": true }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null + "yBucketBound": "auto" } ], "refresh": "", - "schemaVersion": 31, + "schemaVersion": 36, "style": "dark", "tags": [], "templating": { @@ -1171,8 +1211,6 @@ "text": "auto", "value": "$__auto_interval_time" }, - "description": null, - "error": null, "hide": 1, "label": "Data sampling time", "name": "time", @@ -1212,12 +1250,13 @@ ] }, "time": { - "from": "now-6h", + "from": "now-30m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Openreplay Components Dashboard", "uid": "aq_tupq7k", - "version": 31 + "version": 1, + "weekStart": "" }