/usr/bin/proxysql_exporter 1.1.3 exports various ProxySQL metrics in Prometheus format.
It uses DATA_SOURCE_NAME environment variable with following format: https://github.com/go-sql-driver/mysql#dsn-data-source-name
Default value is "stats:stats@tcp(localhost:6032)/".
Usage: /usr/bin/proxysql_exporter [flags]
Flags:
-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.runtime_mysql_servers
Collect from runtime_mysql_servers.
-collect.stats_command_counter
Collect histograms over command latency
-collect.stats_memory_metrics
Collect memory metrics from stats_memory_metrics.
-log.level string
Only log messages with the given severity or above. Valid levels: [debug, info, warn, error] (default "error")
-version
Print version information and exit.
-web.listen-address string
Address to listen on for web interface and telemetry. (default ":42004")
-web.telemetry-path string
Path under which to expose metrics. (default "/metrics")
Options (11)
| Option | Description | Source |
|---|
-collect.detailed.stats_mysql_processlist | Collect detailed connection list from stats_mysql_processlist. | help |
-collect.mysql_connection_list | Collect connection list from stats_mysql_processlist. | help |
-collect.mysql_connection_pool | Collect from stats_mysql_connection_pool. | help |
-collect.mysql_status | Collect from stats_mysql_global (SHOW MYSQL STATUS). | help |
-collect.runtime_mysql_servers | Collect from runtime_mysql_servers. | help |
-collect.stats_command_counter | Collect histograms over command latency | help |
-collect.stats_memory_metrics | Collect memory metrics from stats_memory_metrics. | help |
-log.level string | Only log messages with the given severity or above. | help |
-version | Print version information and exit. | help |
-web.listen-address string | Address to listen on for web interface and telemetry. | help |
-web.telemetry-path string | Path under which to expose metrics. | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.