New

The executive guide to generative AI

Read more

Metricsedit

Metrics contain application metric data captured by an APM agent.

Metric Schemaedit

APM Server uses JSON Schema to validate requests. The specification for metrics is defined on GitHub and included below:

{
    "$id": "docs/spec/metricsets/metricset.json",
    "type": "object",
    "description": "Data captured by an agent representing an event occurring in a monitored service",
    "allOf": [
        { "$ref": "../timestamp_epoch.json"},
        { "$ref": "../span_type.json" },
        { "$ref": "../span_subtype.json" },
        { "$ref": "../transaction_name.json" },
        { "$ref": "../transaction_type.json" },
        {
            "properties": {
                "samples": {
                    "type": [
                        "object"
                    ],
                    "description": "Sampled application metrics collected from the agent.",
                    "patternProperties": {
                        "^[^*\"]*$": {
                            "$ref": "sample.json"
                        }
                    },
                    "additionalProperties": false
                },
                "tags": {
                    "$ref": "../tags.json"
                }
            },
            "required": ["samples"]
        }
    ]
}

On this page

Was this helpful?
Feedback