【问题标题】:How to label x-axis with non-time series data in Grafana with Elasticsearch data source?如何使用 Elasticsearch 数据源在 Grafana 中用非时间序列数据标记 x 轴?
【发布时间】:2021-04-01 13:22:41
【问题描述】:

我在 Grafana 中有一个仪表板,可以显示多台服务器的利用率百分比。 x 轴标有时间序列(时间戳),我想将其标记为服务器名称。

This is how x-axis looks like with time series.

This is what I want the graph to look like

注意:数据源严格来说是Elasticsearch,不能转成MySQL。

【问题讨论】:

    标签: elasticsearch grafana elasticsearch-plugin grafana-templating grafana-api


    【解决方案1】:

    您可能想要翻转您的坐标轴 - X 到系列而不是时间 - 这样您就可以按系列分组。如下所示(来自https://play.grafana.org/d/000000014/elasticsearch-metrics?editPanel=1

    【讨论】:

      猜你喜欢
      • 2018-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-24
      相关资源
      最近更新 更多