v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Spans Metrics

Get a span-based metric

Get a specific span-based metric from your organization.

get/api/v2/apm/config/metrics/{metric_id}

Path parameters

metric_idstring required

The name of the span-based metric.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "compute": {
        "aggregation_type": "distribution",
        "path": "@duration"
      },
      "filter": {
        "query": "@http.status_code:200 service:my-service"
      },
      "group_by": [
        {
          "path": "resource_name",
          "tag_name": "resource_name"
        }
      ]
    },
    "id": "my.metric",
    "type": "spans_metrics"
  }
}