From 9f2489de80e5f3aefe65b2680b863eaa27692f70 Mon Sep 17 00:00:00 2001 From: Ilayda Dastan <43909097+ilaydadastan@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:25:01 +0300 Subject: [PATCH] feat(log-analyser): updated grafana dashboards (#1885) --- .../dashboards/jicofo.json | 305 ++++++++++++- .../dashboards/jitsi-all.json | 57 ++- .../dashboards/jitsi-web.json | 275 ++++++++++++ .../grafana-provisioning/dashboards/jvb.json | 50 ++- .../dashboards/prosody.json | 408 ++++++++++++++++++ 5 files changed, 1067 insertions(+), 28 deletions(-) create mode 100644 log-analyser/grafana-provisioning/dashboards/jitsi-web.json create mode 100644 log-analyser/grafana-provisioning/dashboards/prosody.json diff --git a/log-analyser/grafana-provisioning/dashboards/jicofo.json b/log-analyser/grafana-provisioning/dashboards/jicofo.json index 2024180..0207fb4 100644 --- a/log-analyser/grafana-provisioning/dashboards/jicofo.json +++ b/log-analyser/grafana-provisioning/dashboards/jicofo.json @@ -18,14 +18,50 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 1, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "loki", - "uid": "b8130a28-4867-4668-917d-539c93852857" + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 6, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "{exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-jicofo\"", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jicofo Logs", + "type": "logs" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" }, "fieldConfig": { "defaults": { @@ -46,7 +82,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 0 }, "id": 2, @@ -81,19 +117,19 @@ "uid": "b8130a28-4867-4668-917d-539c93852857" }, "editorMode": "code", - "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jicofo.log\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)", + "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-jicofo\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)", "legendFormat": "Level: {{attributes_level}}", "queryType": "range", "refId": "A" } ], - "title": "Log Levels Pie Chart", + "title": "Jicofo Log Levels Pie Chart", "type": "piechart" }, { "datasource": { "type": "loki", - "uid": "b8130a28-4867-4668-917d-539c93852857" + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" }, "fieldConfig": { "defaults": { @@ -105,7 +141,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -147,15 +184,261 @@ "uid": "b8130a28-4867-4668-917d-539c93852857" }, "editorMode": "code", - "expr": "sum by (attributes_level, attributes_log_file_name) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jicofo.log\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] #: <_>\"[5m]))", + "expr": "sum by (attributes_level, attributes_attrs_service) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-jicofo\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] #: <_>\"[5m]))", "legendFormat": "Level: {{attributes_level}}", "queryType": "range", "refId": "A" } ], - "title": "Log Levels Bar Chart", + "title": "Jicofo Log Levels Bar Chart", "transformations": [], "type": "bargauge" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "hue", + "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": "normal" + }, + "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": 8 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "editorMode": "code", + "expr": "sum by (attributes_codefile) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-jicofo\"| attributes_level=\"ERROR\" | line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] #: <_>\"[5m]))", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jicofo Total Rate of ERROR Logs Aggregated by Code File", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "description": "This panel shows the number of conference requests over time.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "hue", + "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": "normal" + }, + "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": 16 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "count_over_time({exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-jicofo\" |= \"Conference request\" [1m])", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jicofo Number of Conference Requests", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 5, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum(count_over_time({exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-jicofo\" |~ \"Member left|Terminating|Removed participant\" [1m]))", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jicofo Total Counts of Member Left, Terminating, Removed Participant", + "type": "gauge" } ], "refresh": "", @@ -170,8 +453,8 @@ }, "timepicker": {}, "timezone": "", - "title": "Jicofo Logs", + "title": "Jicofo Dashboard", "uid": "f2dcfe84-3c27-4b1d-8583-bc2c97a8d22d", - "version": 5, + "version": 20, "weekStart": "" } diff --git a/log-analyser/grafana-provisioning/dashboards/jitsi-all.json b/log-analyser/grafana-provisioning/dashboards/jitsi-all.json index 922ad2e..ab8c511 100644 --- a/log-analyser/grafana-provisioning/dashboards/jitsi-all.json +++ b/log-analyser/grafana-provisioning/dashboards/jitsi-all.json @@ -18,15 +18,15 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 3, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "loki", - "uid": "b8130a28-4867-4668-917d-539c93852857" + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" }, + "description": "", "fieldConfig": { "defaults": { "color": { @@ -67,13 +67,13 @@ } ] }, - "unit": "none" + "unit": "percent" }, "overrides": [] }, "gridPos": { - "h": 8, - "w": 12, + "h": 13, + "w": 24, "x": 0, "y": 0 }, @@ -107,14 +107,51 @@ "uid": "b8130a28-4867-4668-917d-539c93852857" }, "editorMode": "code", - "expr": "sum by (attributes_log_file_name) (\n rate({exporter=\"OTLP\"} | json | line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m]))", - "legendFormat": "{{attributes_log_file_name}}", + "expr": "sum by (attributes_attrs_service) (\n rate({exporter=\"OTLP\"} | json | line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m]))", + "legendFormat": "{{attributes_attrs_service}}", "queryType": "range", "refId": "A" } ], - "title": "Jicofo and JVB Log Counts", + "title": "Jicofo, Prosody, Jitsi Web and JVB Log Counts", "type": "barchart" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 2, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "{exporter=\"OTLP\"} ", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jitsi All Logs (Jicofo, Prosody, JVB, Web)", + "type": "logs" } ], "refresh": "", @@ -129,8 +166,8 @@ }, "timepicker": {}, "timezone": "", - "title": "Jitsi All Components", + "title": "Jitsi All Components Dashboard", "uid": "b75d666d-4537-45e2-94a1-2783f9362b65", - "version": 1, + "version": 14, "weekStart": "" } diff --git a/log-analyser/grafana-provisioning/dashboards/jitsi-web.json b/log-analyser/grafana-provisioning/dashboards/jitsi-web.json new file mode 100644 index 0000000..bbd362e --- /dev/null +++ b/log-analyser/grafana-provisioning/dashboards/jitsi-web.json @@ -0,0 +1,275 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 5, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "{exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-web\"", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jitsi Web Logs", + "type": "logs" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 4, + "options": { + "displayLabels": [ + "percent" + ], + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "right", + "showLegend": false, + "values": [] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-web\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)", + "legendFormat": "Level: {{attributes_level}}", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jitsi Web Log Levels Pie Chart", + "type": "piechart" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 3, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "valueMode": "color" + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum by (attributes_level, attributes_attrs_service) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-web\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] #: <_>\"[5m]))", + "legendFormat": "Level: {{attributes_level}}", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jitsi Web Log Levels Bar Chart", + "type": "bargauge" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "semi-dark-red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 2, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum(count_over_time({exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-web\" |= \"GET\" [5m])) by (instance)", + "queryType": "range", + "refId": "A" + } + ], + "title": "Jitsi Web Sum of 'GET' Log Counts", + "type": "gauge" + } + ], + "refresh": "", + "schemaVersion": 38, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Jitsi Web Dashboard", + "uid": "d1f8ba02-9b8d-42c7-8934-d30ea3559a49", + "version": 4, + "weekStart": "" +} diff --git a/log-analyser/grafana-provisioning/dashboards/jvb.json b/log-analyser/grafana-provisioning/dashboards/jvb.json index 9a2be5c..7c9022a 100644 --- a/log-analyser/grafana-provisioning/dashboards/jvb.json +++ b/log-analyser/grafana-provisioning/dashboards/jvb.json @@ -18,14 +18,50 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 2, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "loki", - "uid": "b8130a28-4867-4668-917d-539c93852857" + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 3, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "{exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-jvb\"", + "queryType": "range", + "refId": "A" + } + ], + "title": "JVB Logs", + "type": "logs" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" }, "fieldConfig": { "defaults": { @@ -46,7 +82,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 0 }, "id": 2, @@ -80,7 +116,7 @@ "uid": "b8130a28-4867-4668-917d-539c93852857" }, "editorMode": "code", - "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jvb.log\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)", + "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-jvb\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)", "legendFormat": "Level: {{attributes_level}}", "queryType": "range", "refId": "A" @@ -92,7 +128,7 @@ { "datasource": { "type": "loki", - "uid": "b8130a28-4867-4668-917d-539c93852857" + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" }, "fieldConfig": { "defaults": { @@ -148,7 +184,7 @@ "uid": "b8130a28-4867-4668-917d-539c93852857" }, "editorMode": "code", - "expr": "sum by (attributes_level, attributes_log_file_name) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jvb.log\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] #: <_>\"[5m]))", + "expr": "sum by (attributes_level, attributes_attrs_service) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-jvb\" | line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] #: <_>\"[5m]))", "legendFormat": "Level: {{attributes_level}}", "queryType": "range", "refId": "A" @@ -172,6 +208,6 @@ "timezone": "", "title": "JVB Dashboard", "uid": "d53a9efb-ca3b-4f47-af3a-9638de8a35fa", - "version": 1, + "version": 10, "weekStart": "" } diff --git a/log-analyser/grafana-provisioning/dashboards/prosody.json b/log-analyser/grafana-provisioning/dashboards/prosody.json new file mode 100644 index 0000000..795494c --- /dev/null +++ b/log-analyser/grafana-provisioning/dashboards/prosody.json @@ -0,0 +1,408 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 6, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "{exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-prosody\"", + "queryType": "range", + "refId": "A" + } + ], + "title": "Prosody Logs", + "type": "logs" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 1, + "options": { + "displayLabels": [ + "percent" + ], + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "right", + "showLegend": false, + "values": [] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-prosody\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)", + "legendFormat": "Level: {{attributes_level}}", + "queryType": "range", + "refId": "A" + } + ], + "title": "Prosody Log Levels Pie Chart", + "type": "piechart" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 7, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "valueMode": "color" + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum by (attributes_level, attributes_attrs_service) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-prosody\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] #: <_>\"[5m]))", + "legendFormat": "Level: {{attributes_level}}", + "queryType": "range", + "refId": "A" + } + ], + "title": "Prosody Log Levels Bar Chart", + "type": "bargauge" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 85 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 5, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum(count_over_time({exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-prosody\" |~ \"Starting room\" [1m]))", + "queryType": "range", + "refId": "A" + } + ], + "title": "Prosody Total Number of Rooms Started", + "type": "gauge" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 85 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 3, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum(count_over_time({exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-prosody\" |~ \"Client disconnected\" [1m]))", + "queryType": "range", + "refId": "A" + } + ], + "title": "Prosody Total Number of Clients Disconnected", + "type": "gauge" + }, + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 85 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 2, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444" + }, + "editorMode": "code", + "expr": "sum(count_over_time({exporter=\"OTLP\"} | json |attributes_attrs_service=\"jitsi-prosody\" |~ \"Client connected\" [1m]))", + "queryType": "range", + "refId": "A" + } + ], + "title": "Prosody Total Number of Clients Connected", + "type": "gauge" + } + ], + "refresh": "", + "schemaVersion": 38, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Prosody Dashboard", + "uid": "fe2d57bc-b09b-4688-8037-f642047b0cfc", + "version": 1, + "weekStart": "" +}