Documentation ¶
Overview ¶
Package mysql is Metricbeat module for MySQL server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
func NewDB ¶
NewDB returns a new mysql database handle. The dsn value (data source name) must be valid, otherwise an error will be returned.
DSN Format: [username[:password]@][protocol[(address)]]/
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.