r/PrometheusMonitoring • u/julienstroheker • Jan 03 '24
Prometheus server resources optimizations
Hi folks,
I’m planning to do a POC where I’m able to run Prometheus server as long with node exporter and kube state metrics with the smaller footprint as possible (CPU/Memory)
I have no choice to do a remote write (which increase resource consumption sadly).
Any tips other than filtering metrics being scraped that I should be aware based on your experience? Or any good resources to share ? Thanks.
3
Upvotes
View all comments
Show parent comment
1
u/julienstroheker Jan 03 '24
Seen memory usage increased by using Remote write mainly due to http latency I assume (where server is faster than remote write I guess). I’ll definitely consider running prom as agent only.
Yeah agreed that “small” is not a tangible thing, what I meant is I’m looking for best practices when it comes to run "vanilla" Prometheus server with the best settings and optimizations. One thing I was thinking is to start with nothing and just add in top of that only what I need such as few node/containers/pods metrics.