diff --git a/exporter/kubernetes.go b/exporter/kubernetes.go index d890f89..2a55823 100644 --- a/exporter/kubernetes.go +++ b/exporter/kubernetes.go @@ -31,7 +31,7 @@ func (m *Metrics) GetPods(ctx context.Context) { _, controller := cache.NewInformer( watchlist, &corev1.Pod{}, - time.Minute*5, + time.Second*0, cache.ResourceEventHandlerFuncs{ AddFunc: m.podCreated, DeleteFunc: m.podRemoved, @@ -172,7 +172,7 @@ func (m *Metrics) GetNodes(ctx context.Context) { _, controller := cache.NewInformer( watchlist, &corev1.Node{}, - time.Minute*5, + time.Second*0, cache.ResourceEventHandlerFuncs{ AddFunc: m.nodeCreated, DeleteFunc: m.nodeRemoved,