Elasticsearch node_stats metricsetedit

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

The node_stats metricset interrogates the Cluster API endpoint of Elasticsearch to get the cluster nodes statistics. The data received is only for the local node so this Metricbeat has to be run on each Elasticsearch node.

The indices stats are node-specific. That means for example the total number of docs reported by all nodes together is not the total number of documents in all indices as there can also be replicas.

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",
    "beat": {
        "hostname": "host.example.com",
        "name": "host.example.com"
    },
    "elasticsearch": {
        "cluster": {
            "id": "3LbUkLkURz--FR-YO0wLNA",
            "name": "es1"
        },
        "node": {
            "id": "FMRmkE3HTU6xxxoFK-06Ww",
            "name": "es1_1",
            "stats": {
                "fs": {
                    "summary": {
                        "available": {
                            "bytes": 350828584960
                        },
                        "free": {
                            "bytes": 354770468864
                        },
                        "total": {
                            "bytes": 499963170816
                        }
                    }
                },
                "indices": {
                    "docs": {
                        "count": 30880,
                        "deleted": 124
                    },
                    "segments": {
                        "count": 39,
                        "memory": {
                            "bytes": 300797
                        }
                    },
                    "store": {
                        "size": {
                            "bytes": 15205991
                        }
                    }
                },
                "jvm": {
                    "gc": {
                        "collectors": {
                            "old": {
                                "collection": {
                                    "count": 3,
                                    "ms": 219
                                }
                            },
                            "young": {
                                "collection": {
                                    "count": 505,
                                    "ms": 2439
                                }
                            }
                        }
                    },
                    "mem": {
                        "pools": {
                            "old": {
                                "max": {
                                    "bytes": 715849728
                                },
                                "peak": {
                                    "bytes": 543519960
                                },
                                "peak_max": {
                                    "bytes": 715849728
                                },
                                "used": {
                                    "bytes": 382281744
                                }
                            },
                            "survivor": {
                                "max": {
                                    "bytes": 35782656
                                },
                                "peak": {
                                    "bytes": 35782656
                                },
                                "peak_max": {
                                    "bytes": 35782656
                                },
                                "used": {
                                    "bytes": 6418816
                                }
                            },
                            "young": {
                                "max": {
                                    "bytes": 286326784
                                },
                                "peak": {
                                    "bytes": 286326784
                                },
                                "peak_max": {
                                    "bytes": 286326784
                                },
                                "used": {
                                    "bytes": 118870448
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "metricset": {
        "host": "127.0.0.1:9200",
        "module": "elasticsearch",
        "name": "node_stats",
        "namespace": "elasticsearch.node.stats",
        "rtt": 115
    },
    "service": {
        "name": "elasticsearch"
    }
}