es监控的相关配置
转载: https://www.jianshu.com/p/0c64f3c49dd6 为监控配置索引 索引模板 用于配置存储从建群收集的监视数据的索引。 你可以通过 _template API检索模板: curl -X GET "localhost:9200/_template/.monitoring-*" 默认情况下,该模板为监视索引配置一个碎片和一个副本。要覆盖默认设置,请添加您自己的模板: 1、将 template 模式设置为 .monitoring-* 。 2、将模板的 order 设置为 1 。这确保您的模板是在默认模板之后应用的,默认模板的 order 是 0 。 3、在 settings 部分指定 number_of_shards 和 number_of_replicas 。 例如,下面的模板将碎片的数量增加到5个,副本的数量增加到2个。 curl -X PUT "localhost:9200/_template/custom_monitoring" -H 'Content-Type: application/json' -d' { "index_patterns": ".monitoring-*", "order": 1, "settings": { "number_of_shards": 5, "number_of