From 7dc141a8a4443e7026edb1099eec7837324d6717 Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Mon, 6 Sep 2021 01:34:23 +0200 Subject: [PATCH] [OPB-xxx] adding logging dashboard to grafana --- .../grafana/dashboards/oneplus-bot-logs.json | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 deployment/image-packaging/src/main/docker/grafana/dashboards/oneplus-bot-logs.json diff --git a/deployment/image-packaging/src/main/docker/grafana/dashboards/oneplus-bot-logs.json b/deployment/image-packaging/src/main/docker/grafana/dashboards/oneplus-bot-logs.json new file mode 100644 index 0000000..74743b6 --- /dev/null +++ b/deployment/image-packaging/src/main/docker/grafana/dashboards/oneplus-bot-logs.json @@ -0,0 +1,66 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 4, + "links": [], + "panels": [ + { + "datasource": "Loki", + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "maxDataPoints": 10000, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "targets": [ + { + "expr": "{job=\"oneplus-bot-logs\", filename=\"/logs/log.log\"}", + "queryType": "randomWalk", + "refId": "A" + } + ], + "title": "OnePlus Bot logs", + "type": "logs" + } + ], + "refresh": "", + "schemaVersion": 30, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-3h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "OnePlus Bot logs", + "uid": "1uGb0q4nz", + "version": 1 +} \ No newline at end of file