You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrii Skomorokhov 65d02fae06
Merge pull request #39 from percona/PMM-6213-remove-go-1.13
4 weeks ago
vendor Revert "Update dependencies." 11 months ago
.gitignore Add detailed client connection count metric. 1 year ago
.golangci-required.yml PMM-5723 Reviewdog checks. (#36) 2 months ago
.golangci.yml PMM-5723 Reviewdog checks. (#36) 2 months ago
.promu.yml Prepare v1.1.0. 3 years ago
.travis.yml PMM-6213 Remove go 1.13 from travis. 4 weeks ago Prepare release 1.1.0. 3 years ago Update Travis CI config. 11 months ago
Gopkg.lock Revert "Update dependencies." 11 months ago
Gopkg.toml Remove unused packages. 11 months ago
LICENSE Tweak license headers. 3 years ago
Makefile ARM64-specific fixes. 2 years ago
NOTICE Tweak license headers. 3 years ago Update flag descriptions. 11 months ago
VERSION Prepare release 1.1.0. 3 years ago
docker-compose.yml Update MySQL in docker-compose to 8.0. 2 years ago
exporter.go Add more memory metric (#26) 1 year ago
exporter_test.go Add more memory metric (#26) 1 year ago
proxysql_exporter.go Revert "Update dependencies." 11 months ago

Percona ProxySQL Exporter

Release Build Status Go Report Card CLA assistant Prometheus exporter for ProxySQL performance data. Supported versions: 1.2 and 1.3.

Building and running




The MySQL server’s data source name must be set via the DATA_SOURCE_NAME environment variable. The format of this variable is described at

To enable HTTP basic authentication, set environment variable HTTP_AUTH to user:password pair. Alternatively, you can use YAML file with server_user and server_password fields.

export DATA_SOURCE_NAME='stats:stats@tcp('
export HTTP_AUTH='user:password'
./proxysql_exporter <flags>

Note, using stats user requires ProxySQL 1.2.4 or higher. Otherwise, use admin user.

Collector Flags

Name Description
collect.detailed.stats_mysql_processlist Collect detailed connection list from stats_mysql_processlist.
collect.mysql_connection_list Collect connection list from stats_mysql_processlist. (default true)
collect.mysql_connection_pool Collect from stats_mysql_connection_pool. (default true)
collect.mysql_status Collect from stats_mysql_global (SHOW MYSQL STATUS). (default true)
collect.stats_memory_metrics Collect memory metrics from stats_memory_metrics.

General Flags

Name Description
version Print version information and exit.
web.auth-file Path to YAML file with server_user, server_password keys for HTTP Basic authentication (overrides HTTP_AUTH environment variable).
web.listen-address Address to listen on for web interface and telemetry. (default “:42004”)
web.ssl-cert-file Path to SSL certificate file.
web.ssl-key-file Path to SSL key file.
web.telemetry-path Path under which to expose metrics. (default “/metrics”)


There is a Grafana dashboard for ProxySQL available as a part of PMM project, you can see the demo here.

Submitting Bug Reports

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:

  1. Sign in to Percona JIRA. You will need to create an account if you do not have one.
  2. Go to the Create Issue screen and select the relevant project.
  3. 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.