agent icon indicating copy to clipboard operation
agent copied to clipboard

PodLogs: support static_labels stage

Open rfratto opened this issue 2 years ago • 1 comments

The PodLogs CRD is missing support for Promtail's static_labels stage.

rfratto avatar Jan 11 '23 23:01 rfratto

I think that for now, a workaround would be to use a template stage to prepopulate the keys in the shared extracted map and then use a labels stage to set them on the log entry.

- template:
    source: myenv
    template: 'dev'
- labels:
    env: myenv

tpaschalis avatar Feb 28 '23 12:02 tpaschalis