---
title: "Get Graph Metrics"
method: GET
path: "/v1/graphs/{graph_id}/metrics"
tags: ["Usage"]
---

# Get Graph Metrics

`GET /v1/graphs/{graph_id}/metrics`

## Request

- Base URL: `https://api.robosystems.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robosystems.ai/v1/graphs/{graph_id}/metrics`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Path parameters

- `graph_id` string, required

## Response `200`

Successful Response

- GraphMetricsResponse: Response model for graph metrics.
  - `graph_id` string, required: Graph database identifier
  - `graph_name` string, nullable: Display name for the graph
  - `user_role` string, nullable: User's role in this graph
  - `timestamp` string, required: Metrics collection timestamp
  - `total_nodes` integer, required: Total number of nodes
  - `total_relationships` integer, required: Total number of relationships
  - `node_counts` object, required: Node counts by label
  - `relationship_counts` object, required: Relationship counts by type
  - `storage` object, required: Measured on-disk storage: total_bytes/kb/mb/gb plus itemized `items` (graph, memory, subgraph, vectors, staging). Carries `error` instead if the instance could not be reached — the fields are absent rather than estimated.
  - `health_status` object, required: Database health information

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Access denied
- `404`: Resource not found
- `422`: Validation Error
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/robosystems/apis/robosystems-api.md) · [All operations](https://skmtc.dev/robosystems/apis/robosystems-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robosystems/apis/robosystems-api/revisions/e661e2d5ca6a?raw)
