From b0d88460dee417b40267680783fbb737814d5663 Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Mon, 9 Dec 2019 11:05:59 +0000 Subject: [PATCH] #251 - add Logging rate panel (#254) --- dashboards/victoriametrics.json | 127 ++++++++++++++++++++++++++++++-- 1 file changed, 122 insertions(+), 5 deletions(-) diff --git a/dashboards/victoriametrics.json b/dashboards/victoriametrics.json index b60392491..0ef3179b5 100644 --- a/dashboards/victoriametrics.json +++ b/dashboards/victoriametrics.json @@ -14,7 +14,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "6.4.4" + "version": "6.5.0" }, { "type": "panel", @@ -60,12 +60,12 @@ } ] }, - "description": "Overview for single node VictoriaMetrics v1.29.0 or higher", + "description": "Overview for single node VictoriaMetrics v1.30.3 or higher", "editable": true, "gnetId": 10229, "graphTooltip": 0, "id": null, - "iteration": 1573509727687, + "iteration": 1575825261972, "links": [ { "icon": "doc", @@ -499,6 +499,7 @@ "x": 0, "y": 11 }, + "hiddenSeries": false, "id": 12, "legend": { "alignAsTable": true, @@ -592,6 +593,7 @@ "x": 12, "y": 11 }, + "hiddenSeries": false, "id": 22, "legend": { "alignAsTable": true, @@ -685,6 +687,7 @@ "x": 0, "y": 19 }, + "hiddenSeries": false, "id": 51, "legend": { "avg": false, @@ -781,6 +784,7 @@ "x": 12, "y": 19 }, + "hiddenSeries": false, "id": 33, "legend": { "avg": false, @@ -885,6 +889,7 @@ "x": 0, "y": 27 }, + "hiddenSeries": false, "id": 66, "legend": { "avg": false, @@ -972,6 +977,7 @@ "x": 12, "y": 27 }, + "hiddenSeries": false, "id": 35, "legend": { "alignAsTable": true, @@ -1065,6 +1071,7 @@ "x": 0, "y": 35 }, + "hiddenSeries": false, "id": 60, "legend": { "avg": false, @@ -1157,6 +1164,7 @@ "x": 12, "y": 35 }, + "hiddenSeries": false, "id": 59, "legend": { "alignAsTable": true, @@ -1266,6 +1274,7 @@ "x": 0, "y": 43 }, + "hiddenSeries": false, "id": 37, "legend": { "avg": false, @@ -1358,6 +1367,7 @@ "x": 12, "y": 43 }, + "hiddenSeries": false, "id": 49, "legend": { "avg": false, @@ -1464,6 +1474,7 @@ "x": 0, "y": 52 }, + "hiddenSeries": false, "id": 10, "legend": { "alignAsTable": true, @@ -1563,6 +1574,7 @@ "x": 12, "y": 52 }, + "hiddenSeries": false, "id": 34, "legend": { "avg": false, @@ -1668,6 +1680,7 @@ "x": 0, "y": 60 }, + "hiddenSeries": false, "id": 30, "legend": { "avg": false, @@ -1758,6 +1771,7 @@ "x": 12, "y": 60 }, + "hiddenSeries": false, "id": 36, "legend": { "avg": false, @@ -1848,6 +1862,7 @@ "x": 0, "y": 68 }, + "hiddenSeries": false, "id": 53, "legend": { "avg": false, @@ -1938,6 +1953,7 @@ "x": 12, "y": 68 }, + "hiddenSeries": false, "id": 55, "legend": { "avg": false, @@ -2027,6 +2043,7 @@ "x": 0, "y": 76 }, + "hiddenSeries": false, "id": 62, "legend": { "avg": false, @@ -2115,6 +2132,7 @@ "x": 12, "y": 76 }, + "hiddenSeries": false, "id": 64, "legend": { "avg": false, @@ -2203,6 +2221,7 @@ "x": 0, "y": 84 }, + "hiddenSeries": false, "id": 58, "legend": { "avg": false, @@ -2280,6 +2299,99 @@ "alignLevel": null } }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMETHEUS}", + "description": "Shows the rate of logging the messages by their level. Unexpected spike in rate is a good reason to check logs.", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 84 + }, + "hiddenSeries": false, + "id": 67, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(rate(vm_log_messages_total{job=\"$job\"}[5m])) by (level) ", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "{{level}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Logging rate", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": null, + "format": "short", + "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 + } + }, { "collapsed": false, "datasource": "${DS_PROMETHEUS}", @@ -2309,6 +2421,7 @@ "x": 0, "y": 93 }, + "hiddenSeries": false, "id": 44, "legend": { "avg": false, @@ -2415,6 +2528,7 @@ "x": 12, "y": 93 }, + "hiddenSeries": false, "id": 57, "legend": { "avg": false, @@ -2504,6 +2618,7 @@ "x": 0, "y": 101 }, + "hiddenSeries": false, "id": 47, "legend": { "avg": false, @@ -2594,6 +2709,7 @@ "x": 12, "y": 101 }, + "hiddenSeries": false, "id": 42, "legend": { "avg": false, @@ -2683,6 +2799,7 @@ "x": 0, "y": 109 }, + "hiddenSeries": false, "id": 48, "legend": { "avg": false, @@ -2761,7 +2878,7 @@ } ], "refresh": "30s", - "schemaVersion": 20, + "schemaVersion": 21, "style": "dark", "tags": [], "templating": { @@ -2844,5 +2961,5 @@ "timezone": "", "title": "VictoriaMetrics", "uid": "wNf0q_kZk", - "version": 4 + "version": 1 } \ No newline at end of file