# Metric Usage Reporter

## Overview

The Metric Usage Reporter gathers one usage number per contract and sends them to the Mimir data source in your Grafana Dashboard.

## Benefits

* **Historical view:** See ingestion trends per contract over days, weeks, or months directly in the Grafana dashboards you already own.
* **Cost awareness:** Track usage to estimate costs and detect unexpected spikes.
* **Capacity planning:** Spot spikes early and forecast future storage or query‑load needs.
* **Self‑service:** No need to open tickets; the data lives in a Grafana dashboard that you already have.
* **Alert‑ready:** The counter can be used as a reliable source for automated alerts on abnormal usage.

**Metrics**

| **Metric**                             | **Type** | **Scope**     | **Description**                                                        |
| -------------------------------------- | -------- | ------------- | ---------------------------------------------------------------------- |
| `ionos_usage_metrics_ingested_samples` | counter  | contract-wide | Number of samples (time‑series points) ingested for the last 5 minutes |

## View the metric

In your Grafana dashboard, go to **Explore** → select **Mimir** as the datasource.

Select `ionos_usage_metrics_ingested_samples` 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/monitoring-service/overview/metrics-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.
