Closed nishant-dash closed 2 months ago
I believe this is the intended behavior. A VM can be shared by multiple principles: in that case, Grafana Agent wouldn't know which principal to use in the labels.
I think that at the time we weren't supporting multiple principles, and thus we made a different choice for the labels, but it's hard to tell!
Closing this, but please feel free to reopen if you have anything to add!
Hey @lucabello from a usability perspective this is quite difficult because if I need to look at metrics for, lets say, nova-compute/10
, then I need to do the dance to find the corresponding grafana agent unit id and look at that instead
Is it not possible to inject the principal charm topology when there is only 1 principal and inject grafana topology otherwise?
Bug Description
using rev 134 of grafana-agent I can see metrics from node exporter where the
juju_unit
label is the grafana agent unit and not the principalhowever an older rev
28
does this correctlyI have not thoroughly tested this, so I can not say for sure if its a regression or a race condition.
To Reproduce
N/A
Environment
N/A
Relevant log output
Additional context
No response