This charm overwrites existing topology labels with its own topology labels. This happens because:
This charm doesn't have cos-tool, so injection of label matchers is skipped.
This charm has an outdated labeling logic: here, all alert labels are being replaced by this charm's labels, whereas in cos-lib only missing labels are added.
This charm has two different use cases for rules that are currently not captured well:
Like most charms, this charm has built-in rules and dashboards that need to be enriched with the charm's topology labels.
Issue
This charm overwrites existing topology labels with its own topology labels. This happens because:
Solution
Fixes #275.
Context
This PR goes in tandem with:
Testing Instructions
See https://github.com/canonical/loki-k8s-operator/pull/353.
Upgrade Notes
No change further action beyond
juju refresh
is needed – labels should be corrected after an upgrade.