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.
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
Chart.yaml
according to semver. This is not necessary when the changes only affect README.md files.README.md
using readme-generator-for-helm