Chart version: 1.0.0
Api version: v1
App version: v0.12.1
A Helm chart for prometheus mysql exporter with cloudsqlproxy
Chart Type
Set me up:
helm repo add center
Install Chart:
helm install prometheus-mysql-exporter center/prometheus-community/prometheus-mysql-exporter
Versions (0)

Prometheus Mysql Exporter

A Prometheus exporter for MySQL metrics.

This chart bootstraps a Prometheus MySQL Exporter deployment on a Kubernetes cluster using the Helm package manager.

Get Repo Info

helm repo add prometheus-community
helm repo update

_See helm repo for command documentation._

Install Chart

# Helm 3
$ helm install [RELEASE_NAME] prometheus-community/prometheus-mysql-exporter

# Helm 2
$ helm install --name [RELEASE_NAME] prometheus-community/prometheus-mysql-exporter

See configuration below.

_See helm install for command documentation._

Uninstall Chart

# Helm 3
$ helm uninstall [RELEASE_NAME]

# Helm 2
# helm delete --purge [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

_See helm uninstall for command documentation._

_See helm upgrade for command documentation._

Upgrading Chart

# Helm 3 or 2
$ helm upgrade [RELEASE_NAME] [CHART] --install

To =< 1.0.0

Version 1.0.0 is a major update.

The simplest way to update is to do a force upgrade, which recreates the resources by doing a delete and an install.

helm upgrade prometheus-mysql-exporter prometheus-community/prometheus-mysql-exporter --force


See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart’s values.yaml, or run these configuration commands:

# Helm 2
$ helm inspect values prometheus-community/prometheus-mysql-exporter

# Helm 3
$ helm show values prometheus-community/prometheus-mysql-exporter

MySQL Connection

The exporter can connect to mysql directly or using the Cloud SQL Proxy.

  • To configure direct MySQL connection by value, set mysql.user, mysql.pass, and mysql.port (see additional options in the mysql configuration block)
  • To configure direct MySQL connnetion by secret, you must store a connection string in a secret, and set mysql.existingSecret to [SECRET_NAME]

Exporter Documentation and Params

Documentation for the MySQL Exporter can be found here: ( A mysql params overview can be found here: (

Collector Flags

Available collector flags can be found in the values.yaml and a description of each flag can be found in the mysqld_exporter repository.