# Integration with IONOS Telemetry API

The Telemetry API is an API that allows you to interact with the <code class="expression">space.vars.ionos\_cloud</code> Telemetry service, and it is compatible with Prometheus specifications.

The Telemetry API allows retrieval of instance metrics; it is a read-only API and does not support any write operations. Although the Prometheus specification contains many more API resources and operations, the Telemetry API selectively supports the following GET operations at the moment:

```bash
/api/v1/label
/api/v1/query
/api/v1/query_range
/api/v1/metadata
/api/v1/series
```

## Integration with IONOS CLOUD Telemetry API

The managed Grafana in the Logging Service comes with a pre-configured datasource for the Telemetry API called <code class="expression">space.vars.ionos\_cloud</code> **Telemetry**. You can use this datasource to query metrics from the <code class="expression">space.vars.ionos\_cloud</code> Telemetry API using the `GET` HTTP method.

### Authentication

The Telemetry API uses the same authentication as the <code class="expression">space.vars.ionos\_cloud</code> API. You can use the same API token to authenticate with the Telemetry API. This means you need to update the <code class="expression">space.vars.ionos\_cloud</code> Telemetry datasource with your API token:

```bash
Header: Authorization Value: Bearer <TOKEN>
```

Follow the instructions in [<mark style="color:blue;">Create new tokens</mark>](https://api.ionos.com/docs/authentication/v1/#tag/tokens/operation/tokensGenerate) to generate a token.

![Logging service telemetry API Grafana](/files/RHzBkmO7I3RAPT0wGxyV)

Once the header is configured, select **Save & test**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/cloud/observability/logging-service/api-how-tos/telemetry-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
