简介
描述;查看Kibana的monitor的时候发现没有数据。
代码语言:javascript复制# 查看模板
GET _cat/templates/.monitoring*?v
# 查看是否有 .monitoring-es-* 的索引
GET _cat/indices/.monitoring-*
# 查看集群配置
GET /_cluster/settings
{
"persistent" : {
"xpack" : {
"monitoring" : {
"collection" : {
"enabled" : "true"
},
"history" : {
"duration" : "30d"
}
}
}
},
"transient" : {
"cluster" : {
"routing" : {
"allocation" : {
"enable" : "all",
"exclude" : {
"_host" : "xxxxxxxx"
}
}
}
}
}
}
- 修改集群配置
PUT _cluster/settings
{
"persistent": {
"xpack": {
"monitoring": {
"elasticsearch": {
"collection": {
"enabled": "true"
}
},
"collection": {
"enabled": "true"
}
}
}
}
}