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
This commit is contained in:
Chi Wai Chan 2024-08-08 16:58:33 +08:00 committed by Chi Wai CHAN
parent 2934d6bd38
commit aa45aba32a

View File

@ -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",