简体   繁体   English

Grafana与Elasticsearch

[英]Grafana with Elasticsearch

I am trying to create a graph in Grafana, with datasource from ElasticSearch. 我正在尝试使用来自ElasticSearch的数据源在Grafana中创建图形。 I get error stating that there is no datapoints. 我收到错误消息,指出没有数据点。 Moreover in the Metrics field if I select any value (count, avg, max....) I get the index fields (eg cpu.usage.total) in the dropdown menu and not the @value or @number 此外,如果在Metrics字段中选择任何值(count,avg,max ....),我会在下拉菜单中获得索引字段(例如cpu.usage.total),而不是@value或@number

Grafana Dashboard_1 -- Grafana Dashboard_1-

在此处输入图片说明

Grafana Dashboard_2 -- Grafana Dashboard_2-

在此处输入图片说明

Just found that I had not provided the correct parameter while creating the data source and hence was not able to generate the charts. 刚发现我在创建数据源时没有提供正确的参数,因此无法生成图表。 I am now able to generate the graphs. 现在,我可以生成图形了。 But it seems that the container names are not getting displayed properly where there is a special character "-" in the container name. 但是,在容器名称中有特殊字符“-”的地方,容器名称似乎无法正确显示。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM