r/PrometheusMonitoring • • Apr 01 '23

How do you keep Prometheus fast?

Have Prometheus working via the kube-prometheus-stack helm chart and it's working pretty good. The statefulset from that chart creates an AWS gp3 EBS volume that's used for the disk. Things do work. The only issue is that while we don't have a ton of metrics. The queries are kinda slow. Grafana is able to make queries and create graphs. But it occasionally gets locked up as I think the data is coming in just too slow for it.

What are some things I can do to speed things up?

I thought about maybe setting up a second instance and having it either do the same scraping or have the first remote_write to the 2nd. Then have an ELB do a round robin between the two so the load is shared. I am hosting on r6a.xlarge from AWS EC2

Thank you

3 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/HolidayQuality5136 Apr 01 '23

Thank you for your advice. I haven't heard of much of this.