> ## 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.

# Prometheus Metrics

> Prometheus text exposition format metrics.

Prometheus text exposition format metrics.

### Response

Returns `string`.

<Note>
  The spec this page is generated from declares this response as an untyped object — the server
  returns JSON, but its shape is not published. Read a live response to see the fields; treat any
  field you find as unversioned until the spec names it.
</Note>

### Status codes

| Code  | Meaning                      |
| ----- | ---------------------------- |
| `200` | Prometheus exposition format |
| `401` | Authentication required      |
| `404` | Prometheus not installed     |
| `422` | Validation error             |
| `429` | Rate limit exceeded          |

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

<ResponseExample>
  ```json 200 theme={null}
  "string"
  ```
</ResponseExample>
