This interface layer handles communication with MySQL via the mysql-monitor
interface protocol.
The mysql-monitor
interface is meant to be used with granted SELECT
and
SHOW VIEW
privileges to every database and table for a MySQL user. This mean
that user will have only read access and could collect all metrics.
To consume this interface in your charm or layer, add the following to
layer.yaml
:
includes: ["interface:mysql-monitor"]