CollectD ElasticSearch plugin
Перейти к файлу
molner b2e53022c2
Merge pull request #56 from signalfx/error-handling
Bail out early if cluster state cannot be determined
2018-02-09 17:21:32 -05:00
.circleci Bail out early if cluster state cannot be determined 2018-02-09 17:17:53 -05:00
tests Httpsfix (#52) 2017-06-02 11:28:47 -04:00
tools Dimensionalize thread pool metrics 2016-07-20 16:02:21 -04:00
.travis.yml add travis build file 2016-03-22 13:11:01 -07:00
CHANGELOG.md Restore compatibility with python 2.6 (#36) 2016-08-08 09:07:41 -07:00
LICENSE.txt Added apache 2.0 license 2014-09-02 10:46:42 -07:00
README.md Httpsfix (#52) 2017-06-02 11:28:47 -04:00
elasticsearch_collectd.py Bail out early if cluster state cannot be determined 2018-02-09 17:17:53 -05:00

README.md

Elasticsearch CollectD plugin

A CollectD plugin to collect Elasticsearch stats and metrics. Uses CollectD's Python plugin.

Installation

  1. Place the elasticsearch_collectd.py file into a directory on the host. The recommended directory is /usr/share/collectd/collectd-elasticsearch.
  2. Configure the plugin (see below).
  3. Restart collectd.

Requirements

  • collectd 4.9+
  • Elasticsearch 1.x or newer.
  • python v2.6 or newer (https support requires v2.7.9)

Configuration

  • See elasticsearch.conf
  • The plugin will automatically determine the version of Elasticsearch you are running as well as the cluster name.
  • Per-index and cluster stats can be disabled if needed; they are enabled by default. These settings are collected only on master eligible nodes.
  • If you are running the Elasticsearch plugin via a collectd deployment within a container, please configure the Host and Port values inside of the 20-elasticsearch.conf file that correspond to the desired Elasticsearch instance.

ex:

   <Module "elasticsearch_collectd">
       Host "XXX.XXX.XXX.XXX"
       Port "XXXX"
   </Module>

Metrics

Node stats

  • Documents (total docs & deleted docs)
  • Store size
  • Indexing (total, time, total delete, delete time)
  • Get (total, time, exists total, exists time, missing total, missing time)
  • Search (total query, total time, total fetch, total fetch time)
  • JVM uptime
  • JVM memory (heap committed, heap Used, non heap committed, non heap used)
  • JVM threads (count & peak)
  • JVM GC (time & count)
  • Transport stats (server open, RX count, RX size, TX count, TX size)
  • HTTP stats (current open & total open)
  • OS stats (CPU percent, file descriptors)
  • Thread pool stats (generic, index, get, snapshot, merge, optimize, bulk, warmer, flush, search, refresh)
  • Cache (field eviction, field size, filter evictions, filter size)
  • JVM collectors
  • FLush (total count, total time)
  • Merges (current count, current docs, current size, merge total size, docs a time)
  • Refresh (Total & Time)

Index stats

  • Transaction log (size, number of operations)
  • Most of the common stats per index and per primary vs. total.

Cluster stats

  • Shard stats (active, initializing, relocating, unassigned, primaries)
  • Nodes (total, data nodes)