Skip to content

Commit

Permalink
Merge branch '2373-iss-k8sprom-nodelocal' into 'dev'
Browse files Browse the repository at this point in the history
修复了一个 KubernetesPrometheus 采集间隔问题

See merge request cloudcare-tools/datakit!3188
  • Loading branch information
谭彪 committed Aug 28, 2024
2 parents 0b12ea7 + 3ff7fdd commit e4b5e9f
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 e4b5e9f

Please sign in to comment.