How to get a job label based on Namespace and Pod Label when using loki.source.kubernetes? #3362
Replies: 1 comment
-
I made an error in the configuration, as you have probably seen. It should be:
Closing this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I use Grafana Agent Flow with the Grafana Agent Helm Chart.
I am currently scraping the Pod Logs with the loki.source.kubernetes component.
The component adds an instance Label with the Format [Namespace]/[PodName]:[ContainerName] and a job label with "loki.source.kubernetes.pods".
I tried to create a temporary label with discovery.relabel and another relabeling step to replace the job Label at the end.
Another try was just copying the value of instance into job. Neither option worked for me
What do I do wrong? Do I currently have to use loki.source.file instead?
Chart-Version is 0.10.0.
App-Version is v0.32.1.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions