简体   繁体   English

弹性搜索作为 grafana 数据源

[英]elastic search as grafana datasource

Issue: Not able to get data flow from Elasticsearch to Grafana.问题:无法获得从 Elasticsearch 到 Grafana 的数据流。

I can able to connect to ES Kibana from browser to URL with basic auth (user id & password).我可以使用基本身份验证(用户 ID 和密码)从浏览器连接到 ES Kibana 到 URL。

When I hit save and test in Grafana Datasource, I don't see any errors.当我在 Grafana 数据源中点击保存和测试时,我没有看到任何错误。 But, I don't see any data showing up in my grafana panel.但是,我的 grafana 面板中没有显示任何数据。

Datasource properties:数据源属性:

URL : http://example.com:5601 
Access: Browser
Auth: Basic Auth
Index name: same name what I used in Kibana query
Grafana Version: 7.0+
Time field name: @timestamp
Level field name: <blank>

I enabled CORS on ES.我在 ES 上启用了 CORS。

Appreciate your help感谢你的帮助

Here is my Datasource configuration.这是我的数据源配置。

数据源设置

控制板

You are using Grafana Elasticsearch datasource, but your are connecting to Kibana (typical port 5601) and not to Elasticsearch.您正在使用 Grafana Elasticsearch 数据源,但您要连接到 Kibana(典型端口 5601)而不是 Elasticsearch。 Kibana is similar to Grafana - both are "user interfaces" for Elasticsearch. Kibana 与 Grafana 类似——两者都是 Elasticsearch 的“用户界面”。 Connect datasource directly to Elasticsearch.将数据源直接连接到 Elasticsearch。

The ES URL what is being configured in Grafana should return below json在 Grafana 中配置的 ES URL 应在 json 下方返回

{
   "name": "dev1234.dev.company.com",
   "cluster_name": "elasticsearch_es7test",
   "cluster_uuid": "V-QwB6jmSRCtMaMTTYW1qA",
   "version": {
     "number": "7.6.2",
     "build_flavor": "default",
     "build_type": "tar",
     "build_hash": "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
     "build_date": "2020-03-26T06:34:37.794943Z",
     "build_snapshot": false,
     "lucene_version": "8.4.0",
     "minimum_wire_compatibility_version": "6.8.0",
     "minimum_index_compatibility_version": "6.0.0-beta1"
   },
   "tagline": "You Know, for Search"
 }

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

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