按照官方说明文档配置,问题一大堆,官方文档有点杂乱。请大佬帮我看一下我的设置哪里有问题:
生产集群elasticsearch.yml配置:
xpack.monitoring.collection.enabled: true
xpack.monitoring.elasticsearch.collection.enabled: true
xpack.monitoring.exporters:
es-mon:
type: http
host: ["http://172.16.6.178:9200"]
生产环境kibana.yml配置:
# xpack monitoring settings
xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: true
监控集群elasticsearch.yml配置:
cluster.name: es-mon
# Xpack settings
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.collection.enabled: false
xpack.monitoring.collection.enabled: false
监控kibana.yml配置:
# monitoring settings
xpack.monitoring.ui.enabled: true
xpack.monitoring.kibana.collection.enabled: false
全部起来后,发现监控集群没有数据,监控的kibana的monitoring界面还是提示本地集群没有打开监控,出现以下提示:
Monitoring 当前已关闭
通过 Monitoring,可深入了解您的硬件性能和负载。
我们已检查 cluster defaults 设置,发现 xpack.monitoring.collection.enabled 已设置为 false。
是否要打开它?
这不就还是监控本地集群吗,肯定不能点。同时,在生成环境的kibana监控界面中,点击监控弹出一下错误信息:
您需要做些调整
要运行 Monitoring,请执行以下步骤
我们已检查 xpack.monitoring.exporters 的 cluster defaults 设置并发现了原因:Remote exporters indicate a possible misconfiguration: qingteng-insight-mon。
强烈推荐使用监测导出器将监测数据传输到远程监测集群,因为无论生产集群出现什么状况,该监测集群都可以确保监测数据的完整性。不过,因为此 Kibana 实例无法查找到任何监测数据,所以似乎 xpack.monitoring.exporters 配置或 kibana.yml 中的 xpack.monitoring.elasticsearch 设置有问题。
确认用于将统计信息发送到监测集群的导出器已启用,且监测集群主机匹配 kibana.yml 中的 xpack.monitoring.elasticsearch 设置,以查看此 Kibana 实例中的监测数据。
查看生产环境es节点的日志,发现以下错误信息:
[2019-10-10T16:03:22,606][ERROR][o.e.x.m.e.h.VersionHttpResource] [node-1] failed to verify minimum version [6.0.0-alpha1] on the [xpack.monitoring.exporters.qingteng-insight-mon] monitoring cluster
java.net.ConnectException: Connection refused
……
[2019-10-10T16:03:22,607][ERROR][o.e.x.m.e.Exporters ] [node-1] exporter [qingteng-insight-mon] failed to open exporting bulk
java.net.ConnectException: Connection refused
……
[2019-10-10T16:03:26,779][WARN ][o.e.x.m.e.h.NodeFailureListener] [node-1] connection failed to node at [http://172.16.6.178:9200]
[2019-10-10T16:03:26,780][ERROR][o.e.x.m.e.h.VersionHttpResource] [node-1] failed to verify minimum version [6.0.0-alpha1] on the [xpack.monitoring.exporters.qingteng-insight-mon] monitoring cluster
java.net.ConnectException: Connection refused
请大佬们来指导一下。
生产集群elasticsearch.yml配置:
xpack.monitoring.collection.enabled: true
xpack.monitoring.elasticsearch.collection.enabled: true
xpack.monitoring.exporters:
es-mon:
type: http
host: ["http://172.16.6.178:9200"]
生产环境kibana.yml配置:
# xpack monitoring settings
xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: true
监控集群elasticsearch.yml配置:
cluster.name: es-mon
# Xpack settings
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.collection.enabled: false
xpack.monitoring.collection.enabled: false
监控kibana.yml配置:
# monitoring settings
xpack.monitoring.ui.enabled: true
xpack.monitoring.kibana.collection.enabled: false
全部起来后,发现监控集群没有数据,监控的kibana的monitoring界面还是提示本地集群没有打开监控,出现以下提示:
Monitoring 当前已关闭
通过 Monitoring,可深入了解您的硬件性能和负载。
我们已检查 cluster defaults 设置,发现 xpack.monitoring.collection.enabled 已设置为 false。
是否要打开它?
这不就还是监控本地集群吗,肯定不能点。同时,在生成环境的kibana监控界面中,点击监控弹出一下错误信息:
您需要做些调整
要运行 Monitoring,请执行以下步骤
我们已检查 xpack.monitoring.exporters 的 cluster defaults 设置并发现了原因:Remote exporters indicate a possible misconfiguration: qingteng-insight-mon。
强烈推荐使用监测导出器将监测数据传输到远程监测集群,因为无论生产集群出现什么状况,该监测集群都可以确保监测数据的完整性。不过,因为此 Kibana 实例无法查找到任何监测数据,所以似乎 xpack.monitoring.exporters 配置或 kibana.yml 中的 xpack.monitoring.elasticsearch 设置有问题。
确认用于将统计信息发送到监测集群的导出器已启用,且监测集群主机匹配 kibana.yml 中的 xpack.monitoring.elasticsearch 设置,以查看此 Kibana 实例中的监测数据。
查看生产环境es节点的日志,发现以下错误信息:
[2019-10-10T16:03:22,606][ERROR][o.e.x.m.e.h.VersionHttpResource] [node-1] failed to verify minimum version [6.0.0-alpha1] on the [xpack.monitoring.exporters.qingteng-insight-mon] monitoring cluster
java.net.ConnectException: Connection refused
……
[2019-10-10T16:03:22,607][ERROR][o.e.x.m.e.Exporters ] [node-1] exporter [qingteng-insight-mon] failed to open exporting bulk
java.net.ConnectException: Connection refused
……
[2019-10-10T16:03:26,779][WARN ][o.e.x.m.e.h.NodeFailureListener] [node-1] connection failed to node at [http://172.16.6.178:9200]
[2019-10-10T16:03:26,780][ERROR][o.e.x.m.e.h.VersionHttpResource] [node-1] failed to verify minimum version [6.0.0-alpha1] on the [xpack.monitoring.exporters.qingteng-insight-mon] monitoring cluster
java.net.ConnectException: Connection refused
请大佬们来指导一下。
1 个回复
shwtz - 学物理想做演员的IT男
赞同来自:
将监控集群的network.host改成 0.0.0.0
问题就迎刃而解了。