fix(inputs.vsphere): Resolve occasional serverFault (#14463)

This commit is contained in:
knollet 2024-01-02 12:31:09 +01:00 committed by GitHub
parent 3005d99f71
commit 19347bfe6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1027,7 +1027,11 @@ func (e *Endpoint) chunkify(ctx context.Context, res *resourceKind, now time.Tim
} }
if !start.Truncate(time.Second).Before(now.Truncate(time.Second)) { if !start.Truncate(time.Second).Before(now.Truncate(time.Second)) {
e.log.Debugf("Start >= end (rounded to seconds): %s > %s", start, now) // this happens when the hiwater mark was estimated using a larger estInterval than is currently used
// the estInterval is reset to 1m in case of some errors
// there are no new metrics to be expected here and querying this gets us an error, so: skip!
e.log.Debugf("Start >= end (rounded to seconds): %s > %s. Skipping!", start, now)
continue
} }
// Create bucket if we don't already have it // Create bucket if we don't already have it