Metric Indicesedit

By default, metrics are stored to indices of the format apm-[version]-metric-[date].

Example Documentsedit

Here’s what a metric document looks like when indexed in Elasticsearch:

{
    "events": [
        {
            "@timestamp": "2017-05-30T18:53:42.281Z",
            "agent": {
                "name": "elastic-node",
                "version": "3.14.0"
            },
            "byte_counter": 1,
            "dotted": {
                "float": {
                    "gauge": 6.12
                }
            },
            "double_gauge": 3.141592653589793,
            "float_gauge": 9.16,
            "integer_gauge": 42767,
            "labels": {
                "code": 200,
                "some": "abc",
                "success": true
            },
            "long_gauge": 3147483648,
            "negative": {
                "d": {
                    "o": {
                        "t": {
                            "t": {
                                "e": {
                                    "d": -1022
                                }
                            }
                        }
                    }
                }
            },
            "process": {
                "pid": 1234
            },
            "processor": {
                "event": "metric",
                "name": "metric"
            },
            "service": {
                "language": {
                    "name": "ecmascript"
                },
                "name": "1234_service-12a3"
            },
            "short_counter": 227,
            "user": {
                "email": "user@mail.com",
                "id": "axb123hg",
                "name": "logged-in-user"
            }
        },
        {
            "@timestamp": "2017-05-30T18:53:42.281Z",
            "agent": {
                "name": "elastic-node",
                "version": "3.14.0"
            },
            "go": {
                "memstats": {
                    "heap": {
                        "sys": {
                            "bytes": 6520832
                        }
                    }
                }
            },
            "process": {
                "pid": 1234
            },
            "processor": {
                "event": "metric",
                "name": "metric"
            },
            "service": {
                "language": {
                    "name": "ecmascript"
                },
                "name": "1234_service-12a3"
            },
            "user": {
                "email": "user@mail.com",
                "id": "axb123hg",
                "name": "logged-in-user"
            }
        }
    ]
}