diff --git a/charts/dashboards/Hedera-Sourcify-Logs.json b/charts/dashboards/Hedera-Sourcify-Logs.json new file mode 100644 index 00000000..a02c889e --- /dev/null +++ b/charts/dashboards/Hedera-Sourcify-Logs.json @@ -0,0 +1,337 @@ +{ + "__inputs": [ + { + "name": "DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS", + "label": "grafanacloud-swirldslabsproduction-logs", + "description": "", + "type": "datasource", + "pluginId": "loki", + "pluginName": "Loki" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.2.0-72343" + }, + { + "type": "panel", + "id": "logs", + "name": "Logs", + "version": "" + }, + { + "type": "datasource", + "id": "loki", + "name": "Loki", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "warn" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FF780A", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "error" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E02F44", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "info" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#56A64B", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "debug" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3274D9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 31, + "options": { + "legend": { + "calcs": [ + "count", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Name", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.4.3", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "count_over_time({namespace=\"sourcify\"} != `GET /select-contract/health HTTP/1.1` | drop filename,node_name,pod,namespace,job |= \"$filter\" |= `` [1m])", + "queryType": "range", + "refId": "A" + } + ], + "title": "Log Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "gridPos": { + "h": 24, + "w": 24, + "x": 0, + "y": 11 + }, + "id": 29, + "maxDataPoints": "", + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "{namespace=\"sourcify\"} != `GET /select-contract/health HTTP/1.1` | drop filename, node_name, pod, namespace, job |= `$filter`", + "queryType": "range", + "refId": "A" + } + ], + "title": "Logs", + "type": "logs" + } + ], + "refresh": "", + "revision": 1, + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "", + "value": "" + }, + "hide": 0, + "label": "LogQL Filter", + "name": "filter", + "options": [], + "query": "", + "skipUrlSync": false, + "type": "textbox" + } + ] + }, + "time": { + "from": "now-3h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "utc", + "title": "Hedera Sourcify Logs", + "uid": "cspXkJRSz", + "version": 10, + "weekStart": "" +} \ No newline at end of file diff --git a/charts/dashboards/Hedera-Sourcify-Server.json b/charts/dashboards/Hedera-Sourcify-Server.json new file mode 100644 index 00000000..7795b575 --- /dev/null +++ b/charts/dashboards/Hedera-Sourcify-Server.json @@ -0,0 +1,797 @@ +{ + "__inputs": [ + { + "name": "DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS", + "label": "grafanacloud-swirldslabsproduction-logs", + "description": "", + "type": "datasource", + "pluginId": "loki", + "pluginName": "Loki" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.2.0-72343" + }, + { + "type": "panel", + "id": "logs", + "name": "Logs", + "version": "" + }, + { + "type": "datasource", + "id": "loki", + "name": "Loki", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "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": null, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 9, + "panels": [], + "title": "Row title", + "type": "row" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 0, + "y": 1 + }, + "id": 3, + "maxDataPoints": 100, + "options": { + "displayMode": "basic", + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.2.0-72343", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "builder", + "expr": "count_over_time({container=\"sourcify-server\"} |= `Verified contract` | json chainId | drop filename [$__auto])", + "legendFormat": "Chain {{chainId}}", + "queryType": "range", + "refId": "A" + } + ], + "title": "Verified Contracts per chainId", + "type": "bargauge" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "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": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 9, + "x": 6, + "y": 1 + }, + "id": 12, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "count_over_time({namespace=\"sourcify\", container=\"sourcify-server\"} | drop filename,namespace,node_name,pod,job,service_name [$__auto])", + "queryType": "range", + "range": true, + "refId": "A" + } + ], + "title": "All logs", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "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": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 9, + "x": 15, + "y": 1 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "count_over_time({namespace=\"sourcify\", container=\"sourcify-server\"} |= `Verifying contract` |drop filename,namespace,node_name,pod,job,service_name [$__auto])", + "queryType": "range", + "range": true, + "refId": "A" + } + ], + "title": "Verification Requests", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "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": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "warn" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "error" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-red", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 7, + "x": 0, + "y": 7 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "count_over_time({namespace=\"sourcify\", container=\"sourcify-server\"} | json level | level != `info` | level != `debug` | __error__=`` | drop filename [$__auto])", + "legendFormat": "{{level}}", + "queryType": "range", + "range": true, + "refId": "A" + } + ], + "title": "Errors and Warnings", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "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": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 10, + "x": 7, + "y": 7 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "count_over_time({namespace=\"sourcify\", container=\"sourcify-server\"} |= `Compiled contract` | drop filename,namespace,node_name,pod,job,service_name [$__auto])", + "queryType": "range", + "refId": "A" + } + ], + "title": "Compiler invocations", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "description": "Lambda function failed due to an contract output bigger than 20 MB and therefore local compilation was invoked", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "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": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 7, + "x": 17, + "y": 7 + }, + "id": 13, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "count_over_time({namespace=\"sourcify\", container=\"sourcify-server\"} |= `Falling back to local compilation` | drop filename [$__auto])", + "queryType": "range", + "range": true, + "refId": "A" + } + ], + "title": "Local compilation fallbacks", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 7, + "panels": [], + "title": "Logs", + "type": "row" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "gridPos": { + "h": 9, + "w": 10, + "x": 0, + "y": 14 + }, + "id": 10, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "{namespace=\"sourcify\", container=\"sourcify-server\"} | json level | level = `error`", + "queryType": "range", + "range": true, + "refId": "A" + } + ], + "title": "Errors", + "type": "logs" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "gridPos": { + "h": 9, + "w": 14, + "x": 10, + "y": 14 + }, + "id": 11, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "{namespace=\"sourcify\", container=\"sourcify-server\"} | json level | level = `warn`", + "queryType": "range", + "range": true, + "refId": "A" + } + ], + "title": "Warnings", + "type": "logs" + }, + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "gridPos": { + "h": 11, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 8, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": false, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "{namespace=\"sourcify\", container=\"sourcify-server\"} |= ``", + "queryType": "range", + "range": true, + "refId": "A" + } + ], + "title": "Logs", + "type": "logs" + } + ], + "refresh": "", + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-2d", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Hedera Sourcify Server", + "uid": "a51179eb-fcdd-4bc1-a8b9-555919fbf23b", + "version": 23, + "weekStart": "" +} \ No newline at end of file diff --git a/charts/dashboards/Hedera-Sourcify-Summary.json b/charts/dashboards/Hedera-Sourcify-Summary.json new file mode 100644 index 00000000..cb673468 --- /dev/null +++ b/charts/dashboards/Hedera-Sourcify-Summary.json @@ -0,0 +1,204 @@ +{ + "__inputs": [ + { + "name": "DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS", + "label": "grafanacloud-swirldslabsproduction-logs", + "description": "", + "type": "datasource", + "pluginId": "loki", + "pluginName": "Loki" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "barchart", + "name": "Bar chart", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.2.0-72343" + }, + { + "type": "datasource", + "id": "loki", + "name": "Loki", + "version": "1.0.0" + } + ], + "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": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 16, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "barRadius": 0, + "barWidth": 0.97, + "fullHighlight": false, + "groupWidth": 0.7, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "orientation": "vertical", + "showValue": "always", + "stacking": "none", + "tooltip": { + "mode": "single", + "sort": "none" + }, + "xField": "chainId\\result", + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${DS_GRAFANACLOUD-SWIRLDSLABSPRODUCTION-LOGS}" + }, + "editorMode": "code", + "expr": "{namespace=\"sourcify\", container=\"sourcify-server\"} | json | chainId != \"\" and message != \"\" | label_format result=\"{{if eq \\\"Verified contract\\\" .message }} Verified contract: {{.runtimeMatch}} {{else}} {{.message}} {{ end }}\"", + "queryType": "range", + "refId": "A" + } + ], + "title": "Messages by `chainId`", + "transformations": [ + { + "id": "extractFields", + "options": { + "format": "json", + "replace": true, + "source": "labels" + } + }, + { + "id": "groupBy", + "options": { + "fields": { + "chainId": { + "aggregations": [], + "operation": "groupby" + }, + "requestId": { + "aggregations": [ + "count" + ], + "operation": "aggregate" + }, + "result": { + "aggregations": [], + "operation": "groupby" + } + } + } + }, + { + "id": "groupingToMatrix", + "options": { + "columnField": "result", + "rowField": "chainId", + "valueField": "requestId (count)" + } + } + ], + "type": "barchart" + } + ], + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Hedera Sourcify Summary", + "uid": "cdpsbkfm0o0e8c", + "version": 5, + "weekStart": "" +} \ No newline at end of file