---
title: "Get project metrics"
method: GET
path: "/v1/orgs/{orgId}/projects/{projectId}/metrics"
tags: ["Projects"]
---

# Get project metrics

`GET /v1/orgs/{orgId}/projects/{projectId}/metrics`

## Request

- Base URL: `https://api.spice.ai`
- URL: `https://api.spice.ai/v1/orgs/{orgId}/projects/{projectId}/metrics`
- Auth: HTTP bearer

The org is `orgId` in the path. Returns current resource utilization metrics (CPU, memory, disk I/O) and data ingestion metrics for a project.

## Path parameters

- `orgId` integer, required
- `projectId` integer, required

## Query parameters

- `window` string

## Headers

- `X-Org-Name` string

## Response `200`

Resource and ingestion metrics. Missing fields indicate no data is currently available. Individual metric queries may fail independently; partial results are returned when possible.

- object
  - `ingestion` object: Aggregated data ingestion metrics
    - `rows_ingested` number: Total rows ingested (without window) or rows per second (with window)
    - `bytes_ingested` number: Total bytes ingested (without window) or bytes per second (with window)
  - `cluster` object: Cluster metrics for the project
    - `active_executors_count` number: Number of active executors registered with the scheduler
  - `metrics` object: Resource metrics keyed by pod name

## Other responses

- `400`: Invalid project ID. orgId is not a valid org id (`invalid_org_id`), or X-Org-Name does not name that org (`org_path_mismatch`).
- `401`: Unauthorized
- `403`: Insufficient scope. The caller is not a member of the org (`org_forbidden`). A machine credential named a different org (`org_assertion_mismatch`). The org is deleted (`org_deleted`).
- `404`: Project or organization not found
- `422`: Organization is not fully configured
- `500`: Internal server error
- `503`: Metrics service unavailable

---

[API](https://skmtc.dev/spice/apis/spice-cloud-control-plane-api.md) - [All operations](https://skmtc.dev/spice/apis/spice-cloud-control-plane-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spice/apis/spice-cloud-control-plane-api/revisions/5f3b75dd847d?raw)
