Skip to content

Commit

Permalink
修复了一个 KubernetesPrometheus 采集间隔问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liguozhuang authored and 谭彪 committed Aug 28, 2024
1 parent 0b12ea7 commit 3ff7fdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/plugins/inputs/kubernetesprometheus/prom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3ff7fdd

Please sign in to comment.