Skip to content

Commit

Permalink
add failure reason
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihanJiang96 authored Oct 13, 2023
1 parent 9cce53a commit 388d0c8
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.failureCounter.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 388d0c8

Please sign in to comment.