Metrics
The Cennso Database extension uses the Prometheus MySQL Server ExporterOpens in a new tab 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 variablesglobal_variables- collects MySQL server configuration variablesengine_innodb_status- collects InnoDB storage engine metricsslave_status- collects replication status informationbinlog_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 documentationOpens in a new tab in the mysqld_exporter repository.
For more information on how to enable and configure the metrics collector, see the Enable metrics collector 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 document.