# 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.
