【问题标题】:ElasticSearch 5.1.1 + Grafana 4.1.0 Time seems offset by UTC differenceElasticSearch 5.1.1 + Grafana 4.1.0 时间似乎被 UTC 差异所抵消
【发布时间】:2017-01-05 03:14:53
【问题描述】:

我正在运行 Grafana 4.1.0_beta1 和 Elasticsearch 5.1.1。

我所有的服务器都设置为山区时间,我似乎遇到了一个问题,即 Grafana 尝试“解释”UTC,并将搜索参数偏移 7 小时。

举个例子;

date 来自服务器的结果; Wed Jan 4 20:10:54 MST 2017

但是当我尝试在 Grafana 中添加和测试数据源时,我收到此错误:

{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"metricbeat-2017.01.05","index_uuid":"_na_","index":"metricbeat-2017.01.05"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"metricbeat-2017.01.05","index_uuid":"_na_","index":"metricbeat-2017.01.05"}

虽然metricbeat-2017.01.05 不存在,但metricbeat-2017.01.04 应有的作用。

在仪表板上,我看不到任何数据,直到我将时间设置为 7 小时前的任何数据。

我在 elasticsearch 或 grafana 配置文件中没有看到任何关于时区的信息。

我错过了什么吗?

【问题讨论】:

    标签: elasticsearch timezone grafana


    【解决方案1】:

    过度分析的经典案例。

    看起来一切都是正确的,因为它是正确的,除了我的客户时区。

    1. 本地客户端上的正确时区
    2. 确保正确更新时间
    3. 重启网络浏览器

    【讨论】:

      【解决方案2】:

      您应该能够通过进入添加的面板小部件 -> 时间范围 -> 添加时间偏移,将数据时间偏移 7 小时。

      --如果没有其他工作,那就是。

      【讨论】:

        猜你喜欢
        • 2015-09-13
        • 2012-02-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-04-18
        • 2011-01-18
        相关资源
        最近更新 更多