OS Manuals

/usr/bin/sql_exporter

Database-agnostic SQL Exporter for Prometheus

From sql_exporter 0.24.1-r0 (os), captured 2026-11-05 by running sql_exporter --help (exit 0). permalink

Also provided by 2 other package versions
Usage of /usr/bin/sql_exporter:
  -config.check
    	Check configuration and exit
  -config.data-source-name string
    	Data source name to override the value in the configuration file with
  -config.enable-ping
    	Enable ping for targets (default true)
  -config.file string
    	SQL Exporter configuration file path (default "sql_exporter.yml")
  -config.ignore-missing-values
    	[EXPERIMENTAL] Ignore results with missing values for the requested columns
  -config.target-label string
    	Target label name (default "target")
  -log.file string
    	Log file to write to, leave empty to write to stderr
  -log.format string
    	Set log output format (default "logfmt")
  -log.level string
    	Set log level (default "info")
  -version
    	Print version information
  -web.config.file string
    	[EXPERIMENTAL] TLS/BasicAuth configuration file path
  -web.enable-reload
    	Enable reload collector data handler
  -web.listen-address string
    	Address to listen on for web interface and telemetry (default ":9399")
  -web.metrics-path string
    	Path under which to expose metrics (default "/metrics")
Options (14)
OptionDescriptionSource
-config.checkCheck configuration and exithelp
-config.data-source-name stringData source name to override the value in the configuration file withhelp
-config.enable-pingEnable ping for targets (default true)help
-config.file stringSQL Exporter configuration file path (default "sql_exporter.yml")help
-config.ignore-missing-values[EXPERIMENTAL] Ignore results with missing values for the requested columnshelp
-config.target-label stringTarget label name (default "target")help
-log.file stringLog file to write to, leave empty to write to stderrhelp
-log.format stringSet log output format (default "logfmt")help
-log.level stringSet log level (default "info")help
-versionPrint version informationhelp
-web.config.file string[EXPERIMENTAL] TLS/BasicAuth configuration file pathhelp
-web.enable-reloadEnable reload collector data handlerhelp
-web.listen-address stringAddress to listen on for web interface and telemetry (default ":9399")help
-web.metrics-path stringPath under which to expose metrics (default "/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.