how prometheus operator configs with the ability of k8s service discovery #599
Replies: 3 comments 3 replies
-
Yes, it's true. Annotations are simply ignored by the Prometheus Operator. The annotations are a bit limited (a Prometheus can only scrape one port per Pod, for example) and the Prometheus Operator introduces for that exact reason the ServiceMonitor object to allow for more fine-grained control. |
Beta Was this translation helpful? Give feedback.
-
@metalmatze thanks a lot. But In this case, is it necessary to manually add serviceMonitor every time I add a type of service monitoring?Prometheus operator how to automatically discover k8s service |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. Istio 1.6 can add annotations for metrics merging https://istio.io/latest/docs/ops/integrations/prometheus/ I see custom config can be added to prometheus operator to achieve this #16 (comment) Although this is quite an old issue. How would I do this now? |
Beta Was this translation helpful? Give feedback.
-
I want to know wether it is ture。
Become sometime Prometheus scrape nothing with the annotaion configuring in the service。
Beta Was this translation helpful? Give feedback.
All reactions