> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get get metrics metrics jsons

> Get comprehensive system and performance metrics. Requires admin role.

Get comprehensive system and performance metrics. Requires admin role.

### Response

`DetailedMetricsResponse`

<ResponseField name="timestamp" type="string (date-time)">
  Metrics timestamp
</ResponseField>

<ResponseField name="system_metrics" type="object">
  System metrics
</ResponseField>

<ResponseField name="api_metrics" type="object">
  API metrics
</ResponseField>

<ResponseField name="performance_metrics" type="object">
  Performance metrics
</ResponseField>

<ResponseField name="security_metrics" type="object">
  Security metrics
</ResponseField>

<ResponseField name="cache_metrics" type="object">
  Cache metrics
</ResponseField>

### Status codes

| Code  | Meaning                        |
| ----- | ------------------------------ |
| `200` | Metrics retrieved successfully |
| `401` | Authentication required        |
| `403` | Insufficient permissions       |
| `422` | Validation error               |
| `429` | Rate limit exceeded            |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'http://localhost:8000/metrics/json' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "timestamp": "2026-08-31T14:22:05Z",
    "system_metrics": {},
    "api_metrics": {},
    "performance_metrics": {},
    "security_metrics": {},
    "cache_metrics": {}
  }
  ```
</ResponseExample>
