Skip to content

Commit

Permalink
fix incorrect counter name (#409)
Browse files Browse the repository at this point in the history
* fix incorrect counter name
* add failure reason
  • Loading branch information
ZihanJiang96 authored Oct 13, 2023
1 parent ff2538b commit 31e3a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/common/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *MetricsCollector) IncSuccess(instanceGroup string) {
}

func (c *MetricsCollector) IncFail(instanceGroup, reason string) {
c.successCounter.With(prometheus.Labels{"instancegroup": instanceGroup}).Inc()
c.failureCounter.With(prometheus.Labels{"instancegroup": instanceGroup, "reason": reason}).Inc()
}

func (c *MetricsCollector) IncThrottle(serviceName, operationName string) {
Expand Down

0 comments on commit 31e3a1f

Please sign in to comment.