Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
Hello,
I have written a collector which parses data from the mysql performance schema. You can find it here
It was tested on MariaDB 10.1 and Percona 5.7 on both CentOS 6.8 and CentOS 7.