Documentation ¶
Overview ¶
Package mysql is Metricbeat module for MySQL server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDSN ¶
CreateDSN creates a DSN (data source name) string out of hostname, username, password, and timeout. It validates the resulting DSN and returns an error if the DSN is invalid.
func GetMySQLEnvDSN ¶
func GetMySQLEnvDSN() string
GetMySQLEnvDSN returns the MySQL server DSN to use for testing. It reads the value from the MYSQL_DSN environment variable and returns root@tcp(127.0.0.1:3306)/ if it is not set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.