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

[alertmanager] Add ServiceMonitor support to Prometheus Alertmanager Helm Chart #5034

Open
sajad-sadra opened this issue Dec 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sajad-sadra
Copy link

Is your feature request related to a problem ?

Yes, the feature request is related to the challenge of integrating Alertmanager metrics scraping with Prometheus when using Prometheus-Operator. Currently, users must manually create a ServiceMonitor resource to scrape metrics from the Alertmanager instance. This extra step adds complexity and can be error-prone, especially for users unfamiliar with ServiceMonitor configurations.

Describe the solution you'd like.

I propose adding a ServiceMonitor resource to the Prometheus Alertmanager Helm chart. This resource would be conditionally created based on a configurable value (serviceMonitor.enabled). Users should also be able to customize its behavior through additional Helm chart values such as serviceMonitor.interval.

Describe alternatives you've considered.

  1. Manually Creating ServiceMonitor:
    Users can create their own ServiceMonitor resource outside of the Helm chart. However, this adds complexity and goes against the goal of providing an all-in-one deployment solution.

  2. Using Annotations for Metrics Scraping:
    Some Prometheus setups scrape metrics directly from service endpoints using annotations. While this works, it lacks the advanced features and flexibility provided by ServiceMonitor, such as relabeling and namespace isolation.

Additional context.

No response

@sajad-sadra sajad-sadra added the enhancement New feature or request label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant