After relating grafana agent to a principal charm like charm microk8s or kubernetes which both have a cos agent interface, I see that the alert rules that finally show up in prometheus have their juju application label set to the grafana agent application rather than the principal application.
This ^ is with a latest version in latest/edge revision 64. Revision 28 seems to work so this seems like a possible regression?
There are some alerts that are host type alerts which appropriate have the juju application label set with grafana agent so this example above should not be confused with that.
Bug Description
After relating grafana agent to a principal charm like charm microk8s or kubernetes which both have a cos agent interface, I see that the alert rules that finally show up in prometheus have their juju application label set to the grafana agent application rather than the principal application.
This ^ is with a latest version in
latest/edge
revision 64. Revision 28 seems to work so this seems like a possible regression?There are some alerts that are host type alerts which appropriate have the juju application label set with grafana agent so this example above should not be confused with that.
To Reproduce
then check alert rules in prometheus
Environment
juju 3.3.3 grafana-agent latest/edge 64
Relevant log output
Additional context
No response