Example metric documentsedit

This example shows what metric documents can look like when indexed in Elasticsearch:

[
    {
        "@timestamp": "2017-05-30T18:53:41.364Z",
        "agent": {
            "name": "elastic-node",
            "version": "3.14.0"
        },
        "ecs": {
            "version": "1.10.0"
        },
        "event": {
            "ingested": "2020-04-22T14:55:05.425020Z"
        },
        "go": {
            "memstats": {
                "heap": {
                    "sys": {
                        "bytes": 6520832.0
                    }
                }
            }
        },
        "host": {
            "ip": "127.0.0.1"
        },
        "labels": {
            "tag1": "one",
            "tag2": 2
        },
        "metricset.name": "app",
        "observer": {
            "ephemeral_id": "8785cbe1-7f89-4279-84c2-6c33979531fb",
            "hostname": "ix.lan",
            "id": "b0cfe4b7-76c9-4159-95ff-e558db368cbe",
            "type": "apm-server",
            "version": "8.0.0",
            "version_major": 8
        },
        "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"
        }
    },
    {
        "@timestamp": "2017-05-30T18:53:41.366Z",
        "agent": {
            "name": "elastic-node",
            "version": "3.14.0"
        },
        "ecs": {
            "version": "1.10.0"
        },
        "event": {
            "ingested": "2020-09-08T15:57:10.396695Z"
        },
        "host": {
            "ip": "127.0.0.1"
        },
        "labels": {
            "tag1": "one",
            "tag2": 2
        },
        "metricset.name": "app",
        "observer": {
            "ephemeral_id": "2f30050f-81e6-491a-a54f-e7d94eec17b5",
            "hostname": "simmac.net",
            "id": "02f6cb38-c1ce-4382-9478-4c8b4cdbda9c",
            "type": "apm-server",
            "version": "8.0.0",
            "version_major": 8
        },
        "process": {
            "pid": 1234
        },
        "processor": {
            "event": "metric",
            "name": "metric"
        },
        "service": {
            "language": {
                "name": "ecmascript"
            },
            "name": "1234_service-12a3",
            "node": {
                "name": "node-1"
            }
        },
        "system": {
            "process": {
                "cgroup": {
                    "memory": {
                        "mem": {
                            "limit": {
                                "bytes": 2048
                            },
                            "usage": {
                                "bytes": 1024
                            }
                        }
                    }
                }
            }
        },
        "user": {
            "email": "user@mail.com",
            "id": "axb123hg",
            "name": "logged-in-user"
        }
    },
    {
        "@timestamp": "2017-05-30T18:53:41.366Z",
        "agent": {
            "name": "elastic-node",
            "version": "3.14.0"
        },
        "ecs": {
            "version": "1.10.0"
        },
        "event": {
            "ingested": "2020-09-08T15:57:10.396695Z"
        },
        "host": {
            "ip": "127.0.0.1"
        },
        "labels": {
            "tag1": "one",
            "tag2": 2
        },
        "metricset.name": "app",
        "observer": {
            "ephemeral_id": "2f30050f-81e6-491a-a54f-e7d94eec17b5",
            "hostname": "simmac.net",
            "id": "02f6cb38-c1ce-4382-9478-4c8b4cdbda9c",
            "type": "apm-server",
            "version": "8.0.0",
            "version_major": 8
        },
        "process": {
            "pid": 1234
        },
        "processor": {
            "event": "metric",
            "name": "metric"
        },
        "service": {
            "language": {
                "name": "ecmascript"
            },
            "name": "1234_service-12a3",
            "node": {
                "name": "node-1"
            }
        },
        "system": {
            "process": {
                "cgroup": {
                    "cpu": {
                        "cfs": {
                            "period": {
                                "us": 1024
                            },
                            "quota": {
                                "us": 2048
                            }
                        },
                        "id": 2048,
                        "stats": {
                            "periods": 2048,
                            "throttled": {
                                "ns": 2048,
                                "periods": 2048
                            }
                        }
                    },
                    "cpuacct": {
                        "id": 2048,
                        "total": {
                            "ns": 2048
                        }
                    }
                }
            }
        },
        "user": {
            "email": "user@mail.com",
            "id": "axb123hg",
            "name": "logged-in-user"
        }
    },
    {
        "@timestamp": "2017-05-30T18:53:41.366Z",
        "_doc_count": 6,
        "agent": {
            "name": "elastic-node",
            "version": "3.14.0"
        },
        "ecs": {
            "version": "1.10.0"
        },
        "event": {
            "ingested": "2020-09-08T15:57:10.396695Z"
        },
        "host": {
            "ip": "127.0.0.1"
        },
        "labels": {
            "tag1": "one",
            "tag2": 2
        },
        "latency_distribution": {
            "counts": [
                1,
                2,
                3
            ],
            "values": [
                1.1,
                2.2,
                3.3
            ]
        },
        "metricset.name": "app",
        "observer": {
            "ephemeral_id": "2f30050f-81e6-491a-a54f-e7d94eec17b5",
            "hostname": "simmac.net",
            "id": "02f6cb38-c1ce-4382-9478-4c8b4cdbda9c",
            "type": "apm-server",
            "version": "8.0.0",
            "version_major": 8
        },
        "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"
        }
    },
    {
        "@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,
        "ecs": {
            "version": "1.10.0"
        },
        "event": {
            "ingested": "2020-04-22T14:55:05.368308Z"
        },
        "float_gauge": 9.16,
        "host": {
            "ip": "127.0.0.1"
        },
        "integer_gauge": 42767,
        "labels": {
            "code": 200,
            "some": "abc",
            "success": true,
            "tag1": "one",
            "tag2": 2
        },
        "long_gauge": 3147483648.0,
        "metricset.name": "span_breakdown",
        "negative": {
            "d": {
                "o": {
                    "t": {
                        "t": {
                            "e": {
                                "d": -1022
                            }
                        }
                    }
                }
            }
        },
        "observer": {
            "ephemeral_id": "8785cbe1-7f89-4279-84c2-6c33979531fb",
            "hostname": "ix.lan",
            "id": "b0cfe4b7-76c9-4159-95ff-e558db368cbe",
            "type": "apm-server",
            "version": "8.0.0",
            "version_major": 8
        },
        "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"
        }
    }
]