You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -106,19 +106,28 @@ config.my-cnf | Path to .my.cnf file to read MySQL
106
106
log.level | Logging verbosity (default: info)
107
107
exporter.lock_wait_timeout | Set a lock_wait_timeout (in seconds) on the connection to avoid long metadata locking. (default: 2)
108
108
exporter.log_slow_filter | Add a log_slow_filter to avoid slow query logging of scrapes. NOTE: Not supported by Oracle MySQL.
109
+
web.config.file | Path to a [web configuration file](#tls-and-basic-authentication)
109
110
web.listen-address | Address to listen on for web interface and telemetry.
110
111
web.telemetry-path | Path under which to expose metrics.
111
112
version | Print the version information.
112
113
114
+
## TLS and basic authentication
115
+
116
+
The MySQLd Exporter supports TLS and basic authentication.
117
+
118
+
To use TLS and/or basic authentication, you need to pass a configuration file
119
+
using the `--web.config.file` parameter. The format of the file is described
120
+
[in the exporter-toolkit repository](https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md).
121
+
113
122
### Setting the MySQL server's data source name
114
123
115
124
The MySQL server's [data source name](http://en.wikipedia.org/wiki/Data_source_name)
116
125
must be set via the `DATA_SOURCE_NAME` environment variable.
117
126
The format of this variable is described at https://github.com/go-sql-driver/mysql#dsn-data-source-name.
118
127
119
-
120
128
## Customizing Configuration for a SSL Connection
121
-
if The MySQL server supports SSL, you may need to specify a CA truststore to verify the server's chain-of-trust. You may also need to specify a SSL keypair for the client side of the SSL connection. To configure the mysqld exporter to use a custom CA certificate, add the following to the mysql cnf file:
129
+
130
+
If The MySQL server supports SSL, you may need to specify a CA truststore to verify the server's chain-of-trust. You may also need to specify a SSL keypair for the client side of the SSL connection. To configure the mysqld exporter to use a custom CA certificate, add the following to the mysql cnf file:
0 commit comments