diff --git a/controllers/common/metrics.go b/controllers/common/metrics.go index 78dc2a3f..00fd281b 100644 --- a/controllers/common/metrics.go +++ b/controllers/common/metrics.go @@ -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) {