1
0
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:
Ben Kochie
2016-04-13 23:17:22 +02:00
parent 5599062e12
commit 512dce7d49
6 changed files with 23 additions and 18 deletions

View File

@ -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 {