简体   繁体   English

如何使用 Elasticsearch 数据源在 Grafana 中使用非时间序列数据 label x 轴?

[英]How to label x-axis with non-time series data in Grafana with Elasticsearch data source?

I have a dashboard in Grafana that displays the percentage of utilization of multiple servers.我在 Grafana 中有一个仪表板,显示多台服务器的利用率百分比。 The x-axis is labeled with time-series(timestamp), I want to label it as server names. x 轴标有时间序列(时间戳),我想将 label 作为服务器名称。

This is how x-axis looks like with time series.这就是 x 轴在时间序列中的样子。

This is what I want the graph to look like这就是我希望图表的样子

Note: The data source is strictly Elasticsearch and cannot be converted to MySQL.注:数据源严格为Elasticsearch,不能转换为MySQL。

You would probably want to flip your axes - X to Series instead of Time - that would allow you group by series.您可能想要翻转您的轴 - X 到系列而不是时间 - 这将允许您按系列分组。 Something like below (sourced from https://play.grafana.org/d/000000014/elasticsearch-metrics?editPanel=1 )如下所示(来自https://play.grafana.org/d/000000014/elasticsearch-metrics?editPanel=1

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有Elasticsearch数据源的Grafana - Grafana with elasticsearch data source 如何使用Grafana中的Prometheus数据源监视弹性搜索 - How to monitor elasticsearch with Prometheus data source in Grafana 如何使用 Elasticsearch 数据源在 Grafana 中可视化百分比指标? - How to visualize a percentage metric in Grafana using Elasticsearch data source? 带有AWS Elasticsearch数据源的Grafana在phantomjs中不起作用 - Grafana with aws elasticsearch data source not working in phantomjs 使用 Elasticsearch 数据源的 Grafana 中没有可用的指标 - No metrics available in Grafana with Elasticsearch data source 如何在 Kibana 中生成 plot 非基于时间的直方图? - How to plot a non-time based histogram in Kibana? 从 Elasticsearch 数据源获取 Grafana 中的最新元素 - Get most recent element in Grafana from an Elasticsearch data source 如何从Elasticsearch数据源制作grafana中的累积和图? - How can I make a cumulative sum graph in grafana, from an elasticsearch data source? 使用Grafana中的模板并以Elasticsearch作为数据源的术语聚合 - Term aggregation using template in Grafana with Elasticsearch as data source Grafana 在 Elasticsearch 数据源中使用两个字段相减 - Grafana to use substraction of two fields in Elasticsearch data source
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM