Prometheus exporter for ProxySQL performance data.
- Global status metrics from
SHOW MYSQL STATUS
- Connection pool usage statistics from
stats_mysql_connection_pool
GOOS=linux go build proxysql_exporter.go
export DATA_SOURCE_NAME="stats:stats@tcp(localhost:6032)/"
./proxysql_exporter
To enable HTTP basic authentication, set environment variable HTTP_AUTH
to user:password pair.
For example: export HTTP_AUTH="user:password"
Note, using stats
user requires ProxySQL 1.2.4 or higher. Otherwise, use admin
user.
There is a Grafana dashboard for ProxySQL available as a part of PMM project, you can see the demo here.
If you find a bug in Percona ProxySQL Exporter or one of the related projects, you should submit a report to that project's JIRA issue tracker.
Your first step should be to search the existing set of open tickets for a similar report. If you find that someone else has already reported your problem, then you can upvote that report to increase its visibility.
If there is no existing report, submit a report following these steps:
- Sign in to Percona JIRA. You will need to create an account if you do not have one.
- Go to the Create Issue screen and select the relevant project.
- Fill in the fields of Summary, Description, Steps To Reproduce, and Affects Version to the best you can. If the bug corresponds to a crash, attach the stack trace from the logs.
An excellent resource is Elika Etemad's article on filing good bug reports..
As a general rule of thumb, please try to create bug reports that are:
- Reproducible. Include steps to reproduce the problem.
- Specific. Include as much detail as possible: which version, what environment, etc.
- Unique. Do not duplicate existing tickets.
- Scoped to a Single Bug. One bug per report.