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

Support Prometheus Annotations on ClusterIP endpoints #129

Closed
alaqelsplk opened this issue Mar 28, 2019 · 6 comments
Closed

Support Prometheus Annotations on ClusterIP endpoints #129

alaqelsplk opened this issue Mar 28, 2019 · 6 comments
Labels
kind/feature Feature request

Comments

@alaqelsplk
Copy link

Our prometheus instance scrapes service endpoints for metrics (https://prometheus.io/docs/prometheus/latest/configuration/configuration/#endpoints) but Flagger doesn't allow us to set these annotations on the Canary and Primary ClusterIP services.

@stefanprodan stefanprodan added the kind/feature Feature request label Mar 29, 2019
@Nirrleybo
Copy link

Nirrleybo commented Jan 9, 2020

Hey,
Is there any status update about when to expect flagger support service annotations ?

@stefanprodan
Copy link
Member

@Nirrleybo is this about Prometheus annotations or annotations in general? Can't you use Prometheus annotations on pods like https://github.com/weaveworks/flagger/blob/master/kustomize/podinfo/deployment.yaml#L21

@Nirrleybo
Copy link

Nirrleybo commented Jan 9, 2020

Prometheus annotations.

Our current prometheus instance scrapes metric from the service based on the Service resource Prometheus annotations. Adding annotation to Deployment result in duplicate metrics for existing running services.... ( or am i doing something wrong ?)

Would it be possible for Flagger to copy the the annotations from my existing service resource when creating service-primary during canary deployment ?

@stefanprodan
Copy link
Member

Remove the annotation from the service and place it on the deployment, Flagger will copy the annotation to the primary deployment.

@Nirrleybo
Copy link

@stefanprodan ok, thank you for the quick reply

@stefanprodan
Copy link
Member

Fixed by #538

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

No branches or pull requests

3 participants