From b53cf5d083409a4d95ac7a86fa46ea5109122cab Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Sat, 5 Dec 2020 23:19:20 +0000 Subject: [PATCH] dashboard: Prometheus compatibility fix for `Storage full ETA` panel (#939) --- dashboards/victoriametrics.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards/victoriametrics.json b/dashboards/victoriametrics.json index 66ee7c23e..c8e9f5140 100644 --- a/dashboards/victoriametrics.json +++ b/dashboards/victoriametrics.json @@ -1410,7 +1410,7 @@ "steppedLine": false, "targets": [ { - "expr": "vm_free_disk_space_bytes{job=\"$job_storage\", instance=~\"$instance\"} / ignoring(path) ((rate(vm_rows_added_to_storage_total{job=\"$job_storage\", instance=~\"$instance\"}[1d]) - ignoring(type) rate(vm_deduplicated_samples_total{job=\"$job_storage\", instance=~\"$instance\", type=\"merge\"}[1d])) * (sum(vm_data_size_bytes{job=\"$job_storage\", instance=~\"$instance\", type!=\"indexdb\"}) / sum(vm_rows{job=\"$job_storage\", instance=~\"$instance\", type!=\"indexdb\"})))", + "expr": "vm_free_disk_space_bytes{job=\"$job_storage\", instance=~\"$instance\"} / ignoring(path) ((rate(vm_rows_added_to_storage_total{job=\"$job_storage\", instance=~\"$instance\"}[1d]) - ignoring(type) rate(vm_deduplicated_samples_total{job=\"$job_storage\", instance=~\"$instance\", type=\"merge\"}[1d])) * scalar(sum(vm_data_size_bytes{job=\"$job_storage\", instance=~\"$instance\", type!=\"indexdb\"}) / sum(vm_rows{job=\"$job_storage\", instance=~\"$instance\", type!=\"indexdb\"})))", "format": "time_series", "interval": "", "intervalFactor": 1,