diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go index 7e1f16290..677c5bae0 100644 --- a/internal/discovery/discovery.go +++ b/internal/discovery/discovery.go @@ -17,6 +17,7 @@ package discovery import ( "context" "fmt" + "runtime" "time" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" @@ -252,8 +253,9 @@ func (r *CRDiscoverer) PollForCacheUpdates( shouldGenerateMetrics = r.WasUpdated }) if shouldGenerateMetrics { + klog.InfoS("should generate metrics", "goroutine", runtime.NumGoroutine()) generateMetrics() - klog.InfoS("discovery finished, cache updated") + klog.InfoS("discovery finished, cache updated", "goroutine", runtime.NumGoroutine()) } } }