linux - statsd 当前时间是 future 两个小时——如何解决?

标签 linux statsd

当查看 Graphite 中的 statsd 数据时,图表显示当前时间是 future 两个小时。例如,如果我们在上午 9:00 查看 Graphite ,图表会告诉我们现在是上午 11:00。数据按照应有的方式排列 - 如果我们在上午 9:00 有 99 个事件,那么我们可以在上午 11:00 在图表上看到这 99 个事件。

运行 statsd 的主机上的时钟是正确的,我们尝试停止和启动 statsd 进程。关于在哪里解决这个问题还有其他建议吗?

最佳答案

通过创建此文件修复(因为我们在加利福尼亚州)

$ cat /opt/graphite/webapp/graphite/local_settings.py

# Set your local timezone (django will *try* to figure this out automatically)
# If your graphs appear to be offset by a couple hours then this probably
# needs to be explicitly set to your local timezone.
TIME_ZONE = 'America/Los_Angeles'

找到答案here

关于linux - statsd 当前时间是 future 两个小时——如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16662139/

相关文章:

linux - 根据列中的值汇总数据

linux - Poppler 0.14.1 构建问题

linux - 如何将更改从 GitHub Desktop 推送到 Cpanel

javascript - StatsD 启动错误

Graphite,为同一个键发送多个值 : only one remains

metrics - Graphite 耳语丢失旧数据

variables - 将值中包含双引号 (") 的变量从 K8s 部署传递到容器

linux - 设置 gdb 退出断点不起作用?

docker - 将收集到的数据传递给在 Docker 容器中运行的 Statsd

python - Linux - 存储仅具有用户权限的与用户无关的数据