dashboards: show max number of active merges instead of cumulative

The cumulative number of active merges could be red herring
as it its value depends on the number of vmstorages.
For example, vmstorage could be added or removed and this will affect
the panel.
Or, each vmstorage could start a merging process (i.e. for downsampling)
and visiually it could look like a massive change.

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-04-23 16:41:48 +02:00
parent 22cfab1ea2
commit 035de57e5e
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640
2 changed files with 4 additions and 4 deletions

View file

@ -5521,7 +5521,7 @@
"type": "prometheus",
"uid": "$ds"
},
"description": "The number of on-going merges in storage nodes. It is expected to have high numbers for `storage/small` metric.",
"description": "The max number of on-going merges across storage nodes.\n The drastic change in number of merges could be a sign of on-going deduplication/downsampling activity.\n It is expected to have high numbers for `storage/small` metric.",
"fieldConfig": {
"defaults": {
"color": {
@ -5610,7 +5610,7 @@
"uid": "$ds"
},
"editorMode": "code",
"expr": "sum(max_over_time(vm_active_merges{job=~\"$job_storage\", instance=~\"$instance\"}[$__rate_interval])) by(type)",
"expr": "max(max_over_time(vm_active_merges{job=~\"$job_storage\", instance=~\"$instance\"}[$__rate_interval])) by(type)",
"legendFormat": "__auto",
"range": true,
"refId": "A"

View file

@ -5522,7 +5522,7 @@
"type": "victoriametrics-datasource",
"uid": "$ds"
},
"description": "The number of on-going merges in storage nodes. It is expected to have high numbers for `storage/small` metric.",
"description": "The max number of on-going merges across storage nodes.\n The drastic change in number of merges could be a sign of on-going deduplication/downsampling activity.\n It is expected to have high numbers for `storage/small` metric.",
"fieldConfig": {
"defaults": {
"color": {
@ -5611,7 +5611,7 @@
"uid": "$ds"
},
"editorMode": "code",
"expr": "sum(max_over_time(vm_active_merges{job=~\"$job_storage\", instance=~\"$instance\"}[$__rate_interval])) by(type)",
"expr": "max(max_over_time(vm_active_merges{job=~\"$job_storage\", instance=~\"$instance\"}[$__rate_interval])) by(type)",
"legendFormat": "__auto",
"range": true,
"refId": "A"