如何设置Graphite X轴以秒为单位显示时间间隔?

时间:2017-01-13 14:12:13

标签: graphite

我已经安装并配置了Graphite。我需要以秒为单位显示X轴的时间间隔。以下是我在/etc/carbon/storage-schemas.conf文件中给出的配置。

# Schema definitions for Whisper files. Entries are scanned in order,
# and first match wins. This file is scanned for changes every 60 seconds.
#
#  [name]
#  pattern = regex
#  retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ...

# Carbon's internal metrics. This entry should match what is specified in
# CARBON_METRIC_PREFIX and CARBON_METRIC_INTERVAL settings
[carbon]
pattern = ^carbon\.
retentions = 60:90d

[test]
pattern = ^test\.
retentions = 10s:10m,1m:1h,10m:1d

[default_1min_for_1day]
pattern = .*
retentions = 1s:30d

虽然我已经将保留时间设为1秒,但我仍然给出了以下用户界面,其间隔时间仍为几分钟。

enter image description here

我在这里做错了什么?任何帮助将不胜感激。

编辑:根据这个问题的答案Graphite/Carbon how to get per-second metrics我尝试删除碳和耳语文件夹中的所有wsp文件,将local_settings.py中的dault持续时间设置为1s并重新启动碳服务。但是我的安装中没有nginx / apache2 / uwsgi缓存,所以是whisper-info.py。虽然我从这个解决方案中做了任何改变,但我仍然以微小的间隔显示图表。

0 个答案:

没有答案