Elasticsearch index_recovery metricsetedit

This is the index_recovery metricset of the module Elasticsearch.

By default only data about indices which are under active recovery are fetched. To gather data about all indices set index_recovery.active_only: false:

- module: elasticsearch
    - index_recovery
  hosts: ["localhost:9200"]
  index_recovery.active_only: false


For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

    "@timestamp": "2017-10-12T08:05:34.853Z",
    "agent": {
        "hostname": "host.example.com",
        "name": "host.example.com"
    "elasticsearch": {
        "cluster": {
            "id": "3LbUkLkURz--FR-YO0wLNA",
            "name": "es1"
        "index": {
            "name": ".monitoring-es-6-2018.11.20",
            "recovery": {
                "id": 0,
                "primary": true,
                "source": {},
                "stage": "DONE",
                "target": {
                    "host": "",
                    "id": "FMRmkE3HTU6xxxoFK-06Ww",
                    "name": "es1_1"
                "type": "EMPTY_STORE"
    "metricset": {
        "host": "",
        "module": "elasticsearch",
        "name": "index_recovery",
        "namespace": "elasticsearch.index.recovery",
        "rtt": 115
    "service": {
        "name": "elasticsearch"