Skip to content

Commit

Permalink
Register resource max retry failed metric for cluster manager
Browse files Browse the repository at this point in the history
This commit registers resource_retry_failures_total metric for
cluster manager module so that it also collects object retry
failures associated with control plane pod.

Signed-off-by: Periyasamy Palanisamy <[email protected]>
  • Loading branch information
pperiyasamy authored and jcaamano committed Aug 17, 2023
1 parent afbbfbf commit 31d302b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go-controller/pkg/metrics/cluster_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func RegisterClusterManagerFunctional() {
prometheus.MustRegister(metricEgressIPRebalanceCount)
prometheus.MustRegister(metricEgressIPCount)
}
if err := prometheus.Register(MetricResourceRetryFailuresCount); err != nil {
if _, ok := err.(prometheus.AlreadyRegisteredError); !ok {
panic(err)
}
}
}

// RecordSubnetUsage records the number of subnets allocated for nodes
Expand Down

0 comments on commit 31d302b

Please sign in to comment.