---
title: "Get Metrics for a VPS instance"
method: GET
path: "/vps/{deviceId}/metrics"
tags: ["VPS"]
---

# Get Metrics for a VPS instance

`GET /vps/{deviceId}/metrics`

## Query parameters

- `endTime` integer
- `imageHeight` integer
- `imageWidth` integer
- `metricType` string, required
- `startTime` integer

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- VPSMetricsResponse
  - `endTime` integer — Actual End Time for Chart Data.
  - `imageData` string — Base64 encoded Image Data.
  - `metricType` string — The Metric Type requested.
  - `startTime` integer — Actual Start Time for Chart Data.

## Other responses

- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.

---

[API](https://skmtc.net/hivelocity/apis/hivelocity-api.md) · [All operations](https://skmtc.net/hivelocity/apis/hivelocity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hivelocity/hivelocity-api/versions/ee6b717b5015/schema)
