---
title: "Get job metrics"
method: GET
path: "/v1/projects/{projectId}/jobs/{jobId}/metrics"
tags: ["Jobs", "project"]
---

# Get job metrics

`GET /v1/projects/{projectId}/jobs/{jobId}/metrics`

## Request

- Base URL: `https://placeholder/v1`
- URL: `https://placeholder/v1/v1/projects/{projectId}/jobs/{jobId}/metrics`
- Auth: none required
- TypeScript: <https://skmtc.dev/northflank/apis/northflank-api/docs/v1/projects/:projectId/jobs/:jobId/metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Get metrics for a job

## Path parameters

- `projectId` string, required: ID of the project
- `jobId` string, required: ID of the job

## Query parameters

- `runId` string: Limits metrics to a specific job run id.
- `containerName` string: Limits metrics to a specific container.
- `queryType` 'range' | 'single': Selects metrics for specified timestamp.
- `metricTypes` 'cpu' | 'memory' | 'networkIngress' | 'networkEgress' | 'tcpConnectionsOpen' | 'diskUsage' | 'requests' | 'http4xxResponses' | 'http5xxResponses' | 'bandwidth' | 'bandwidthVolume': Type of metric. Multiple metric types can be selected by specifying the query parameter repeatedly.
- `startTime` string, date-time: Fetch metrics generated after this timestamp. Only valid for queryType: `range`.
- `endTime` string, date-time: Fetch metrics generated before this timestamp. Only valid for queryType: `range`.
- `duration` integer: Range duration in seconds. If set, only one of `startTime` or `endTime` can be set.
- `time` string, date-time: Fetch metrics at this timestamp. If not provided will use current time. Only valid for queryType: `single`.

## Response `200`

List of metrics values

---

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