A Munin plugin for monitoring Elasticsearch nodes. Written in Ruby, depends on JSON gem. Compatible with Elasticsearch 5.x–7.x.
elasticsearch_cache
- field and query cache stats
elasticsearch_docs
- document count
elasticsearch_gc
- GC collections/sec
elasticsearch_gc_time
- GC collection running time in ms
elasticsearch_jvm
- JVM heap stats
elasticsearch_ops
- index, get, search, delete operations/sec
elasticsearch_store
- Size of index on disk
See the Munin documentation for complete instructions on plugin usage. In short, once elasticsearch_
is in your plugin directory, create symlinks for each desired mode in your Munin service dir (usually /etc/munin/plugins/
). For example, to enable JVM monitoring:
ln -s /usr/local/munin/lib/plugins/elasticsearch_ /etc/munin/plugins/elasticsearch_jvm
You may also need to create a configuration file for the plugin, if the included defaults aren't suitable to your environment. Usually this would be /etc/munin/plugin-conf.d/elasticsearch
.
- host - a elasticsearch node capable of providing stats interface (default localhost)
- port - elasticsearch HTTP API port (default 9200)
- node - the name of the node to monitor (default _local)
- user - if HTTP authentication is required, user name
- pass - if HTTP authentication is required, user password
[elasticsearch_*]
env.host 10.1.2.14
env.port 9200
env.node pinky rat
env.user johnsmith
env.user passw0rd
See the included LICENSE for rights and limitations under the terms of the MIT license.