-
Notifications
You must be signed in to change notification settings - Fork 744
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
Comments
Hey, |
@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 |
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 ? |
Remove the annotation from the service and place it on the deployment, Flagger will copy the annotation to the primary deployment. |
@stefanprodan ok, thank you for the quick reply |
Fixed by #538 |
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.
The text was updated successfully, but these errors were encountered: