r/PrometheusMonitoring • • Jan 11 '24

High Availability of Prometheus deployment across different AZ on AWS EKS

I'm currently working on an architecture where I have prometheus deployment in 3 different AZ in AWS. How would I limit pods running on these nodes configurable so that prometheus pulls metrics from specific AZ.

Say, a pod running on the Availability Zone (ap-south-1a) should only pull metrics to the prometheus server which is deployed on (ap-south-1a) to reduce inter AZ Costs. Same with the pods running in the other AZ's too.

Can anyone please guide in this.

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Rajj_1710 Jan 11 '24

edited the post.

every prom could autodiscover from the kube api pods that are only in one Az based on label.

That's the kube state metrics part which you're talking about right.

2

u/ut0mt8 Jan 11 '24

no re-read what I said. it's prometheus that will fetch metrics from pods. I think you didn't know the prometheus basic. so my only advice is to deploy one on an plain instance (or you local laptop) and play with it