From 6387c3b5178763f75a8f756499ba80607e08084e Mon Sep 17 00:00:00 2001 From: Carter McKinnon Date: Fri, 1 Dec 2023 13:41:56 -0800 Subject: [PATCH] Enable prometheus provider for workqueue metrics --- pkg/controllers/tagging/tagging_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controllers/tagging/tagging_controller.go b/pkg/controllers/tagging/tagging_controller.go index 89affd4d77d..8379419fe67 100644 --- a/pkg/controllers/tagging/tagging_controller.go +++ b/pkg/controllers/tagging/tagging_controller.go @@ -32,6 +32,7 @@ import ( opt "k8s.io/cloud-provider-aws/pkg/controllers/options" awsv1 "k8s.io/cloud-provider-aws/pkg/providers/v1" nodehelpers "k8s.io/cloud-provider/node/helpers" + _ "k8s.io/component-base/metrics/prometheus/workqueue" // enable prometheus provider for workqueue metrics "k8s.io/klog/v2" ) @@ -133,7 +134,7 @@ func NewTaggingController( cloud: awsCloud, tags: tags, resources: resources, - workqueue: workqueue.NewNamedRateLimitingQueue(rateLimiter, "Tagging"), + workqueue: workqueue.NewNamedRateLimitingQueue(rateLimiter, TaggingControllerClientName), nodesSynced: nodeInformer.Informer().HasSynced, nodeMonitorPeriod: nodeMonitorPeriod, rateLimitEnabled: rateLimitEnabled,