#251 - add Logging rate panel (#254)

This commit is contained in:
Roman Khavronenko 2019-12-09 11:05:59 +00:00 committed by Aliaksandr Valialkin
parent 8db7660afe
commit b0d88460de

View File

@ -14,7 +14,7 @@
"type": "grafana", "type": "grafana",
"id": "grafana", "id": "grafana",
"name": "Grafana", "name": "Grafana",
"version": "6.4.4" "version": "6.5.0"
}, },
{ {
"type": "panel", "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, "editable": true,
"gnetId": 10229, "gnetId": 10229,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": null,
"iteration": 1573509727687, "iteration": 1575825261972,
"links": [ "links": [
{ {
"icon": "doc", "icon": "doc",
@ -499,6 +499,7 @@
"x": 0, "x": 0,
"y": 11 "y": 11
}, },
"hiddenSeries": false,
"id": 12, "id": 12,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
@ -592,6 +593,7 @@
"x": 12, "x": 12,
"y": 11 "y": 11
}, },
"hiddenSeries": false,
"id": 22, "id": 22,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
@ -685,6 +687,7 @@
"x": 0, "x": 0,
"y": 19 "y": 19
}, },
"hiddenSeries": false,
"id": 51, "id": 51,
"legend": { "legend": {
"avg": false, "avg": false,
@ -781,6 +784,7 @@
"x": 12, "x": 12,
"y": 19 "y": 19
}, },
"hiddenSeries": false,
"id": 33, "id": 33,
"legend": { "legend": {
"avg": false, "avg": false,
@ -885,6 +889,7 @@
"x": 0, "x": 0,
"y": 27 "y": 27
}, },
"hiddenSeries": false,
"id": 66, "id": 66,
"legend": { "legend": {
"avg": false, "avg": false,
@ -972,6 +977,7 @@
"x": 12, "x": 12,
"y": 27 "y": 27
}, },
"hiddenSeries": false,
"id": 35, "id": 35,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
@ -1065,6 +1071,7 @@
"x": 0, "x": 0,
"y": 35 "y": 35
}, },
"hiddenSeries": false,
"id": 60, "id": 60,
"legend": { "legend": {
"avg": false, "avg": false,
@ -1157,6 +1164,7 @@
"x": 12, "x": 12,
"y": 35 "y": 35
}, },
"hiddenSeries": false,
"id": 59, "id": 59,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
@ -1266,6 +1274,7 @@
"x": 0, "x": 0,
"y": 43 "y": 43
}, },
"hiddenSeries": false,
"id": 37, "id": 37,
"legend": { "legend": {
"avg": false, "avg": false,
@ -1358,6 +1367,7 @@
"x": 12, "x": 12,
"y": 43 "y": 43
}, },
"hiddenSeries": false,
"id": 49, "id": 49,
"legend": { "legend": {
"avg": false, "avg": false,
@ -1464,6 +1474,7 @@
"x": 0, "x": 0,
"y": 52 "y": 52
}, },
"hiddenSeries": false,
"id": 10, "id": 10,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
@ -1563,6 +1574,7 @@
"x": 12, "x": 12,
"y": 52 "y": 52
}, },
"hiddenSeries": false,
"id": 34, "id": 34,
"legend": { "legend": {
"avg": false, "avg": false,
@ -1668,6 +1680,7 @@
"x": 0, "x": 0,
"y": 60 "y": 60
}, },
"hiddenSeries": false,
"id": 30, "id": 30,
"legend": { "legend": {
"avg": false, "avg": false,
@ -1758,6 +1771,7 @@
"x": 12, "x": 12,
"y": 60 "y": 60
}, },
"hiddenSeries": false,
"id": 36, "id": 36,
"legend": { "legend": {
"avg": false, "avg": false,
@ -1848,6 +1862,7 @@
"x": 0, "x": 0,
"y": 68 "y": 68
}, },
"hiddenSeries": false,
"id": 53, "id": 53,
"legend": { "legend": {
"avg": false, "avg": false,
@ -1938,6 +1953,7 @@
"x": 12, "x": 12,
"y": 68 "y": 68
}, },
"hiddenSeries": false,
"id": 55, "id": 55,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2027,6 +2043,7 @@
"x": 0, "x": 0,
"y": 76 "y": 76
}, },
"hiddenSeries": false,
"id": 62, "id": 62,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2115,6 +2132,7 @@
"x": 12, "x": 12,
"y": 76 "y": 76
}, },
"hiddenSeries": false,
"id": 64, "id": 64,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2203,6 +2221,7 @@
"x": 0, "x": 0,
"y": 84 "y": 84
}, },
"hiddenSeries": false,
"id": 58, "id": 58,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2280,6 +2299,99 @@
"alignLevel": null "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, "collapsed": false,
"datasource": "${DS_PROMETHEUS}", "datasource": "${DS_PROMETHEUS}",
@ -2309,6 +2421,7 @@
"x": 0, "x": 0,
"y": 93 "y": 93
}, },
"hiddenSeries": false,
"id": 44, "id": 44,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2415,6 +2528,7 @@
"x": 12, "x": 12,
"y": 93 "y": 93
}, },
"hiddenSeries": false,
"id": 57, "id": 57,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2504,6 +2618,7 @@
"x": 0, "x": 0,
"y": 101 "y": 101
}, },
"hiddenSeries": false,
"id": 47, "id": 47,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2594,6 +2709,7 @@
"x": 12, "x": 12,
"y": 101 "y": 101
}, },
"hiddenSeries": false,
"id": 42, "id": 42,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2683,6 +2799,7 @@
"x": 0, "x": 0,
"y": 109 "y": 109
}, },
"hiddenSeries": false,
"id": 48, "id": 48,
"legend": { "legend": {
"avg": false, "avg": false,
@ -2761,7 +2878,7 @@
} }
], ],
"refresh": "30s", "refresh": "30s",
"schemaVersion": 20, "schemaVersion": 21,
"style": "dark", "style": "dark",
"tags": [], "tags": [],
"templating": { "templating": {
@ -2844,5 +2961,5 @@
"timezone": "", "timezone": "",
"title": "VictoriaMetrics", "title": "VictoriaMetrics",
"uid": "wNf0q_kZk", "uid": "wNf0q_kZk",
"version": 4 "version": 1
} }