Skip to content

Commit

Permalink
Merge pull request #81 from roman-vynar/master
Browse files Browse the repository at this point in the history
Fixed uint for scrapeInnodbMetrics() and gofmt
  • Loading branch information
SuperQ committed Feb 12, 2016
2 parents 30b8d3e + 911dfb9 commit a668dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysqld_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ func scrapeInnodbMetrics(db *sql.DB, ch chan<- prometheus.Metric) error {

var (
name, subsystem, metricType, comment string
value uint65
value uint64
)

for innodbMetricsRows.Next() {
Expand All @@ -1885,7 +1885,7 @@ func scrapeInnodbMetrics(db *sql.DB, ch chan<- prometheus.Metric) error {
metricName := "innodb_metrics_" + subsystem + "_" + name
if metricType == "counter" {
description := prometheus.NewDesc(
prometheus.BuildFQName(namespace, informationSchema, metricName + "_total"),
prometheus.BuildFQName(namespace, informationSchema, metricName+"_total"),
comment, nil, nil,
)
ch <- prometheus.MustNewConstMetric(
Expand Down

0 comments on commit a668dc3

Please sign in to comment.