Skip to content

Commit

Permalink
Remove suffix from metric variable name to fit in with convention
Browse files Browse the repository at this point in the history
  • Loading branch information
gebn committed Sep 4, 2020
1 parent 04d4f7c commit 3d32c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bmc/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
"to retrieve the SDR repo and initialise all subcollectors before " +
"we timed out.",
})
sessionExpiriesTotal = promauto.NewCounter(prometheus.CounterOpts{
sessionExpiries = promauto.NewCounter(prometheus.CounterOpts{
Namespace: namespace,
Subsystem: subsystem,
Name: "session_expiries_total",
Expand Down Expand Up @@ -205,7 +205,7 @@ func (c *Collector) collect(ctx context.Context, ch chan<- prometheus.Metric) er
// either expired, or we've hit a BMC bug. Try again from fresh;
// resetting only the session is not enough, as a response packet
// from the last session could confuse things.
sessionExpiriesTotal.Inc()
sessionExpiries.Inc()

// limit the close to a second; it's unlikely we'll get a reply if
// the session really has expired
Expand Down

0 comments on commit 3d32c2f

Please sign in to comment.