Libvirt Metrics: $host is None in Grafana dashboard if exported values lack dns_name
Bug #1893998 reported by
Paul Goins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus libvirt exporter charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
On one cloud where prometheus-
libvirt_
There is no dns_name field.
As the host variable on this dashboard is defined as "label_
Changed in charm-prometheus-libvirt-exporter: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
This bug extends in impact into the overall dashboard, as a number of fields use expressions such as {dns_name= ~"$host" }. Especially when dns_name isn't available on these fields (and thus $host becomes ""), this generates data of limited use - basically everything gets lumped together.
Either we need to always ensure dns_name is present (e.g. stuffing an IP in if DNS names aren't available), or perhaps we need to split on some other identifier?