From 5d4afd2a4228096c030b9b5e0755e3fe4da91b73 Mon Sep 17 00:00:00 2001 From: Garrybest Date: Tue, 19 Oct 2021 12:16:32 +0800 Subject: [PATCH] add work queue metrics for agent and controller-manager Signed-off-by: Garrybest --- cmd/agent/main.go | 2 ++ cmd/scheduler-estimator/main.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cmd/agent/main.go b/cmd/agent/main.go index f5e1526a9e80..817cd4eead74 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -1,6 +1,8 @@ package main import ( + _ "sigs.k8s.io/controller-runtime/pkg/metrics" + apiserver "k8s.io/apiserver/pkg/server" "k8s.io/component-base/logs" "k8s.io/klog/v2" diff --git a/cmd/scheduler-estimator/main.go b/cmd/scheduler-estimator/main.go index 03e5da96634a..1a8963824adb 100644 --- a/cmd/scheduler-estimator/main.go +++ b/cmd/scheduler-estimator/main.go @@ -4,6 +4,8 @@ import ( "fmt" "os" + _ "sigs.k8s.io/controller-runtime/pkg/metrics" + apiserver "k8s.io/apiserver/pkg/server" "k8s.io/component-base/logs"