kiwigrid / helm-charts

Helm charts for Kubernetes curated by Kiwigrid
https://kiwigrid.github.io
MIT License
186 stars 209 forks source link

fluentd-elasticsearch: Support adding relabelings to ServiceMonitor #271

Closed robinkb closed 4 years ago

robinkb commented 4 years ago

Signed-off-by: Robin Ketelbuters robin.ketelbuters@gmail.be

What this PR does / why we need it:

This PR adds support for filling in the relabelings and metricRelabelings fields in the ServiceMonitor definition for fluentd-elasticsearch. For my specific use-case, I want to add labels to the fluentd_tail_file_position metric by extracting the information from the path label.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

robinkb commented 4 years ago

Sorry, I was about to do so after opening the PR, but I got distracted. They've been added now.