簡體   English   中英

石墨耳語丟失了舊數據

[英]Graphite whisper losing old data

我的石墨耳語數據庫沒有存儲超過7天的數據。 使用whisper-fetch.py工具,我只能看到長達1周的數據(此時應該至少有3周的數據)。 我正在使用grafana,statsd,石墨網,碳和耳語。

指標之一被截斷的示例:

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

我發現了問題。 正如我所看到的,使用whisper-info.py ,在所有舊指標上的保留時間顯示為7天。 可以保留較新的指標。 當前的storage-schemas.conf沒有在任何地方指定7天...但是以前的storage-schemas.conf文件可以指定它。

似乎石墨不會自動更新whisper文件以達到storage-schemas.conf指定的新保留時間。我使用whisper-resize.py工具來手動調整所有舊的公制耳語文件的大小,現在whisper-info.py顯示了正確的保留期。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM