Closed sed-i closed 1 year ago
LokiPushApiConsumer
should add topology labels, so it behaves the same as PrometheusRemoteWrite, or we'll cause problems with the subordinate Grafana Agent (which will never be able to have principal charms contribute rules which have the correct labels, which are further used by Loki to modify the expressions themselves).
Instead, cos-config
needs a workaround/arg for this, similar to the way it has one for Grafana Dashboards.
Bug Description
The charm currently uses
LokiPushApiConsumer
to forward rule files to loki, but that class currently auto adds topology labels to the alerts.https://github.com/canonical/cos-configuration-k8s-operator/blob/a0902afca80ee2ea6b54abd086d52198df39c5f5/src/charm.py#L137-L142
To Reproduce
Environment
Relevant log output
Additional context
No response