Dashboard upd (#4438)

dashboards: update dashboard for single-node version
* add anonymous mem usage panel;
* add syscall rate panel;
* add location to logs panel;
* update legend for panels to reflect instance name;
* update queries to aggregate per instance.

dashboards: update dashboard for cluster version
* add syscall rate panel;
* add drilldown to logs panel.



Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2023-06-12 15:58:47 +02:00 committed by GitHub
parent 36bc1bb8ff
commit ccaa9571ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 992 additions and 479 deletions

View file

@ -6,7 +6,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.2.6"
"version": "9.2.7"
},
{
"type": "datasource",
@ -196,7 +196,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -265,7 +265,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -336,7 +336,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -406,7 +406,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -476,7 +476,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -546,7 +546,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -616,7 +616,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -685,7 +685,7 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -787,7 +787,7 @@
}
]
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"targets": [
{
"datasource": {
@ -1501,7 +1501,13 @@
"mode": "off"
}
},
"links": [],
"links": [
{
"targetBlank": true,
"title": "Drilldown",
"url": "/d/oS7Bi_0Wz?viewPanel=203&var-job=${__field.labels.job}&var-ds=$ds&var-instance=$instance&${__url_time_range}"
}
],
"mappings": [],
"min": 0,
"thresholds": {
@ -1637,7 +1643,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1653,7 +1660,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 30
"y": 38
},
"id": 66,
"links": [],
@ -1748,7 +1755,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1764,7 +1772,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 30
"y": 38
},
"id": 138,
"links": [],
@ -1858,7 +1866,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1874,7 +1883,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 38
"y": 46
},
"id": 64,
"links": [],
@ -1964,7 +1973,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1993,7 +2003,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 38
"y": 46
},
"id": 122,
"links": [],
@ -2101,7 +2111,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -2133,7 +2144,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 46
"y": 54
},
"id": 117,
"links": [],
@ -2181,6 +2192,7 @@
"type": "prometheus",
"uid": "$ds"
},
"description": "Shows the number of read/write syscalls such as read, pread, write, pwrite.",
"fieldConfig": {
"defaults": {
"color": {
@ -2216,12 +2228,14 @@
"mode": "off"
}
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -2231,15 +2245,29 @@
},
"unit": "short"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/read .*/"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 46
"y": 54
},
"id": 119,
"id": 204,
"links": [],
"options": {
"legend": {
"calcs": [
@ -2267,14 +2295,32 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(max_over_time(vm_tcplistener_conns{job=~\"$job\", instance=~\"$instance\"}[$__interval])) by(job)",
"expr": "sum(rate(process_io_read_syscalls_total{job=~\"$job\", instance=~\"$instance\"}[$__rate_interval])) by(job) > 0",
"format": "time_series",
"hide": false,
"interval": "",
"legendFormat": "{{job}}",
"intervalFactor": 1,
"legendFormat": "read {{job}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "$ds"
},
"editorMode": "code",
"expr": "sum(rate(process_io_write_syscalls_total{job=~\"$job\", instance=~\"$instance\"}[$__rate_interval])) by(job) > 0",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "write {{job}}",
"range": true,
"refId": "B"
}
],
"title": "TCP connections ($instance)",
"title": "Disk write/read calls ($instance)",
"type": "timeseries"
},
{
@ -2325,7 +2371,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -2341,7 +2388,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 54
"y": 62
},
"id": 68,
"links": [],
@ -2429,7 +2476,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -2445,9 +2493,9 @@
"h": 8,
"w": 12,
"x": 12,
"y": 54
"y": 62
},
"id": 120,
"id": 119,
"options": {
"legend": {
"calcs": [
@ -2475,14 +2523,14 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(vm_tcplistener_accepts_total{job=~\"$job\", instance=~\"$instance\"}[$__rate_interval])) by(job)",
"expr": "sum(max_over_time(vm_tcplistener_conns{job=~\"$job\", instance=~\"$instance\"}[$__interval])) by(job)",
"interval": "",
"legendFormat": "__auto",
"legendFormat": "{{job}}",
"range": true,
"refId": "A"
}
],
"title": "TCP connections rate ($instance)",
"title": "TCP connections ($instance)",
"type": "timeseries"
},
{
@ -2533,7 +2581,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -2549,7 +2598,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 62
"y": 70
},
"id": 70,
"links": [],
@ -2591,6 +2640,108 @@
],
"title": "Threads ($instance)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "$ds"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 70
},
"id": 120,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.1.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "$ds"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(vm_tcplistener_accepts_total{job=~\"$job\", instance=~\"$instance\"}[$__rate_interval])) by(job)",
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "TCP connections rate ($instance)",
"type": "timeseries"
}
],
"title": "Resource usage ($job)",
@ -4350,8 +4501,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -4462,8 +4612,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -4575,8 +4724,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -4721,8 +4869,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -4859,8 +5006,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -4963,8 +5109,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -5106,8 +5251,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -5210,8 +5354,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -5319,8 +5462,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -5453,8 +5595,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -5566,8 +5707,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
@ -5682,8 +5822,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -5818,8 +5957,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -7980,7 +8118,7 @@
"h": 2,
"w": 24,
"x": 0,
"y": 9
"y": 84
},
"id": 198,
"options": {
@ -7992,7 +8130,7 @@
"content": "Drilldown row is used by other panels on the dashboard to show more detailed metrics per-instance.",
"mode": "markdown"
},
"pluginVersion": "9.2.6",
"pluginVersion": "9.2.7",
"transparent": true,
"type": "text"
},
@ -8057,7 +8195,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 11
"y": 86
},
"id": 189,
"links": [],
@ -8159,7 +8297,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 11
"y": 86
},
"id": 190,
"links": [],
@ -8261,7 +8399,7 @@
"h": 7,
"w": 12,
"x": 0,
"y": 19
"y": 94
},
"id": 192,
"links": [],
@ -8369,7 +8507,7 @@
"h": 7,
"w": 12,
"x": 12,
"y": 19
"y": 94
},
"id": 196,
"links": [],
@ -8472,7 +8610,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 26
"y": 101
},
"id": 200,
"links": [],
@ -8574,7 +8712,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 26
"y": 101
},
"id": 201,
"links": [],
@ -8628,6 +8766,115 @@
],
"title": "Disk space usage by type ($instance)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "$ds"
},
"description": "Shows the rate of logging the messages by their level. Unexpected spike in rate is a good reason to check logs.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 109
},
"id": 203,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.1.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "$ds"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(vm_log_messages_total{job=~\"$job\",instance=~\"$instance\", level!=\"info\"}[$__rate_interval])) by (job, instance, level, location) > 0",
"format": "time_series",
"hide": false,
"interval": "5m",
"intervalFactor": 1,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Logging rate",
"type": "timeseries"
}
],
"title": "Drilldown",

File diff suppressed because it is too large Load diff

View file

@ -29,6 +29,7 @@ The following tip changes can be tested by building VictoriaMetrics components f
* FEATURE: [vmagent](https://docs.victoriametrics.com/vmagent.html): Adds `enable_http2` on scrape configuration level. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4283). Thanks to @Haleygo for [the pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4295).
* FEATURE: [vmctl](https://docs.victoriametrics.com/vmctl.html): add verbose output for docker installations or when TTY isn't available. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4081).
* FEATURE: vmstorage: suppress "broken pipe" errors for search queries on vmstorage side. See [this commit](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4418/commits/a6a7795b9e1f210d614a2c5f9a3016b97ded4792).
* FEATURE: [Official Grafana dashboards for VictoriaMetrics](https://grafana.com/orgs/victoriametrics): add panel for tracking rate of syscalls while writing or reading from disk via `process_io_(read|write)_syscalls_total` metrics.
* BUGFIX: add the following command-line flags, which can be used for limiting Graphite API calls:
`--search.maxGraphiteTagKeys` for limiting the number of tag keys returned from Graphite `/tags`, `/tags/autoComplete/*`, `/tags/findSeries` API.