Prometheus Performance Tuning
Profiling
Overview
http://your.prometheus.host:9090/debug/pprof
Go Profiling
- go pprof http://your.prometheus.host:9090/debug/pprof/heap
- go pprof web
System
Adjust nofile
find the current ulimit number of open file
ulimit -aincrease open files (file descriptor) limit
ulimit -n 102400
Startup Flag
adjust query flag
query.timeoutquery.max-samplesquery.max-concurrency
Federation
Thanos
Reference
Why does Prometheus consume so much memory?@stackoverflow