我的石墨耳语数据库不存储超过 7 天的数据。使用该whisper-fetch.py
工具,我最多只能看到 1 周前的数据(此时应该有至少 3 周的数据)。我正在使用 grafana、statsd、graphite-web、carbon 和 Whisper。
被截断的指标之一的示例:
stats.counters.api.create_order.pc.chrome
这是我的storage-schemas.conf
:
[carbon]
pattern = ^carbon\.
retentions = 10s:6h,1min:90d
[default_1min_for_1day]
pattern = .*
retentions = 10s:6h,1min:6d,10min:5y
这是我的storage-aggregation.conf
:
[min]
pattern = \.lower$
xFilesFactor = 0.1
aggregationMethod = min
[max]
pattern = \.upper(_\d+)?$
xFilesFactor = 0.1
aggregationMethod = max
[sum]
pattern = \.sum$
xFilesFactor = 0
aggregationMethod = sum
[count]
pattern = \.count$
xFilesFactor = 0
aggregationMethod = sum
[count_legacy]
pattern = ^stats_counts.*
xFilesFactor = 0
aggregationMethod = sum
[default_average]
pattern = .*
xFilesFactor = 0.3
aggregationMethod = average