2013-10-24 18 views
0

我最近安裝了Graphite的statsd。 Statsd是工作在logstash:石墨,如何將請求速率更改爲1分鐘

statsd { 
host => "localhost" 
port => 8125 
debug => false 
increment => "%{dhcp}" 

}

石墨存儲schemas.conf:

[stats] 
pattern = ^stats.* 
retentions = 5m:500m,600:10080,1800:262974 

的問題是,所有圖都是每秒或10秒,但我需要每分鐘。 我如何將圖形速率更改爲一分鐘?

預先感謝您。 問候

回答

1

在statsd的配置,添加以下,以確保statsd和石墨是SYNC-

flushInterval:60000,

這裏的計數單位爲毫秒。這將使statsd每分鐘向石墨發送指標。

pattern = ^stats\.

retentions = 60s:90d

你的存儲架構未落入正則表達式,因爲你也沒能逃脫的時期。

一個好主意是驗證對度量標準「最終適用」的模式。一個簡單的方法是tailf /opt/graphite/storage/log/carbon-cache/carbon-cache-a/creates.log然後發送一個測試指標來驗證石墨認爲你想要的是什麼。輸出將是東西喜歡 -

24/10/2013 15時05分08秒::新的度量 METRIC_NAME匹配聚集模式counters_fall_here

24/10/2013 15時05分08秒::創建數據庫文件 /opt/graphite/storage/whisper/METRIC_NAME.wsp(archive = [(60,43200),(600,52560)] xff = 0.0 agg = sum)

相關問題