diff --git a/charts/hono/config/grafana/dashboard-definitions/jvm-details.json b/charts/hono/config/grafana/dashboard-definitions/jvm-details.json index 41aaf276..161e96b8 100644 --- a/charts/hono/config/grafana/dashboard-definitions/jvm-details.json +++ b/charts/hono/config/grafana/dashboard-definitions/jvm-details.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -13,13 +16,17 @@ ] }, "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1543834182381, "links": [], + "liveNow": false, "panels": [ { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "gridPos": { "h": 1, "w": 24, @@ -28,6 +35,15 @@ }, "id": 94, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "refId": "A" + } + ], "title": "Memory", "type": "row" }, @@ -36,14 +52,19 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 8, "w": 11, "x": 0, "y": 1 }, + "hiddenSeries": false, "id": 74, "legend": { "avg": false, @@ -60,7 +81,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -80,6 +105,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(jvm_memory_used_bytes{host=~\"$instance\"})", "format": "time_series", "intervalFactor": 1, @@ -87,6 +116,10 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(jvm_memory_max_bytes{host=~\"$instance\"})", "format": "time_series", "interval": "", @@ -96,8 +129,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "JVM memory", "tooltip": { "shared": true, @@ -106,53 +138,71 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "decimals": 0, - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.7 + }, + { + "color": "#d44a3a", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] }, "gridPos": { "h": 8, @@ -162,76 +212,54 @@ }, "hideTimeOverride": true, "id": 75, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(jvm_memory_used_bytes{host=~\"$instance\"})\n/\nsum(jvm_memory_max_bytes{host=~\"$instance\"})", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": ".7,.9", - "timeFrom": null, - "timeShift": null, "title": "JVM memory usage", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "gauge" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 8, "w": 10, "x": 14, "y": 1 }, + "hiddenSeries": false, "id": 83, "legend": { "avg": false, @@ -248,7 +276,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -263,6 +295,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(rate(jvm_gc_pause_seconds_sum{host=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "intervalFactor": 1, @@ -270,6 +306,10 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "rate(jvm_gc_memory_promoted_bytes_total{host=~\"$instance\"}[$__rate_interval])", "format": "time_series", "intervalFactor": 1, @@ -278,8 +318,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "JVM GC", "tooltip": { "shared": true, @@ -288,37 +327,33 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "s", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "gridPos": { "h": 1, "w": 24, @@ -327,6 +362,15 @@ }, "id": 96, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "refId": "A" + } + ], "title": "CPU", "type": "row" }, @@ -335,14 +379,19 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 9, "w": 11, "x": 0, "y": 10 }, + "hiddenSeries": false, "id": 80, "legend": { "avg": false, @@ -357,7 +406,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -367,6 +420,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "process_cpu_usage{host=~\"$instance\"}", "format": "time_series", "intervalFactor": 1, @@ -374,6 +431,10 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "system_cpu_usage{host=~\"$instance\"}", "format": "time_series", "intervalFactor": 1, @@ -382,8 +443,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "CPU usage", "tooltip": { "shared": true, @@ -392,52 +452,65 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "percentunit", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 3, @@ -446,42 +519,29 @@ "y": 10 }, "id": 82, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(system_cpu_count{host=~\"$instance\"})", "format": "time_series", "intervalFactor": 1, @@ -489,32 +549,27 @@ "refId": "A" } ], - "thresholds": "", "title": "CPUs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 9, "w": 10, "x": 14, "y": 10 }, + "hiddenSeries": false, "id": 86, "legend": { "avg": false, @@ -529,7 +584,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -539,6 +598,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "process_files_open_files{host=~\"$instance\"}", "format": "time_series", "intervalFactor": 1, @@ -547,8 +610,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "Open Files", "tooltip": { "shared": true, @@ -557,52 +619,65 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 3, @@ -611,42 +686,29 @@ "y": 13 }, "id": 78, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(jvm_threads_live_threads{host=~\"$instance\"})", "format": "time_series", "intervalFactor": 1, @@ -654,21 +716,15 @@ "refId": "A" } ], - "thresholds": "", "title": "Threads", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "gridPos": { "h": 1, "w": 24, @@ -677,6 +733,15 @@ }, "id": 92, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "refId": "A" + } + ], "title": "Logs", "type": "row" }, @@ -685,14 +750,19 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 8, "w": 11, "x": 0, "y": 20 }, + "hiddenSeries": false, "id": 84, "legend": { "avg": false, @@ -709,7 +779,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -745,6 +819,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "rate(logback_events_total{host=~\"$instance\"}[$__rate_interval])", "format": "time_series", "intervalFactor": 1, @@ -753,8 +831,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "logback", "tooltip": { "shared": true, @@ -763,52 +840,64 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "none", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -817,42 +906,29 @@ "y": 20 }, "id": 87, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(increase(logback_events_total{level=~\"debug|trace\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -860,36 +936,46 @@ "refId": "A" } ], - "thresholds": "", "title": "Trace | Debug", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -898,42 +984,29 @@ "y": 22 }, "id": 88, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(increase(logback_events_total{level=\"info\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -941,36 +1014,46 @@ "refId": "A" } ], - "thresholds": "", "title": "Info", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -979,42 +1062,29 @@ "y": 24 }, "id": 89, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(increase(logback_events_total{level=\"warn\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -1022,36 +1092,46 @@ "refId": "A" } ], - "thresholds": "", "title": "Warning", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -1060,42 +1140,29 @@ "y": 26 }, "id": 90, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(increase(logback_events_total{level=\"error\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -1103,36 +1170,29 @@ "refId": "A" } ], - "thresholds": "", "title": "Error", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" } ], "refresh": "10s", - "schemaVersion": 16, + "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [ { - "allValue": null, "current": { + "selected": false, "text": "All", "value": "$__all" }, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "definition": "", "hide": 0, "includeAll": true, - "label": null, "multi": false, "name": "instance", "options": [], @@ -1142,7 +1202,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -1181,5 +1240,6 @@ "timezone": "", "title": "JVM details", "uid": "9kSOf0fiz", - "version": 1 + "version": 1, + "weekStart": "" } diff --git a/charts/hono/config/grafana/dashboard-definitions/message-details.json b/charts/hono/config/grafana/dashboard-definitions/message-details.json index 2d7cf91d..e2605c4f 100644 --- a/charts/hono/config/grafana/dashboard-definitions/message-details.json +++ b/charts/hono/config/grafana/dashboard-definitions/message-details.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -13,24 +16,29 @@ ] }, "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1549025382653, "links": [], + "liveNow": false, "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 6, "w": 20, "x": 0, "y": 0 }, + "hiddenSeries": false, "id": 2, "legend": { "alignAsTable": false, @@ -47,7 +55,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -57,6 +69,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(irate(hono_telemetry_processing_duration_seconds_count{status=\"forwarded\",component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__range]))", "format": "time_series", "interval": "", @@ -66,8 +82,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "Succeeded", "tooltip": { "shared": true, @@ -76,52 +91,63 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ops", - "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 } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "ops", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -130,79 +156,76 @@ "y": 0 }, "id": 8, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(rate(hono_telemetry_processing_duration_seconds_count{status=\"forwarded\",component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "timeFrom": "1m", "title": "avg", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "ops", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -211,79 +234,76 @@ "y": 2 }, "id": 9, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(rate(hono_telemetry_processing_duration_seconds_count{status=\"forwarded\",component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "timeFrom": "5m", "title": "avg", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "ops", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -292,75 +312,57 @@ "y": 4 }, "id": 10, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(rate(hono_telemetry_processing_duration_seconds_count{status=\"forwarded\",component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "timeFrom": "15m", "title": "avg", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 6, "w": 20, "x": 0, "y": 6 }, + "hiddenSeries": false, "id": 3, "legend": { "alignAsTable": false, @@ -377,7 +379,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -387,6 +393,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(irate(hono_telemetry_payload_bytes_sum{component_name=~\"$componentname\",type=~\"$type\",status=\"forwarded\",tenant=~\"$tenant\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -394,6 +404,10 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(irate(hono_telemetry_payload_bytes_sum{component_name=~\"$componentname\",type=~\"$type\",status=\"undeliverable\",tenant=~\"$tenant\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -401,6 +415,10 @@ "refId": "B" }, { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(irate(hono_telemetry_payload_bytes_sum{component_name=~\"$componentname\",type=~\"$type\",status=\"unprocessable\",tenant=~\"$tenant\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -409,8 +427,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "Payload", "tooltip": { "shared": true, @@ -419,52 +436,64 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "Bps", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -473,79 +502,76 @@ "y": 6 }, "id": 11, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(rate(hono_telemetry_payload_bytes_sum{component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "timeFrom": "1m", "title": "avg", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "Bps", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -554,79 +580,76 @@ "y": 8 }, "id": 12, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(rate(hono_telemetry_payload_bytes_sum{component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "timeFrom": "5m", "title": "avg", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "hono_metrics", - "format": "Bps", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] }, "gridPos": { "h": 2, @@ -635,75 +658,57 @@ "y": 10 }, "id": 13, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(rate(hono_telemetry_payload_bytes_sum{component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "timeFrom": "15m", "title": "avg", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 6, "w": 20, "x": 0, "y": 12 }, + "hiddenSeries": false, "id": 4, "legend": { "alignAsTable": false, @@ -720,7 +725,11 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": { + "alertThreshold": true + }, "percentage": false, + "pluginVersion": "10.1.5", "pointradius": 5, "points": false, "renderer": "flot", @@ -730,6 +739,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(irate(hono_telemetry_processing_duration_seconds_count{component_name=~\"$componentname\",type=~\"$type\",status=\"undeliverable\",tenant=~\"$tenant\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -737,6 +750,10 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "sum(irate(hono_telemetry_processing_duration_seconds_count{component_name=~\"$componentname\",type=~\"$type\",status=\"unprocessable\",tenant=~\"$tenant\",host=~\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 1, @@ -745,8 +762,7 @@ } ], "thresholds": [], - "timeFrom": null, - "timeShift": null, + "timeRegions": [], "title": "Failed", "tooltip": { "shared": true, @@ -755,53 +771,72 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ops", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "#e5ac0e", - "#d44a3a" - ], - "datasource": "hono_metrics", - "decimals": 0, - "format": "percent", - "gauge": { - "maxValue": 30, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "color": "#299c46", + "text": "0%" + } + }, + "type": "special" + } + ], + "max": 30, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "#e5ac0e", + "value": 5 + }, + { + "color": "#d44a3a", + "value": 15 + } + ] + }, + "unit": "percent" + }, + "overrides": [] }, "gridPos": { "h": 6, @@ -810,42 +845,27 @@ "y": 12 }, "id": 6, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "tableColumn": "", + "pluginVersion": "10.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, "expr": "(sum(rate(hono_telemetry_processing_duration_seconds_count{component_name=~\"$componentname\",type=~\"$type\",status!=\"forwarded\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval]))\n/\n sum(rate(hono_telemetry_processing_duration_seconds_count{component_name=~\"$componentname\",type=~\"$type\",tenant=~\"$tenant\",host=~\"$instance\"}[$__rate_interval])))\n* 100\n", "format": "time_series", "instant": false, @@ -854,35 +874,31 @@ "refId": "A" } ], - "thresholds": "5,15", "title": "Failure Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "0%", - "value": "null" - } - ], - "valueName": "avg" + "type": "gauge" } ], "refresh": "10s", - "schemaVersion": 16, + "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [ { - "allValue": null, "current": { - "text": "All", + "selected": true, + "text": [ + "All" + ], "value": [ "$__all" ] }, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "definition": "", "hide": 0, "includeAll": true, "label": "Adapter", @@ -895,7 +911,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -910,6 +925,7 @@ "name": "tenant", "options": [ { + "selected": true, "text": ".+", "value": ".+" } @@ -919,15 +935,20 @@ "type": "textbox" }, { - "allValue": null, "current": { - "tags": [], - "text": "All", + "selected": true, + "text": [ + "All" + ], "value": [ "$__all" ] }, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "definition": "", "hide": 0, "includeAll": true, "label": "Type", @@ -940,20 +961,25 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { - "text": "All", + "selected": true, + "text": [ + "All" + ], "value": [ "$__all" ] }, - "datasource": "hono_metrics", + "datasource": { + "type": "prometheus", + "uid": "P8B86E624E541D793" + }, + "definition": "", "hide": 0, "includeAll": true, "label": "Instance", @@ -966,7 +992,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -1005,5 +1030,6 @@ "timezone": "", "title": "Message details", "uid": "rcEOBABmk", - "version": 1 + "version": 1, + "weekStart": "" } diff --git a/charts/hono/config/grafana/dashboard-definitions/overview.json b/charts/hono/config/grafana/dashboard-definitions/overview.json index df6fc04b..388a0608 100644 --- a/charts/hono/config/grafana/dashboard-definitions/overview.json +++ b/charts/hono/config/grafana/dashboard-definitions/overview.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -13,7 +16,7 @@ ] }, "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, "links": [ { @@ -32,9 +35,13 @@ "type": "dashboards" } ], + "liveNow": false, "panels": [ { - "content": "