chore(prometheus-prefect-exporter): Add additionalLabels for serviceMonitor #333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context:
This PR aims to enhance the ServiceMonitor configuration for the prometheus-prefect-exporter by introducing the ability to add custom labels through the additionalLabels field. This change is crucial for ensuring that the ServiceMonitor can be properly managed and identified by Prometheus, particularly in environments where specific labeling is required for integration or management purposes.
Key Changes:
Introduction of
additionalLabels
: The updated ServiceMonitor configuration now includes an option to add custom labels specified by.Values.serviceMonitor.additionalLabels
. This allows users to define additional labels in their Helm values, which will be incorporated into the ServiceMonitor metadata.Issue Addressed:
The previous configuration did not support the addition of custom labels, which limited the ability to manage the ServiceMonitor effectively within Prometheus environments that require specific labeling conventions. This update resolves that issue by providing the necessary flexibility for label customization.
This change ensures that users can now easily add the necessary custom labels to their ServiceMonitor, facilitating better integration and management with Prometheus.