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,
                "tag1": "one",
                "tag2": 2
            },
            "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",
                "node": {
                    "name": "node-1"
                }
            },
            "short_counter": 227,
            "span": {
                "self_time": {
                    "count": 1,
                    "sum": {
                        "us": 633.288
                    }
                },
                "subtype": "mysql",
                "type": "db"
            },
            "transaction": {
                "breakdown": {
                    "count": 12
                },
                "duration": {
                    "count": 2,
                    "sum": {
                        "us": 12
                    }
                },
                "name": "GET /",
                "self_time": {
                    "count": 2,
                    "sum": {
                        "us": 10
                    }
                },
                "type": "request"
            },
            "user": {
                "email": "user@mail.com",
                "id": "axb123hg",
                "name": "logged-in-user"
            }
        },
        {
            "@timestamp": "2018-08-01T10:00:00Z",
            "agent": {
                "name": "elastic-node",
                "version": "3.14.0"
            },
            "go": {
                "memstats": {
                    "heap": {
                        "sys": {
                            "bytes": 6520832
                        }
                    }
                }
            },
            "labels": {
                "tag1": "one",
                "tag2": 2
            },
            "process": {
                "pid": 1234
            },
            "processor": {
                "event": "metric",
                "name": "metric"
            },
            "service": {
                "language": {
                    "name": "ecmascript"
                },
                "name": "1234_service-12a3",
                "node": {
                    "name": "node-1"
                }
            },
            "user": {
                "email": "user@mail.com",
                "id": "axb123hg",
                "name": "logged-in-user"
            }
        }
    ]
}