Add Labels limit exceeded panel to dashboard (#1072)

New panel supposed to display events when VM drops extra label
on exceeding `maxLabelsPerTimeseries` limit.
This commit is contained in:
Roman Khavronenko 2021-02-16 21:38:20 +00:00 committed by GitHub
parent bea2f86b7b
commit 9ca7d76b25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@
"gnetId": 10229,
"graphTooltip": 0,
"id": null,
"iteration": 1603307754894,
"iteration": 1613320710757,
"links": [
{
"icon": "doc",
@ -1135,7 +1135,7 @@
}
},
{
"collapsed": true,
"collapsed": false,
"datasource": "$ds",
"gridPos": {
"h": 1,
@ -1144,7 +1144,10 @@
"y": 35
},
"id": 14,
"panels": [
"panels": [],
"title": "Storage",
"type": "row"
},
{
"aliasColors": {},
"bars": false,
@ -1165,7 +1168,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 3
"y": 36
},
"hiddenSeries": false,
"id": 10,
@ -1265,7 +1268,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 3
"y": 36
},
"hiddenSeries": false,
"id": 73,
@ -1366,7 +1369,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 11
"y": 44
},
"hiddenSeries": false,
"id": 30,
@ -1477,7 +1480,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 11
"y": 44
},
"hiddenSeries": false,
"id": 34,
@ -1588,7 +1591,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 19
"y": 52
},
"hiddenSeries": false,
"id": 53,
@ -1695,7 +1698,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 19
"y": 52
},
"hiddenSeries": false,
"id": 36,
@ -1791,7 +1794,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 27
"y": 60
},
"hiddenSeries": false,
"id": 62,
@ -1885,7 +1888,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 27
"y": 60
},
"hiddenSeries": false,
"id": 55,
@ -1980,7 +1983,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 35
"y": 68
},
"hiddenSeries": false,
"id": 58,
@ -2078,7 +2081,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 35
"y": 68
},
"hiddenSeries": false,
"id": 64,
@ -2172,7 +2175,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 43
"y": 76
},
"hiddenSeries": false,
"id": 67,
@ -2249,10 +2252,6 @@
"align": false,
"alignLevel": null
}
}
],
"title": "Storage",
"type": "row"
},
{
"collapsed": true,
@ -2261,7 +2260,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 36
"y": 84
},
"id": 71,
"panels": [
@ -2274,7 +2273,8 @@
"description": "Shows how many of new time-series are created every second. High churn rate tightly connected with database performance and may result in unexpected OOM's or slow queries. It is recommended to always keep an eye on this metric to avoid unexpected cardinality \"explosions\".\n\nGood references to read:\n* https://www.robustperception.io/cardinality-is-key\n* https://www.robustperception.io/using-tsdb-analyze-to-investigate-churn-and-cardinality",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -2284,7 +2284,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 4
"y": 85
},
"hiddenSeries": false,
"id": 66,
@ -2300,10 +2300,8 @@
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "7.1.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -2368,7 +2366,8 @@
"description": "Slow queries rate according to `search.logSlowQueryDuration` flag, which is `5s` by default.",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -2378,7 +2377,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 4
"y": 85
},
"hiddenSeries": false,
"id": 60,
@ -2395,10 +2394,8 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "7.1.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -2467,17 +2464,18 @@
"description": "The percentage of slow inserts comparing to total insertion rate during the last 5 minutes. \n\nThe less value is better. If percentage remains high (>50%) during extended periods of time, then it is likely more RAM is needed for optimal handling of the current number of active time series. \n\nIn general, VictoriaMetrics requires ~1KB or RAM per active time series, so it should be easy calculating the required amounts of RAM for the current workload according to capacity planning docs. But the resulting number may be far from the real number because the required amounts of memory depends on may other factors such as the number of labels per time series and the length of label values.",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 24,
"h": 9,
"w": 12,
"x": 0,
"y": 12
"y": 93
},
"hiddenSeries": false,
"id": 68,
@ -2494,10 +2492,8 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "7.1.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -2557,6 +2553,105 @@
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$ds",
"description": "VictoriaMetrics limits the number of labels per each metric with `-maxLabelsPerTimeseries` command-line flag.\n\nThis prevents from ingesting metrics with too many labels. The value of `maxLabelsPerTimeseries` must be adjusted for your workload.\n\nWhen limit is exceeded (graph is > 0) - extra labels are dropped, which could result in unexpected identical time series.",
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 93
},
"hiddenSeries": false,
"id": 74,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(vm_metrics_with_dropped_labels_total{job=\"$job\", instance=\"$instance\"}[5m]))",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Labels limit exceeded ($instance)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 2,
"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
}
}
],
"title": "Troubleshooting",
@ -2569,7 +2664,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 37
"y": 85
},
"id": 46,
"panels": [
@ -2593,7 +2688,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 78
"y": 102
},
"hiddenSeries": false,
"id": 44,
@ -2705,7 +2800,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 78
"y": 102
},
"hiddenSeries": false,
"id": 57,
@ -2801,7 +2896,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 86
"y": 110
},
"hiddenSeries": false,
"id": 47,
@ -2897,7 +2992,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 86
"y": 110
},
"hiddenSeries": false,
"id": 42,
@ -2992,7 +3087,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 94
"y": 118
},
"hiddenSeries": false,
"id": 48,
@ -3089,7 +3184,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 94
"y": 118
},
"hiddenSeries": false,
"id": 37,
@ -3187,7 +3282,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 102
"y": 126
},
"hiddenSeries": false,
"id": 49,