Skip to content

Command-line parameters ​

PropertyDefaultDescription
--web.listen-address:9399Address to listen on for web interface and telemetry
--web.metrics-path/metricsPath under which to expose metrics
--web.enable-reloadfalseEnable reload collector data handler
--web.config.fileTLS/BasicAuth configuration file path
--config.filesql_exporter.ymlSQL Exporter configuration file path (overridden by SQLEXPORTER_CONFIG if set)
--config.checkfalseCheck the configuration file and exit
--config.enable-pingtrueEnable ping for targets
--config.ignore-missing-valuesfalseIgnore results with missing values for the requested columns
--config.data-source-nameOverride the target DSN from the configuration file (single target mode only)
--config.target-labeltargetName of the label that holds the target name
--log.formatlogfmtSet log output format (logfmt | json)
--log.levelinfoSet log level (debug|info|warn|error)
--log.fileLog file to write to, leave empty to write to stderr
--versionfalsePrint version information and exit