bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
9.04k stars 9.22k forks source link

[bitnami/mongodb] feat: allow setting `targetLabel` and `podTargetLabels` array on ServiceMonitor #30531

Open umarhussain15 opened 2 days ago

umarhussain15 commented 2 days ago

Description of the change

This update to MongoDB chart will allow users to set targetLabels and podTargetLabels arrays on ServiceMonitor resource in the chart. By default, the arrays are set empty and there is a check in the ServiceMonitor file to only put these array if they are set and array is not empty.

Spec ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec

Benefits

Allows users to further enrich Prometheus metrics with new labels when they are scraped by the server.

Possible drawbacks

None

Applicable issues

None

Additional information

Checklist