{"id":13698577,"url":"https://github.com/percona/proxysql_exporter","last_synced_at":"2025-07-22T19:36:22.656Z","repository":{"id":12305407,"uuid":"64257569","full_name":"percona/proxysql_exporter","owner":"percona","description":"Prometheus exporter for ProxySQL performance data.","archived":false,"fork":false,"pushed_at":"2025-06-27T09:41:33.000Z","size":8138,"stargazers_count":109,"open_issues_count":2,"forks_count":52,"subscribers_count":37,"default_branch":"main","last_synced_at":"2025-06-27T10:36:05.911Z","etag":null,"topics":["go","golang","hacktoberfest","metrics","pmm","prometheus","prometheus-exporter","proxysql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/percona.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-07-26T21:58:37.000Z","updated_at":"2025-06-27T09:41:36.000Z","dependencies_parsed_at":"2024-03-26T13:43:47.530Z","dependency_job_id":"1b916aaa-1693-4de7-b5ad-306616b1d7fe","html_url":"https://github.com/percona/proxysql_exporter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/percona/proxysql_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percona%2Fproxysql_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percona%2Fproxysql_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percona%2Fproxysql_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percona%2Fproxysql_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/percona","download_url":"https://codeload.github.com/percona/proxysql_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percona%2Fproxysql_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266561561,"owners_count":23948632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","hacktoberfest","metrics","pmm","prometheus","prometheus-exporter","proxysql"],"created_at":"2024-08-02T19:00:49.992Z","updated_at":"2025-07-22T19:36:22.627Z","avatar_url":"https://github.com/percona.png","language":"Go","funding_links":[],"categories":["Exporters"],"sub_categories":["Percona"],"readme":"# Percona ProxySQL Exporter\n\n[![Build Status](https://github.com/percona/proxysql_exporter/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/percona/proxysql_exporter/actions/workflows/go.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/percona/proxysql_exporter)](https://goreportcard.com/report/github.com/percona/proxysql_exporter)\n[![CLA assistant](https://cla-assistant.percona.com/readme/badge/percona/proxysql_exporter)](https://cla-assistant.percona.com/percona/proxysql_exporter)\nPrometheus exporter for [ProxySQL](https://github.com/sysown/proxysql) performance data.\nSupported versions: 1.2 and 1.3.\n\n## Building and running\n\n### Building\n\n```bash\nmake\n```\n\n### Running\n\nThe MySQL server's data source name must be set via the `DATA_SOURCE_NAME` environment variable. The format of this\nvariable is described at https://github.com/go-sql-driver/mysql#dsn-data-source-name.\n\nTo enable HTTP basic authentication, set environment variable `HTTP_AUTH` to user:password pair. Alternatively, you can\nuse YAML file with `server_user` and `server_password` fields.\n\n```bash\nexport DATA_SOURCE_NAME='stats:stats@tcp(127.0.0.1:42004)/'\nexport HTTP_AUTH='user:password'\n./proxysql_exporter \u003cflags\u003e\n```\n\nNote, using `stats` user requires ProxySQL 1.2.4 or higher. Otherwise, use `admin` user.\n\n### Collector Flags\n\n| Name                                       | Description                                                                  |\n| ------------------------------------------ | ---------------------------------------------------------------------------- |\n| `collect.detailed.stats_mysql_processlist` | Collect detailed connection list from stats_mysql_processlist.               |\n| `collect.mysql_connection_list`            | Collect connection list from stats_mysql_processlist. (default true)         |\n| `collect.mysql_connection_pool`            | Collect from stats_mysql_connection_pool. (default true)                     |\n| `collect.mysql_status`                     | Collect from stats_mysql_global (SHOW MYSQL STATUS). (default true)          |\n| `collect.runtime_mysql_servers`            | Collect from runtime_mysql_servers - need admin credentials. (default false) |\n| `collect.stats_memory_metrics`             | Collect memory metrics from stats_memory_metrics.                            |\n\n### General Flags\n\n| Name                 | Description                                                                                                                        |\n| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |\n| `version`            | Print version information and exit.                                                                                                |\n| `web.auth-file`      | Path to YAML file with server_user, server_password keys for HTTP Basic authentication (overrides HTTP_AUTH environment variable). |\n| `web.listen-address` | Address to listen on for web interface and telemetry. (default \":42004\")                                                           |\n| `web.ssl-cert-file`  | Path to SSL certificate file.                                                                                                      |\n| `web.ssl-key-file`   | Path to SSL key file.                                                                                                              |\n| `web.telemetry-path` | Path under which to expose metrics. (default \"/metrics\")                                                                           |\n\n## Visualizing\n\nThere is a Grafana dashboard for ProxySQL available as a part of [PMM](https://www.percona.com/doc/percona-monitoring-and-management/2.x/index.html) project, you can see the demo [here](https://pmmdemo.percona.com/graph/d/proxysql-instance-summary/proxysql-instance-summary).\n\n## Submitting Bug Reports\n\nIf you find a bug in Percona ProxySQL Exporter or one of the related projects, you should submit a report to that project's [JIRA](https://jira.percona.com) issue tracker.\n\nYour first step should be [to search](https://jira.percona.com/issues/?jql=project=PMM%20AND%20component=ProxySQL_Exporter) 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.\n\nIf there is no existing report, submit a report following these steps:\n\n1. [Sign in to Percona JIRA.](https://jira.percona.com/login.jsp) You will need to create an account if you do not have one.\n2. [Go to the Create Issue screen and select the relevant project.](https://jira.percona.com/secure/CreateIssueDetails!init.jspa?pid=11600\u0026issuetype=1\u0026priority=3\u0026components=11601)\n3. Fill in the fields of Summary, Description, Steps To Reproduce, and Affects Version to the best you can. If the bug is due to a crash, attach the stack trace from the logs.\n\nAn excellent resource is [Elika Etemad's article on filing good bug reports.](https://fantasai.inkedblade.net/style/talks/filing-good-bugs/).\n\nAs a general rule of thumb, please try to create bug reports that are:\n\n- _Reproducible._ Include steps to reproduce the problem.\n- _Specific._ Include as much detail as possible: which version, what environment, etc.\n- _Unique._ Do not duplicate existing tickets.\n- _Scoped to a Single Bug._ One bug per report.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona%2Fproxysql_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercona%2Fproxysql_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona%2Fproxysql_exporter/lists"}