Skip to main content

2022年07月07日Prometheus容量限制

Published 1 min readMarkdown

针对 Prometheus 最好追加个容量方面的限定参数,例如我这边配置了:

  • '--storage.tsdb.retention.time=6month'
  • '--storage.tsdb.retention.size=2GB'

6个月或者总容量到达 2GB 的时候自动清除老的数据,默认 Prometheus 清除时间为 15d,很多刚开始接触 Prometheus 的同学表示为什么会「丢数据」也是因为这个原因。

No comments yet. Be the first to comment.