---
title: "Export metrics in Prometheus text format (default) or OpenMetrics format for scraping."
method: GET
path: "/projects/{project_id}/metrics/scrape"
tags: ["Observability"]
---

# Export metrics in Prometheus text format (default) or OpenMetrics format for scraping.

`GET /projects/{project_id}/metrics/scrape`

This endpoint proxies to VictoriaMetrics /federate endpoint and returns metrics
in Prometheus text exposition format for scraping by external monitoring systems.

Supports filtering by:
metric_name: Filter by metric name(s). Supports comma-separated values (e.g., metric_name=http_requests_total,http_response_time)
metric_category: Filter by 'system' (Crusoe-collected) or 'custom' (user-defined) metrics
labels: Filter by label key:value pairs. Supports comma-separated values (e.g., labels=job:api,region:us-east)

Internal metrics and provisioned throughput metrics are always excluded.

Rate limited to 10 requests per minute per project.
Response limited to 50MB payload and 100,000 time series.
Responses are cached for up to 1 minute.

## Path parameters

- `project_id` string, required

## Query parameters

- `metric_name` string[]
- `metric_category` 'system' | ' custom'
- `labels` string[]
- `compress` string
- `format` 'prometheus' | 'openmetrics'

## Response `200`

## Other responses

- `400` — Error Bad Request
- `401` — Error Authentication Failed
- `403` — Error Permissions
- `429` — Error Rate Limit Exceeded
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/versions/a3fd2dedc72b/schema)
