You've already forked mysqld_exporter
mirror of
https://github.com/prometheus/mysqld_exporter.git
synced 2025-07-30 06:43:05 +03:00
Fix minor golint issues.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
// Scrape `SHOW GLOBAL VARIABLES`
|
||||
// Scrape `SHOW GLOBAL VARIABLES`.
|
||||
|
||||
package collector
|
||||
|
||||
@ -16,6 +16,7 @@ const (
|
||||
globalVariablesQuery = `SHOW GLOBAL VARIABLES`
|
||||
)
|
||||
|
||||
// ScrapeGlobalVariables collects from `SHOW GLOBAL VARIABLES`.
|
||||
func ScrapeGlobalVariables(db *sql.DB, ch chan<- prometheus.Metric) error {
|
||||
globalVariablesRows, err := db.Query(globalVariablesQuery)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user