add panels for Active time series, Disk space usage (datapoints) and Disk space usage (index) (#87)

This commit is contained in:
Roman Khavronenko 2019-07-04 20:15:24 +01:00 committed by Aliaksandr Valialkin
parent 0c629429de
commit c27c6de297

View file

@ -65,7 +65,7 @@
"gnetId": 10229, "gnetId": 10229,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": null,
"iteration": 1559857416920, "iteration": 1562261153865,
"links": [ "links": [
{ {
"icon": "doc", "icon": "doc",
@ -668,7 +668,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": "${DS_PROMETHEUS}", "datasource": "${DS_PROMETHEUS}",
"description": "* `*` - unsupported query path\n* `/write` - insert into VM\n* `/metrics` - query VM system metrics\n* `/query` - query instant values\n* `/query_range` - query over a range of time\n* `/series` - match a certain label set\n* `/label/{}/values` - query a list of label values (variables mostly)", "description": "Shows the number of active time series with new data points inserted during the last hour. High value may result in ingestion slowdown. \n\nSee following link for details:",
"fill": 1, "fill": 1,
"gridPos": { "gridPos": {
"h": 8, "h": 8,
@ -676,23 +676,27 @@
"x": 0, "x": 0,
"y": 19 "y": 19
}, },
"id": 35, "id": 51,
"legend": { "legend": {
"alignAsTable": true, "avg": false,
"avg": true, "current": false,
"current": true,
"max": false, "max": false,
"min": false, "min": false,
"show": true, "show": true,
"sort": "current",
"sortDesc": true,
"total": false, "total": false,
"values": true "values": false
}, },
"lines": true, "lines": true,
"linewidth": 1, "linewidth": 1,
"links": [], "links": [
"nullPointMode": "null as zero", {
"targetBlank": true,
"title": "troubleshooting",
"type": "absolute",
"url": "https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/README.md#troubleshooting"
}
],
"nullPointMode": "null",
"options": {}, "options": {},
"percentage": false, "percentage": false,
"pointradius": 2, "pointradius": 2,
@ -704,10 +708,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(rate(vm_http_request_errors_total{job=\"$job\"}[$__interval])) by (path) > 0", "expr": "vm_cache_entries{job=\"$job\", type=\"storage/hour_metric_ids\"}",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{path}}", "legendFormat": "Active time series",
"refId": "A" "refId": "A"
} }
], ],
@ -715,10 +719,10 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Requests error rate", "title": "Active time series",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 2, "sort": 0,
"value_type": "individual" "value_type": "individual"
}, },
"type": "graph", "type": "graph",
@ -859,7 +863,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": "${DS_PROMETHEUS}", "datasource": "${DS_PROMETHEUS}",
"description": "", "description": "* `*` - unsupported query path\n* `/write` - insert into VM\n* `/metrics` - query VM system metrics\n* `/query` - query instant values\n* `/query_range` - query over a range of time\n* `/series` - match a certain label set\n* `/label/{}/values` - query a list of label values (variables mostly)",
"fill": 1, "fill": 1,
"gridPos": { "gridPos": {
"h": 8, "h": 8,
@ -867,20 +871,23 @@
"x": 0, "x": 0,
"y": 27 "y": 27
}, },
"id": 37, "id": 35,
"legend": { "legend": {
"avg": false, "alignAsTable": true,
"current": false, "avg": true,
"current": true,
"max": false, "max": false,
"min": false, "min": false,
"show": false, "show": true,
"sort": "current",
"sortDesc": true,
"total": false, "total": false,
"values": false "values": true
}, },
"lines": true, "lines": true,
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "nullPointMode": "null as zero",
"options": {}, "options": {},
"percentage": false, "percentage": false,
"pointradius": 2, "pointradius": 2,
@ -892,11 +899,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(vm_tcplistener_conns{job=\"$job\"})", "expr": "sum(rate(vm_http_request_errors_total{job=\"$job\"}[$__interval])) by (path) > 0",
"format": "time_series", "format": "time_series",
"hide": false,
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "connections", "legendFormat": "{{path}}",
"refId": "A" "refId": "A"
} }
], ],
@ -904,10 +910,10 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "TCP connections", "title": "Requests error rate",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 2,
"value_type": "individual" "value_type": "individual"
}, },
"type": "graph", "type": "graph",
@ -920,7 +926,6 @@
}, },
"yaxes": [ "yaxes": [
{ {
"decimals": null,
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -1031,13 +1036,102 @@
"alignLevel": null "alignLevel": null
} }
}, },
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"description": "",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 35
},
"id": 37,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(vm_tcplistener_conns{job=\"$job\"})",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "connections",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "TCP connections",
"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,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 35 "y": 43
}, },
"id": 14, "id": 14,
"panels": [], "panels": [],
@ -1056,7 +1150,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 36 "y": 44
}, },
"id": 10, "id": 10,
"legend": { "legend": {
@ -1152,7 +1246,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 36 "y": 44
}, },
"id": 34, "id": 34,
"legend": { "legend": {
@ -1254,7 +1348,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 44 "y": 52
}, },
"id": 30, "id": 30,
"legend": { "legend": {
@ -1341,7 +1435,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 44 "y": 52
}, },
"id": 36, "id": 36,
"legend": { "legend": {
@ -1416,13 +1510,186 @@
"alignLevel": null "alignLevel": null
} }
}, },
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"description": "Shows amount of on-disk space occupied by data points.",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 60
},
"id": 53,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(vm_data_size_bytes{job=\"$job\", type!=\"indexdb\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Size",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Disk space usage (datapoints)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"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
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"description": "Shows amount of on-disk space occupied by inverted index.",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 60
},
"id": 55,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "vm_data_size_bytes{job=\"$job\", type=\"indexdb\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Disk space usage (index)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"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,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 52 "y": 68
}, },
"id": 46, "id": 46,
"panels": [], "panels": [],
@ -1441,7 +1708,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 53 "y": 69
}, },
"id": 44, "id": 44,
"legend": { "legend": {
@ -1544,7 +1811,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 53 "y": 69
}, },
"id": 42, "id": 42,
"legend": { "legend": {
@ -1630,7 +1897,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 61 "y": 77
}, },
"id": 47, "id": 47,
"legend": { "legend": {
@ -1717,7 +1984,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 61 "y": 77
}, },
"id": 48, "id": 48,
"legend": { "legend": {