---
title: "Stop metrics collection"
method: POST
path: "/metrics/stop/{id}"
tags: ["Host Metrics"]
---

# Stop metrics collection

`POST /metrics/stop/{id}`

Stops metrics collection for a specific host and cleans up the SSH session.

## Path parameters

- `id` integer, required

## Request body

- object
  - `viewerSessionId` string

## Response `200`

Metrics collection stopped successfully.

## Other responses

- `401` — Session expired - please log in again.
- `500` — Failed to stop metrics collection.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
