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 -a
increase open files (file descriptor) limit
ulimit -n 102400
Startup Flag
adjust query flag
query.timeout
query.max-samples
query.max-concurrency
Federation
Thanos
Reference
Why does Prometheus consume so much memory?@stackoverflow