Mysql Exporter is used to expose metrics from a running mysql/mariadb server. The type of metrics exposed is controlled by the exporter and expressed in values.yaml file.
!!! note
To deploy metric exporters you will first need to deploy the Prometheus Operator, see: ([Deploy Prometheus](/genestack/prometheus.html)).
First create secret containing password for monitoring user
kubectl --namespace openstack \
create secret generic mariadb-monitoring \
--type Opaque \
--from-literal=username="monitoring" \
--from-literal=password="$(< /dev/urandom tr -dc _A-Za-z0-9 | head -c${1:-64};echo;)"
Next, install the exporter
bin/install-chart.sh prometheus-mysql-exporter
!!! success If the installation is successful, you should see the exporter pod in the openstack namespace.