【问题标题】:Prometheus retention time set to 1 year but not keeping data beyond default 15 daysPrometheus 保留时间设置为 1 年,但不会将数据保留超过默认 15 天
【发布时间】:2019-12-18 23:44:23
【问题描述】:

我最近安装了 Prometheus 并使用 Grafana 进行报告。

在安装过程中设置 Prometheus 的保留时间为 1 年 --storage.tsdb.retention.time=1y \

现在,我们从昨天开始注意到 15 天前的数据不再显示。我的代码有问题吗? 1y 不被认出来吗?

【问题讨论】:

标签: prometheus prometheus-operator prometheus-blackbox-exporter


【解决方案1】:

您需要在您的启动文件中设置命令行选项(例如 prometheus.service)

--storage.tsdb.retention.size 120GB \                                                                                                                                                                                                     
--storage.tsdb.retention.time 1825d

在这个例子中,我设置了 120 GB 作为存储空间和 5 年作为保存数据的时间范围

【讨论】:

    猜你喜欢
    • 2019-10-09
    • 2011-06-16
    • 1970-01-01
    • 2017-05-27
    • 1970-01-01
    • 2018-01-16
    • 2014-05-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多