Skip to content

Update Prometheus flags

Ben Kochie requested to merge bjk/prom_auto_mem into master

Prometheus needs to be configured for how much memory is used for buffering metric data.

  • Memory chunks are 1kb in size.
  • The minimum memory needs to be 2x as many chunks as there are unique metrics time-series.

See: https://prometheus.io/docs/operating/storage/#memory-usage

  • Update memory allocation controls
    • Use 10k + 2% of memory for memory-chunks.
    • Set half of that for max-chunks-to-persist.
  • Set default for chunk encoding version to 2
    • Trades some CPU time for increased compression.

Merge request reports