Elasticsearch shard metricsetedit

The shard metricset interrogates the Cluster State API endpoint to fetch information about all shards.

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

Fieldsedit

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",
    "elasticsearch": {
        "cluster": {
            "id": "tMjf3CQ_TyCXNfcoR9eTWw",
            "name": "docker-cluster",
            "state": {
                "id": "n-UoXaqYRoOe9qAC76IG6A"
            }
        },
        "index": {
            "name": ".apm-agent-configuration"
        },
        "node": {
            "id": "hx-oJ1-aT_-5pRG22JMI1Q"
        },
        "shard": {
            "number": 0,
            "primary": true,
            "relocating_node": {
                "id": null,
                "name": null
            },
            "source_node": {
                "name": "1fb2aa83efac",
                "uuid": "hx-oJ1-aT_-5pRG22JMI1Q"
            },
            "state": "STARTED"
        }
    },
    "event": {
        "dataset": "elasticsearch.shard",
        "duration": 115000,
        "module": "elasticsearch"
    },
    "metricset": {
        "name": "shard",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:44037",
        "type": "elasticsearch"
    }
}