elasticsearch_exporter
elasticsearch_exporter copied to clipboard
include "cluster.max_shards_per_node" in cluster settings?
I need to monitor shard numbers against cluster.max_shards_per_node.
The metric is only available with include_defaults=true
, even though it has been adjusted:
$ curl -X GET "localhost:9200/_cluster/settings?flat_settings=true&pretty" 2>/dev/null | grep cluster.max_shards_per_node
[nothing]
$ curl -X GET "localhost:9200/_cluster/settings?include_defaults=true&flat_settings=true&pretty" 2>/dev/null | grep cluster.max_shards_per_node
"cluster.max_shards_per_node" : "5000",
We are running with --es.cluster_settings
:
/ $ elasticsearch_exporter --version
elasticsearch_exporter, version 1.1.0 (branch: master, revision: fe20e499ffdd6053e6153bac15eae494e08931df)
build user: root@98bcff807894
build date: 20190807-13:02:51
go version: go1.12.7
/ $ ps axuwwwf
PID USER TIME COMMAND
1 1000 0:00 elasticsearch_exporter --log.format=logfmt --log.level=info --es.uri=http://gradient:EoX4chorieWoo1xu@elasticsearch --es.all --es.cluster_settings --es.timeout=30s --web.listen-address=:9108 --web.telemetry-path=/met
21 1000 0:00 sh
54 1000 0:00 ps axuwwwf
/ $ wget -q localhost:9108/metrics -O- | grep max_shards
/ $
Could you include this metric, and potentially others hidden under defaults?