---
title: "Prometheus text exposition"
method: GET
path: "/metrics"
tags: ["ops"]
---

# Prometheus text exposition

`GET /metrics`

Open by default so Prometheus scrapers and k8s tooling can hit it
without a bearer token. Operators may opt into a bearer-token gate
by setting `TENSOR_WASM_API_METRICS_TOKEN`; when that env var is set
the endpoint requires `Authorization: Bearer <token>` and returns
`401` otherwise.

## Response `200`

Prometheus 0.0.4 text exposition

## Other responses

- `401` — Missing or unrecognised bearer token
- `429` — Per-token QPS + burst exceeded. The `Retry-After` header carries the wait in integer seconds (RFC 9110 §10.2.3).

---

[API](https://skmtc.dev/craton-co/apis/tensorwasm-http-api.md) · [All operations](https://skmtc.dev/craton-co/apis/tensorwasm-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/craton-co/tensorwasm-http-api/revisions/d363e13d8640/schema)
