> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/cennso-db/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/cennso-db/latest/observability/metrics.md).

# Metrics

The Cennso Database extension uses the [Prometheus MySQL Server Exporter](https://github.com/percona/mysqld_exporter) to collect and expose metrics from deployed MySQL database instances.

The `mysqld_exporter` provides different metric collectors, each responsible for gathering specific categories of data. The exporter does not enable any collector by default, so the Cennso Database extension enables the following collectors:

- `global_status` - collects MySQL global status variables
- `global_variables` - collects MySQL server configuration variables
- `engine_innodb_status` - collects InnoDB storage engine metrics
- `slave_status` - collects replication status information
- `binlog_size` - collects binary log size and statistics

You can enable or disable collectors using the **spec.metricsExporter.collectors** configuration option. Setting this option replaces the list above, so the collectors that you do not set are disabled. The Grafana dashboard requires the `global_status`, `global_variables`, `slave_status`, and `binlog_size` collectors, so disabling any of them leaves some dashboard panels empty.

For a complete list of available collectors and their descriptions, see the [collector flags documentation](https://github.com/percona/mysqld_exporter/blob/pmm-3.6.0/README.md#collector-flags) in the `mysqld_exporter` repository.

For more information on how to enable and configure the metrics collector, see the [Enable metrics collector](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database-observability.md) deployment guide.

## Grafana dashboard

The Cennso Database extension provides a default Grafana dashboard that visualizes the collected metrics. For more information about the available dashboard panels and their interpretation, see the [Grafana dashboard](https://docs.cennso.com/cennso/cennso-db/latest/observability/dashboard.md) document.
