【问题标题】:Graphite doesn't display > 6h data?石墨不显示> 6h数据?
【发布时间】:2016-02-17 08:06:49
【问题描述】:

我的配置有问题吗?我每分钟记录一次碳状态。它在 Graphite 中运行良好,但仅适用于最后 6 小时。如果我选择比这更大的东西 - 我看不到任何数据。这是我的storage-schemas.cfg

[carbon]
pattern = ^carbon\.
retentions = 10s:6h,1min:90d

[default_1min_for_1day]
pattern = .*
retentions = 10s:6h,1min:6d,10min:1800d

【问题讨论】:

    标签: graphite retention whisper graphite-carbon


    【解决方案1】:

    您是在开始记录数据之前还是之后设置了保留时间?

    一旦您开始向其写入数据,Carbon 不会自动调整数据文件的大小。因此,当您更改保留策略时,您必须手动调整数据文件的大小。这是通过 whisper-resize.py 脚本完成的。

    Usage: whisper-resize.py path timePerPoint:timeToStore [timePerPoint:timeToStore]*
    

    如果你需要调整很多文件的大小,你可以使用 find 命令并将输出通过管道传递给whisper-resize.py:

    find /opt/graphite/storage/whisper -type f -name "*.wsp" | sudo xargs -I{} whisper-resize.py {} 30:7d
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多