Prometheus collector metricset

edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Prometheus collector metricset

edit

The Prometheus collector metricset fetches data from prometheus exporters.

All events with the same labels are grouped together as one event. The fields exported by this metricset vary depending on the Prometheus exporter that you’re using.

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"
    },
    "metricset": {
        "host": "prometheus:9090",
        "module": "prometheus",
        "name": "collector",
        "namespace": "collector",
        "rtt": 115
    },
    "prometheus": {
        "collector": {
            "label": {
                "event": "add",
                "role": "node"
            },
            "prometheus_sd_kubernetes_events_total": {
                "value": 0
            }
        }
    }
}