---
title: "Prometheus metrics"
method: GET
path: "/metrics"
tags: ["Health"]
---

# Prometheus metrics

`GET /metrics`

## Request

- Base URL: `https://market-api.metadao.fi`
- URL: `https://market-api.metadao.fi/metrics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/metadao/apis/futarchy-external-api/docs/metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Prometheus text exposition format. When the server sets `METRICS_TOKEN`, requests must send `Authorization: Bearer <METRICS_TOKEN>` (401 otherwise); the endpoint is open only when `METRICS_TOKEN` is unset.

## Response `200`

Metrics.

## Other responses

- `401`: Unknown `X-API-Key` (`INVALID_API_KEY`), or missing/invalid metrics bearer token on `/metrics`.
- `429`: Rate limit exceeded (`RATE_LIMITED`).
- `500`: Metrics could not be generated (plain-text body).
- `503`: A dependency is unavailable or its data is stale (e.g. `SERVED_DB_UNAVAILABLE`, `SERVED_DATA_STALE`) or the request timed out (`REQUEST_TIMEOUT`). Retry later.

---

[API](https://skmtc.dev/metadao/apis/futarchy-external-api.md) - [All operations](https://skmtc.dev/metadao/apis/futarchy-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metadao/apis/futarchy-external-api/revisions/27b09f0a2750?raw)
