---
title: "Database and cache scenarios | Grafana Alloy documentation"
description: "Runnable scenarios that monitor databases and in-memory caches with Grafana Alloy"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Database and cache scenarios

The database and cache scenarios monitor a database or cache server and the workload running against it.

Expand table

| Scenario                                                                                                  | Description                                                                                                                                                                         |
|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Elasticsearch monitoring](https://github.com/grafana/alloy-scenarios/tree/main/elasticsearch-monitoring) | Monitor Elasticsearch cluster health, node status, and performance metrics.                                                                                                         |
| [Memcached monitoring](https://github.com/grafana/alloy-scenarios/tree/main/memcached-monitoring)         | Monitor Memcached instance metrics, including connections, memory usage, and command performance.                                                                                   |
| [Microsoft SQL Server monitoring](https://github.com/grafana/alloy-scenarios/tree/main/mssql-monitoring)  | Monitor SQL Server file sizes, batch requests, and connections with `prometheus.exporter.mssql`, plus app-specific metrics from a custom `query_config`.                            |
| [MongoDB monitoring](https://github.com/grafana/alloy-scenarios/tree/main/mongodb-monitoring)             | Monitor MongoDB op-counters, connection pool, and replica-set replication metrics with `prometheus.exporter.mongodb`. Runs a single-node replica set with an insert load generator. |
| [MySQL monitoring](https://github.com/grafana/alloy-scenarios/tree/main/mysql-monitoring)                 | Monitor MySQL database server metrics and performance indicators.                                                                                                                   |
| [PostgreSQL monitoring](https://github.com/grafana/alloy-scenarios/tree/main/postgres-monitoring)         | Monitor PostgreSQL transaction statistics, connections, and server configuration.                                                                                                   |
| [RabbitMQ monitoring](https://github.com/grafana/alloy-scenarios/tree/main/rabbitmq-monitoring)           | Monitor RabbitMQ queue, connection, and channel metrics plus broker container logs.                                                                                                 |
| [Redis monitoring](https://github.com/grafana/alloy-scenarios/tree/main/redis-monitoring)                 | Monitor Redis instance metrics, including connections, memory usage, and command throughput.                                                                                        |

Refer to the [alloy-scenarios](https://github.com/grafana/alloy-scenarios) repository for the full list of scenarios.
