Skip to content

Commit

Permalink
Enable prometheus provider for workqueue metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon committed Dec 1, 2023
1 parent ca6c03d commit 6387c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/tagging/tagging_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6387c3b

Please sign in to comment.