Promtail - how to keep all container labels?

Hello,

I have deployed Loki and Promtail with the “official” Grafana Helm Charts. I am wondering that in the default scrape configuration of Promtail only certain container labels are allowed through (pod, container, namespace, node_name). How can I keep all labels from the containers? What would I need to configure in Promtail to do this without manually configuring each label (I don’t know all the labels up front)?

Was answered here: Promtail: How to keep all pod labels? · Issue #3519 · grafana/loki · GitHub

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