【问题标题】:How does the retention on Graphite storage schema work?Graphite 存储模式的保留如何工作?
【发布时间】:2015-06-16 00:34:19
【问题描述】:

我试图了解 Graphite 的 storage-schema.conf 中的保留是如何工作的。

这是我的保留配置。

[prod_retention]
pattern = prod\..*
retentions = 10s:30d,1m:90d

这是否意味着数据保留期为 120 天 (30d+90d) 或仅 90 天?

【问题讨论】:

    标签: graphite whisper


    【解决方案1】:

    该配置意味着 30d 的滚动窗口将具有 10s 分辨率的指标,并且在数据点超过 30d 的年龄后,它们被下采样到 90d 的滚动窗口,该窗口将以 1m 的分辨率存储指标。这些分辨率存储在同一个数据文件中。您在此文件中的最长数据保留时间为 90 天。

    在 storage-aggregations.conf 中定义了将 10s 数据点汇总到 1m 分辨率时用于该文件的聚合函数(默认使用平均值/平均值)。

    请参阅此处记录的详细配置:http://graphite.readthedocs.org/en/latest/config-carbon.html#storage-schemas-confhttp://graphite.readthedocs.org/en/latest/config-carbon.html#storage-aggregation-conf

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-25
      • 1970-01-01
      • 2011-04-12
      • 1970-01-01
      • 2021-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多