How to enter Kubernetes __meta_kubernetes_pod_label_ into log stream

How can I configure promtail to scrape the kubernetes meta labels from _meta_kubernetes_pod_label* and include them in the original log stream before sending to Loki

Below is a sample of how to the log should look like. A Kubernetes JSON object which contains all the pods labels etc.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.