Elasticsearch cluster_stats metricset

edit

Elasticsearch cluster_stats metricset

edit

This is the cluster_stats metricset of the Elasticsearch module. It interrogates the Cluster Stats API endpoint to fetch information about the Elasticsearch cluster.

Fields

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": "WocBBA0QRma0sGpdQ7vLfQ",
            "name": "docker-cluster",
            "stats": {
                "expiry_date_in_millis": 1638548539004,
                "indices": {
                    "docs": {
                        "total": 81
                    },
                    "fielddata": {
                        "memory": {
                            "bytes": 0
                        }
                    },
                    "shards": {
                        "count": 17,
                        "primaries": 17
                    },
                    "store": {
                        "size": {
                            "bytes": 44156720
                        }
                    },
                    "total": 17
                },
                "license": {
                    "status": "active",
                    "type": "trial",
                    "expiry_date_in_millis": 1638548539004
                },
                "nodes": {
                    "count": 1,
                    "fs": {
                        "available": {
                            "bytes": 126640869376
                        },
                        "total": {
                            "bytes": 330994548736
                        }
                    },
                    "jvm": {
                        "max_uptime": {
                            "ms": 795905
                        },
                        "memory": {
                            "heap": {
                                "max": {
                                    "bytes": 268435456
                                },
                                "used": {
                                    "bytes": 166911488
                                }
                            }
                        }
                    },
                    "master": 1,
                    "versions": [
                        "7.14.0"
                    ]
                },
                "stack": {
                    "xpack": {
                        "ccr": {
                            "available": true,
                            "enabled": true
                        }
                    }
                },
                "state": {
                    "master_node": "f5i3v9hMT_q__q6B9WOo5A",
                    "nodes": {
                        "f5i3v9hMT_q__q6B9WOo5A": {
                            "attributes": {
                                "ml.machine_memory": "33295835136",
                                "ml.max_jvm_size": "268435456",
                                "ml.max_open_jobs": "512",
                                "transform.node": "true",
                                "xpack.installed": "true"
                            },
                            "ephemeral_id": "aQVRUnEIQ5GA3Qe4uBDqLA",
                            "name": "27fb1c2fd783",
                            "roles": [
                                "data",
                                "data_cold",
                                "data_content",
                                "data_frozen",
                                "data_hot",
                                "data_warm",
                                "ingest",
                                "master",
                                "ml",
                                "remote_cluster_client",
                                "transform"
                            ],
                            "transport_address": "127.0.0.1:9300"
                        }
                    },
                    "nodes_hash": -19752840,
                    "state_uuid": "XNIdeSZxQwyItvGfR5fHSw"
                },
                "status": "yellow"
            }
        },
        "version": 106
    },
    "event": {
        "dataset": "elasticsearch.cluster.stats",
        "duration": 115000,
        "module": "elasticsearch"
    },
    "metricset": {
        "name": "cluster_stats",
        "period": 10000
    },
    "service": {
        "address": "172.19.0.2:9200",
        "type": "elasticsearch"
    }
}