The Exporter exports the MaxScale metrics for Prometheus:
The exporter uses exclusively MaxScale REST API
mkdir -p $GOPATH/src/github.com/$GOPATH/src/github.comgit clone https://github.com/Vetal1977/maxctrl_exporter.gitdep ensure --update to update the dependenciesgo build to build the binary for your platformGOOS=linux GOARCH=amd64 go build -o bin/linux/maxctrl_exportermake buildWe have prepared a Docker-compose file for a local try. Upon start, you get running MySQL, MaxScale and Exporter containers. Note that the Exported does not use command line arguments rather relies on environment variables:
cd maxscale_dockerdocker-compose up -ddocker-compose down when you are finishedlocalhost:8989. E.g. http://localhost:8989/v1/serverslocalhost:8093. E.g. http://localhost:8093/metricsContent type
Image
Digest
Size
372.4 MB
Last updated
over 6 years ago
docker pull brunoleon/maxctrl_exporter