Elasticsearch node_stats metricset

edit

Elasticsearch node_stats metricset

edit

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.

Fields

edit

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": {
            "name": "docker-cluster"
        },
        "node": {
            "name": "ab1_1Gw3Rtax_2l78Gq_CQ",
            "stats": {
                "fs": {
                    "summary": {
                        "available": {
                            "bytes": 50680381440
                        },
                        "free": {
                            "bytes": 54133080064
                        },
                        "total": {
                            "bytes": 67371577344
                        }
                    }
                },
                "indices": {
                    "docs": {
                        "count": 52,
                        "deleted": 4
                    },
                    "segments": {
                        "count": 3,
                        "memory": {
                            "bytes": 20655
                        }
                    },
                    "store": {
                        "size": {
                            "bytes": 107559
                        }
                    }
                },
                "jvm": {
                    "gc": {
                        "collectors": {
                            "old": {
                                "collection": {
                                    "count": 7,
                                    "ms": 3801
                                }
                            },
                            "young": {
                                "collection": {
                                    "count": 56,
                                    "ms": 14782
                                }
                            }
                        }
                    },
                    "mem": {
                        "pools": {
                            "old": {
                                "max": {
                                    "bytes": 62914560
                                },
                                "peak": {
                                    "bytes": 53816432
                                },
                                "peak_max": {
                                    "bytes": 62914560
                                },
                                "used": {
                                    "bytes": 40017472
                                }
                            },
                            "survivor": {
                                "max": {
                                    "bytes": 3145728
                                },
                                "peak": {
                                    "bytes": 3145728
                                },
                                "peak_max": {
                                    "bytes": 3145728
                                },
                                "used": {
                                    "bytes": 3145728
                                }
                            },
                            "young": {
                                "max": {
                                    "bytes": 25165824
                                },
                                "peak": {
                                    "bytes": 25165824
                                },
                                "peak_max": {
                                    "bytes": 25165824
                                },
                                "used": {
                                    "bytes": 21071064
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "metricset": {
        "host": "elasticsearch:9200",
        "module": "elasticsearch",
        "name": "node_stats",
        "namespace": "node.stats",
        "rtt": 115
    }
}