From aa45aba32aef958cbf2aeddb73bc6ac6ed439cca Mon Sep 17 00:00:00 2001 From: Chi Wai Chan Date: Thu, 8 Aug 2024 16:58:33 +0800 Subject: [PATCH] Removed `aggregates` label matcher and fix typo in sum by. The `aggregate` in the sum by is a typo, and it should be `aggregates`. Also, with the `aggregates=~".+"` will show "No data" if there's no such label (this can happen when there is no aggregates in nova). Removing `aggregates=~".+"` will show the groups even if there is no aggregate (in this case it will be all running VMs) Change-Id: I35f0ce74f79c81b2bb888483f7f94f719072c171 --- charms/openstack-exporter-k8s/src/grafana_dashboards/cloud.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charms/openstack-exporter-k8s/src/grafana_dashboards/cloud.json b/charms/openstack-exporter-k8s/src/grafana_dashboards/cloud.json index 93394c0b..70cfe001 100644 --- a/charms/openstack-exporter-k8s/src/grafana_dashboards/cloud.json +++ b/charms/openstack-exporter-k8s/src/grafana_dashboards/cloud.json @@ -1158,7 +1158,7 @@ "datasource": { "uid": "${prometheusds}" }, - "expr": "sum by(aggregate) (openstack_nova_running_vms{aggregates=~\".+\"})", + "expr": "sum by(aggregates) (openstack_nova_running_vms)", "intervalFactor": 2, "legendFormat": "{{aggregate}}", "refId": "A",