---
title: "Get a Deployment Metrics"
method: GET
path: "/v1/metrics/deployment/{request_id}"
tags: ["Metrics"]
---

# Get a Deployment Metrics

`GET /v1/metrics/deployment/{request_id}`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/metrics/deployment/{request_id}`
- Auth: API key in header `authorization`

Get the metrics for a specific deployment based on the ```start_time```, ```end_time``` and ```steps```. ```raw``` parameter can be set to true to get the raw data.

## Query parameters

- `start_time` string
- `end_time` string
- `steps` string
- `raw` string

## Response `200`

Success

- MetricsResponse
  - `total` TotalMetricsModel
    - `receive_total` MetricsModel
      - `labels` string[]
      - `datasets` number[]
      - `timestamps` string[]
    - `transmit_total` MetricsModel
      - `labels` string[]
      - `datasets` number[]
      - `timestamps` string[]
    - `disk_read_total` MetricsModel
      - `labels` string[]
      - `datasets` number[]
      - `timestamps` string[]
    - `disk_write_total` MetricsModel
      - `labels` string[]
      - `datasets` number[]
      - `timestamps` string[]
  - `cpu` MetricsModel
    - `labels` string[]
    - `datasets` number[]
    - `timestamps` string[]
  - `cpu_throttle_rate` MetricsModel
    - `labels` string[]
    - `datasets` number[]
    - `timestamps` string[]
  - `cpu_throttle_total` MetricsModel
    - `labels` string[]
    - `datasets` number[]
    - `timestamps` string[]
  - `mem` MetricsModel
    - `labels` string[]
    - `datasets` number[]
    - `timestamps` string[]
  - `network` NetworkMetricsModel
    - `receive` MetricsModel
      - `labels` string[]
      - `datasets` number[]
      - `timestamps` string[]
    - `transmit` MetricsModel
      - `labels` string[]
      - `datasets` number[]
      - `timestamps` string[]

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
