A GOV.UK PaaS application that exports MySQL metrics to Prometheus.
This is a tiny application that can be deployed into a GOV.UK PaaS space to expose metrics for MySQL databases backing other applications in that space. This includes metrics such as number of active connections and the rate of transactions. These metrics are useful to expose to developers so they can diagnose problems and understand how their backing databases cope with traffic.
- Clone this repository
- Set a name in
manifest.yml, for examplemysql-exporter-my-app - Run
cf servicesto find the name of your mysql database - Change
rails-mysqlinmanifest.ymlto your database name - Run
cf pushto deploy the exporter to your space - Visit the MySQL dashboard in Grafana
- Select your exporter's name from the dropdown menu (top-left of the screen)
It can take up to 5 minutes for your exporter to appear in the dropdown menu.
Unlike the Postgres exporter, this one doesn't support custom queries, unfortunately.