canonical / grafana-agent-operator

This charmed operator automates the operational procedures of running Grafana Agent, an open-soruce telemetry collector.
https://charmhub.io/grafana-agent
Apache License 2.0
4 stars 8 forks source link

Principal charm labels missing from logs #130

Open cbartz opened 3 weeks ago

cbartz commented 3 weeks ago

Enhancement Proposal

We are using the grafana-agent (rev 108 & 166) with the github-runner-operator. For troubleshooting it would be useful if we could filter the logs by the application name of the principal charm. Currently juju_application and juju_unit always refer to the grafana-agent.

This means that to troubleshoot a particular unit, we always have to remap the principal unit name to the grafana-agent unit name.

I think this worked before https://github.com/canonical/grafana-agent-operator/pull/47 landed.

image image image