From 3ff7fdd20be3631c1158155e49803954b13c2ad1 Mon Sep 17 00:00:00 2001 From: liguozhuang Date: Wed, 28 Aug 2024 21:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=20KubernetesPrometheus=20=E9=87=87=E9=9B=86=E9=97=B4=E9=9A=94?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/plugins/inputs/kubernetesprometheus/prom.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/plugins/inputs/kubernetesprometheus/prom.go b/internal/plugins/inputs/kubernetesprometheus/prom.go index 548caa129b..b8ee7c6340 100644 --- a/internal/plugins/inputs/kubernetesprometheus/prom.go +++ b/internal/plugins/inputs/kubernetesprometheus/prom.go @@ -59,6 +59,7 @@ func (p *promTarget) scrape() error { if !p.shouldScrape() { return nil } + p.lastTime = time.Now() _, err := p.pm.CollectFromHTTPV2(p.urlstr) return err }