# Get Export Endpoint Metrics

`GET /api/2.0/serving-endpoints/{name}/metrics`

Retrieves the metrics associated with the provided serving endpoint in either Prometheus or OpenMetrics exposition format.

API scopes: model-serving

## Path parameters

- `name` (string, optional)
  The name of the serving endpoint to retrieve metrics for. This field is required.
  Constraints: `[ 1 .. 63 ] characters`

## Returns

- `contents` (string, optional)

## Response

```json
{
  "contents": "string"
}
```

