From 192d3b1cbadc72bb70f4280a5ce49bfd3c07566e Mon Sep 17 00:00:00 2001 From: Daniel Olshansky Date: Sat, 27 Apr 2024 19:24:13 -0700 Subject: [PATCH] [Dashboard] Supplier logs dashboard (#502) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://localhost:3003/d/supplier_logs/protocol-supplier-logs?orgId=1 ![Screenshot 2024-04-25 at 9 00 02 PM](https://github.com/pokt-network/poktroll/assets/1892194/d95c65aa-0215-4e6d-b216-74b5fdd16e95) Co-authored-by: Redouane Lakrache --- localnet/grafana-dashboards/cometbft.json | 14 +++ .../grafana-dashboards/supplier_logs.json | 116 ++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 localnet/grafana-dashboards/supplier_logs.json diff --git a/localnet/grafana-dashboards/cometbft.json b/localnet/grafana-dashboards/cometbft.json index f07128aca..32ef31852 100644 --- a/localnet/grafana-dashboards/cometbft.json +++ b/localnet/grafana-dashboards/cometbft.json @@ -35,6 +35,20 @@ "type": "dashboards", "url": "" }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "supplier_logs" + ], + "targetBlank": false, + "title": "Supplier Logs", + "tooltip": "", + "type": "dashboards", + "url": "" + }, { "asDropdown": false, "icon": "external link", diff --git a/localnet/grafana-dashboards/supplier_logs.json b/localnet/grafana-dashboards/supplier_logs.json new file mode 100644 index 000000000..609ea1b1e --- /dev/null +++ b/localnet/grafana-dashboards/supplier_logs.json @@ -0,0 +1,116 @@ +{ + "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, + "id": 35, + "links": [], + "panels": [ + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "gridPos": { + "h": 8, + "w": 18, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "editorMode": "code", + "expr": "{container=\"poktrolld-validator\"} | json | method = `StakeSupplier`", + "queryType": "range", + "refId": "Supplier Staking" + } + ], + "title": "Supplier Staking", + "type": "logs" + }, + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "gridPos": { + "h": 8, + "w": 18, + "x": 0, + "y": 8 + }, + "id": 3, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "editorMode": "code", + "expr": "{container=\"poktrolld-validator\"} | json | method = `UnstakeSupplier`", + "queryType": "range", + "refId": "Supplier Unstaking" + } + ], + "title": "Supplier Unstaking", + "type": "logs" + } + ], + "schemaVersion": 39, + "tags": [ + "supplier_logs" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Protocol / Supplier Logs", + "uid": "supplier_logs", + "version": 7, + "weekStart": "" +}