Skip to content

Commit

Permalink
Get 100% for golint and misspell of goreportcard 😎
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Nov 17, 2016
1 parent c226243 commit 62e0f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions collector/info_schema_query_response_time.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func processQueryResponseTimeTable(db *sql.DB, ch chan<- prometheus.Metric, quer
return nil
}

// ScrapeQueryResponseTime collects from `information_schema.query_response_time`.
func ScrapeQueryResponseTime(db *sql.DB, ch chan<- prometheus.Metric) error {
var queryStats uint8
err := db.QueryRow(queryResponseCheckQuery).Scan(&queryStats)
Expand Down
2 changes: 1 addition & 1 deletion mysqld_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func NewExporter(dsn string) *Exporter {
Namespace: namespace,
Subsystem: exporter,
Name: "scrape_errors_total",
Help: "Total number of times an error occured scraping a MySQL.",
Help: "Total number of times an error occurred scraping a MySQL.",
}, []string{"collector"}),
error: prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: namespace,
Expand Down

0 comments on commit 62e0f95

Please sign in to comment.