Elasticsearch分片metricset

编辑

shard metricset 查询 集群状态API端点 来获取所有分片的信息。

这是一个默认的metricset。如果主机模块未配置,则默认启用此metricset。

字段

有关metricset中每个字段的描述,请参见导出字段部分。

这是一个此metricset生成的示例文档

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "elasticsearch": {
        "cluster": {
            "id": "WocBBA0QRma0sGpdQ7vLfQ",
            "name": "docker-cluster",
            "state": {
                "id": "XNIdeSZxQwyItvGfR5fHSw"
            },
            "stats": {
                "state": {
                    "state_uuid": "XNIdeSZxQwyItvGfR5fHSw"
                }
            }
        },
        "index": {
            "name": "pied_piper"
        },
        "node": {
            "id": "f5i3v9hMT_q__q6B9WOo5A"
        },
        "shard": {
            "number": 0,
            "primary": true,
            "relocating_node": {
                "id": null,
                "name": null
            },
            "source_node": {
                "name": "27fb1c2fd783",
                "uuid": "f5i3v9hMT_q__q6B9WOo5A"
            },
            "state": "STARTED"
        }
    },
    "event": {
        "dataset": "elasticsearch.shard",
        "duration": 115000,
        "module": "elasticsearch"
    },
    "metricset": {
        "name": "shard",
        "period": 10000
    },
    "service": {
        "address": "172.19.0.2:9200",
        "type": "elasticsearch"
    }
}