# Metrics with Mimir

DuploCloud's Advanced Observability Suite (AOS) metrics pipeline leverages [AWS CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html) for capturing critical metrics such as CPU utilization, memory usage, and Lambda execution times, [Grafana Mimir](https://grafana.com/oss/mimir/) as the backend for scalable and high-availability metrics storage, [Grafana](https://grafana.com/) as the visualization tool for intuitive dashboard creation, and [Grafana Alloy](https://grafana.com/docs/alloy/latest/) for bundling tools like Beyla and OpenTelemetry SDKs to collect metrics from applications and infrastructure. Out-of-the-box metrics combine with custom application-level metrics, to create unified dashboards that correlate infrastructure and application performance for a comprehensive view of system health.

## About RED Metrics

RED metrics (Rate, Errors, Duration) are critical for monitoring and understanding the health and performance of distributed systems and microservices. When integrated into a Grafana dashboard using [OpenTelemetry](https://opentelemetry.io/), they provide essential insights for diagnosing issues and optimizing performance, such as:

* **Rate**: Tracks the number of requests per second, indicating the system's throughput. A sudden drop can highlight service degradation or bottlenecks.
* **Errors**: Measures the percentage or count of requests that fail. This helps quickly identify stability issues or breaking changes in your service.
* **Duration**: Monitors the time to process requests, providing insights into system latency. High durations can indicate inefficiencies or resource constraints.

## Displaying Metrics in the DuploCloud Advanced Observability Suite (AOS)

1. In the DuploCloud Portal, navigate to **Administrator** -> **Observability** -> **Advanced** -> **Dashboard** (Administrator AOS Dashboard) **or Observability** -> **Advanced** -> **Dashboard** (Tenant AOS Dashboard). The AOS Dashboard displays.
2. Select your Infrastructure from the **Infrastructure** list box (Administrator AOS Dashboard) or **Tenant** from the Tenant list box (Tenant AOS Dashboard).
3. Click the **Metrics** card button. The Grafana **APM** -> **RED Metrics** Dashboard displays. The graphic below shows the **RED** (Request, Error, Duration) Dashboard.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F3aLOVyarE8yV1fBsXYIh%2Fimage.png?alt=media&#x26;token=59256128-5985-4618-ac75-12b76ded979b" alt=""><figcaption><p>The <strong>Beyla RED Metrics</strong> Dashboard</p></figcaption></figure>

## Exploring Detailed Metrics

From the Grafana **Beyla RED** Dashboard, navigate to Grafana **Dashboards** in the left pane. Various out-of-box metrics and visualizations are available to you without creating specific queries.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FQCa8Ct3nRgHdw06KAR7D%2Fmetrics2_k8s.png?alt=media&#x26;token=583686a8-c74c-4e00-b385-14c290ffdb60" alt=""><figcaption><p>Grafana <strong>Dashboards</strong> page.</p></figcaption></figure>

For example, by selecting **K8s Resource Monitoring** from the **Dashboards** page, you can view numerous Kubernetes widgets depicting resource usage of Kubernetes Pods and containers, among other helpful performance data.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F6WNYoU0pxKtYAcCa4bkL%2Fk8s-cluster.png?alt=media&#x26;token=da83c832-c900-4f54-a9a5-a5de8997c125" alt=""><figcaption><p>The Grafana dashboard displaying compute resource information for a K8s cluster</p></figcaption></figure>

Click the **Add** button and select from the displayed list to add additional customizations and visualizations to a dashboard.
