Elasticsearch 节点 metricset

编辑

node metricset 查询 Elasticsearch 的集群 API 端点以获取集群节点信息。此 metricset 只从_local 节点获取数据,因此必须在每个 Elasticsearch 节点上运行。

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

字段

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

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

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "elasticsearch": {
        "cluster": {
            "id": "WocBBA0QRma0sGpdQ7vLfQ",
            "name": "docker-cluster"
        },
        "node": {
            "id": "f5i3v9hMT_q__q6B9WOo5A",
            "jvm": {
                "memory": {
                    "heap": {
                        "init": {
                            "bytes": 268435456
                        },
                        "max": {
                            "bytes": 268435456
                        }
                    },
                    "nonheap": {
                        "init": {
                            "bytes": 7667712
                        },
                        "max": {
                            "bytes": 0
                        }
                    }
                },
                "version": "16.0.1"
            },
            "name": "27fb1c2fd783",
            "process": {
                "mlockall": false
            },
            "version": "7.14.0"
        }
    },
    "event": {
        "dataset": "elasticsearch.node",
        "duration": 115000,
        "module": "elasticsearch"
    },
    "metricset": {
        "name": "node",
        "period": 10000
    },
    "service": {
        "address": "172.19.0.2:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}