---
title: "Get a job's metrics"
---

> Documentation Index
> Fetch the complete documentation index at: https://www.arroyo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a job's metrics

Path: Arroyo REST API › jobs

`GET /v1/pipelines/{pipeline_id}/jobs/{job_id}/operator_metric_groups`

URL: `http://localhost:5115/api/v1/pipelines/{pipeline_id}/jobs/{job_id}/operator_metric_groups`

## Path parameters

- `pipeline_id` (`get_operator_metric_groups.path.pipeline_id`; string, required) — Pipeline id
- `job_id` (`get_operator_metric_groups.path.job_id`; string, required) — Job id

## Code samples

### cURL

```bash
curl --request GET \
  --url 'http://localhost:5115/api/v1/pipelines/<pipeline_id>/jobs/<job_id>/operator_metric_groups'
```

### TypeScript

```typescript
const url = 'http://localhost:5115/api/v1/pipelines/<pipeline_id>/jobs/<job_id>/operator_metric_groups';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "http://localhost:5115/api/v1/pipelines/<pipeline_id>/jobs/<job_id>/operator_metric_groups"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Got metric groups

#### Example

```json
{
  "data": [
    {
      "metric_groups": [
        {
          "name": "bytes_recv",
          "subtasks": [
            {
              "index": 0,
              "metrics": [
                {}
              ]
            }
          ]
        }
      ],
      "node_id": 0
    }
  ]
}
```

- `data` (`get_operator_metric_groups.response.200.data`; array of object, required)
  - `metric_groups` (`get_operator_metric_groups.response.200.data.metric_groups`; array of object, required)
    - `name` (`get_operator_metric_groups.response.200.data.metric_groups.name`; string, required)
      - one of `"bytes_recv"`, `"bytes_sent"`, `"messages_recv"`, `"messages_sent"`, `"backpressure"`, `"tx_queue_size"`, `"tx_queue_rem"`
    - `subtasks` (`get_operator_metric_groups.response.200.data.metric_groups.subtasks`; array of object, required)
      - `index` (`get_operator_metric_groups.response.200.data.metric_groups.subtasks.index`; integer, required)
        - format: `int32` · minimum: `0`
      - `metrics` (`get_operator_metric_groups.response.200.data.metric_groups.subtasks.metrics`; array of object, required)
        - `time` (`get_operator_metric_groups.response.200.data.metric_groups.subtasks.metrics.time`; integer, required)
          - format: `int64` · minimum: `0`
        - `value` (`get_operator_metric_groups.response.200.data.metric_groups.subtasks.metrics.value`; number, required)
          - format: `double`
  - `node_id` (`get_operator_metric_groups.response.200.data.node_id`; integer, required)
    - format: `int32` · minimum: `0`


Source: https://www.arroyo.dev/docs/api/get-operator-metric-groups/index.md
