---
title: "List what reports metrics"
url: https://xovris.ai/docs/api/operations/getmetricsentities/
---

# List what reports metrics

`GET /v1/metrics/entities`

Lists every host, container and service that sent metrics in the window - `since` and `until` as ISO times, the last day when neither is sent. With nothing reporting yet, the answer says so in words with the step that fills it: install the Xovris agent on a server, point any OpenTelemetry collector at /v1/otlp/v1/metrics, or add /v1/prometheus/write as a remote_write in your own Prometheus, and each one appears within a minute. A window in any other form is refused with `bad_window`, saying what to send.

A token that can read is enough.

## Answers

- `200`: Done. (application/json: T1fdaa89e828b)
- `401`: Not signed in: the token is missing, expired or revoked. The answer says how to get a new one. (application/json: Problem)
- `403`: Signed in, but this token or role may not do this. The answer names the permission it needs. (application/json: Problem)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Any other refusal or failure. The answer says what happened and what to do next. (application/json: Problem)

## A call

The address is https://api.xovris.ai/v1/metrics/entities - put your own value in place of each part in braces.

```sh
curl --request GET \
  --url 'https://api.xovris.ai/v1/metrics/entities' \
  --header 'Authorization: Bearer <token>'
```
