Open sed-i opened 5 months ago
Thanks for opening this @sed-i I wasn't sure if it was a bug or a misconfiguration on my side :)
this happened because in the pebble log forwarder never added the 'job' and 'instance' labels. --> @barrettj12
hopefully it will be fixed and the fix backported to the pebbles in juju 3.4 and up
Just realized that our lib should probably be the one creating it, just like we do all other labels:
Personally I supported adding job
and instance
labels by default to Pebble, but I know there was some opposition to this and we ultimately decided against it.
Is it possible for the charm just to manually set these labels in the Pebble plan?
Bug Description
When using LogForwarder, it is incorrect to replace the topology stub with a
job
matcher.Following up on #332, we can no longer assume that the
job
label would always be there, because pebble does not create it. https://github.com/canonical/loki-k8s-operator/blob/0f6b87015c151f3f716a4ad54e0a3b1334f82b2f/lib/charms/loki_k8s/v0/loki_push_api.py#L768-L771Originally reported by @saltiyazan.
Related:
To Reproduce
NTA
Environment
NTA
Relevant log output
Additional context
No response