Commit 0d0824aa authored by Martín Ferrari's avatar Martín Ferrari

Better document data source configuration.

parent 38739a43
# By default the connection string will be read from
# $HOME/my.cnf or -config.my-cnf.
# To set a connection string from the environment instead, uncomment the
# following line.
# $HOME/my.cnf or from the file specified with the -config.my-cnf parameter.
# To set a connection string from the environment instead, uncomment one of the
# following lines.
# Using UNIX domain sockets and authentication:
# DATA_SOURCE_NAME="prometheus:nopassword@unix(/run/mysqld/mysqld.sock)/"
# Using a TCP connection and password authentication:
# DATA_SOURCE_NAME="login:password@(hostname:port)/dbname"
# Note the user must be granted enough privileges for the exporter to run.
# Example to create a user to connect with the UNIX socket:
#
# CREATE USER IF NOT EXISTS 'prometheus'@'localhost' IDENTIFIED VIA unix_socket;
# GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'prometheus'@'localhost';
# Set the command-line arguments to pass to the exporter.
# ARGS='-config.my-cnf /etc/mysql/debian.cnf'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment