Prometheus scrape source with headless service as endpoint #22065
Unanswered
adelmoradian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to use vector prometheus scrape source to scrape metrics from various endpoints in my kubernetes clusters. It works pretty well for kubelet and api server metrics and single pods that are behind a service. But what if I have multiple replicas of a pod? If I scrape the service of type ClusterIP I think vector will miss metrics as the service will probably do something like round-robin... What if my endpoint is a headless service? Would vector in that case scrape all the pods that are behind the headless service? My end goal is to use vector instead of prometheus to scrape metrics from multiple kubernetes clusters and ship all metrics to a centralized prometheus.
Beta Was this translation helpful? Give feedback.
All reactions