phobos182 / collectd-elasticsearch

Collectd ElasticSearch plugin
Apache License 2.0
105 stars 105 forks source link

Add support for cluster health #22

Open cristi- opened 9 years ago

cristi- commented 9 years ago

Add a call to /_cluster/health that extracts the "health" section, maps it to a set of integers sends it to collectd.

The mappings are: 0 - green health, 1 - yellow, 2 - red and 3 for an unknown health status