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

Service Monitor #3694

Open
rjop-hccgt opened this issue May 13, 2024 · 6 comments
Open

Service Monitor #3694

rjop-hccgt opened this issue May 13, 2024 · 6 comments
Assignees

Comments

@rjop-hccgt
Copy link

Describe the bug
I believe there is an issue with the Helm chart, particularly in this line (https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/helm/aws-load-balancer-controller/templates/deployment.yaml#L30). I think the logic should be inverted and the prometheus labels should be added only when the .Values.serviceMonitor.enabled flag is set to true

Steps to reproduce

  1. In the values.yaml set the serviceMonitor.enabled to true.
  2. Run helm template ./ --values values.yaml | kubectl apply -f -

Expected outcome
The AWS Load Balancer controller deployment shouldn't have the prometheus annotations enabled.

Environment

  • AWS Load Balancer controller version: v2.7.2
  • Kubernetes version: 1.29
  • Using EKS (yes/no), if so version? yes, eks.6

Additional Context:

@omerap12
Copy link
Contributor

Yes, I'll take this

@omerap12
Copy link
Contributor

/assign

@omerap12
Copy link
Contributor

ping @rjop-hccgt

@rjop-hccgt
Copy link
Author

thanks @omerap12

@oliviassss
Copy link
Collaborator

@rjop-hccgt, @omerap12, I think this is on purpose to avoid double scraping by prometheus, see: #2601

@omerap12
Copy link
Contributor

Hey @oliviassss ,
I checked, and you're right—it’s done on purpose. But, with our current approach, we're forcing the use of Prometheus, either by using ServiceMonitor or annotations on deployments. Should we really be enforcing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants