Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(prometheus-prefect-exporter): Add additionalLabels for serviceMonitor #333

Merged
merged 4 commits into from
May 30, 2024

Conversation

hlac9x
Copy link
Contributor

@hlac9x hlac9x commented May 25, 2024

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.

@hlac9x hlac9x requested a review from a team as a code owner May 25, 2024 16:34
Copy link
Contributor

@mitchnielsen mitchnielsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution!

Just wondering if we should update these files so the new configuration is documented and validated:

@jamiezieziula - would you prefer these to be updated before merging this?

@jamiezieziula
Copy link
Contributor

@mitchnielsen good point!

@hlac9x can you install and run pre-commit locally? This should update the readme for you, but you'll need to manually adjust the values schema. Thanks!

@hlac9x
Copy link
Contributor Author

hlac9x commented May 30, 2024

@mitchnielsen @jamiezieziula . The README and validate file is updated pre request

@jamiezieziula jamiezieziula merged commit a52e2d0 into PrefectHQ:main May 30, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants