Closed Abuelodelanada closed 2 months ago
Since we have learn something that was not documented in Grafana docs, which is that grafana-agent
is not able to forward structured_metadata
coming from promtail
(or another grafana-agent
) to loki
promtail --> grafana-agent --> loki
We are closing this PR because the pipeline is not reliable. An administrator may wrongly think that because promtail
sends structured_metadata
it will reach loki
when it is not always true.
Issue
This PR goes in tandem with https://github.com/canonical/grafana-agent-operator/pull/180
Solution
We add
pipeline_stages
topromtail
configuration in order to removefilename
label an add it asstructured_metadata
Testing Instructions
Deploy this bundle (update lib in
flog
and packloki
)Check in Grafana that
filename
is not a regular label but part ofstructured_metadata