Back to Nightingale

elasticsearch plugin

integrations/Elasticsearch/markdown/README.md

8.5.11002 B
Original Source

elasticsearch plugin

ElasticSearch 通过 HTTP JSON 的方式暴露了自身的监控指标,通过 categraf 的 elasticsearch 插件抓取。

如果是小规模集群,设置 local=false,从集群中某一个节点抓取数据,即可拿到整个集群所有节点的监控数据。如果是大规模集群,建议设置 local=true,在集群的每个节点上都部署抓取器,抓取本地 elasticsearch 进程的监控数据。

配置示例

categraf 配置文件:conf/input.elasticsearch/elasticsearch.toml

yaml
[[instances]]
servers = ["http://192.168.11.177:9200"]
http_timeout = "10s"
local = false
cluster_health = true
cluster_health_level = "cluster"
cluster_stats = true
indices_level = ""
node_stats = ["jvm", "breaker", "process", "os", "fs", "indices", "thread_pool", "transport"]
username = "elastic"
password = "xxxxxxxx"
num_most_recent_indices = 1
labels = { service="es" }