# Log Usage Reporter

## Overview

The Usage Reporter gathers two usage numbers for every logging pipeline you have configured and sends them to the Mimir data source in your Grafana Dashboard.

### Benefits

* **Visibility:** See per-pipeline bytes and record counts in Grafana for quick monitoring and investigation.
* **Alerting & optimization:** Use the metrics for setting alerts and optimizing ingestion.

**Metrics**

| **Metric**                      | **Type** | **Scope**            | **Description**                                               |
| ------------------------------- | -------- | -------------------- | ------------------------------------------------------------- |
| `ionos_usage_logs_bytes_total`  | counter  | per logging pipeline | Bytes sent by the logging pipeline                            |
| `ionos_usage_logs_counts_total` | counter  | per logging pipeline | The number of log records each pipeline ingested successfully |

{% hint style="info" %}
The metrics value is the current state of the injestion that is sent every 5 minutes to your Grafana dashboard.
{% endhint %}

As the `ionos_usage_logs_bytes_total` and `ionos_usage_logs_counts_total` metrics are shown per pipeline, the label pipeline\_id="\<your‑pipeline‑uuid>" lets you separate the values in Grafana.

## View the metrics

In your Grafana dashboard, go to **Explore** → select **Mimir** as the datasource. Select `ionos_usage_logs_bytes_total` or `ionos_usage_logs_counts_total` from the **Metric** drop-down list and click **Run query** to view the metrics.


---

# 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/overview/logging-usage-reporter.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.
