From 19347bfe6b1b32a0e0b14ab91dc694d636a5171d Mon Sep 17 00:00:00 2001 From: knollet <131003185+knollet@users.noreply.github.com> Date: Tue, 2 Jan 2024 12:31:09 +0100 Subject: [PATCH] fix(inputs.vsphere): Resolve occasional serverFault (#14463) --- plugins/inputs/vsphere/endpoint.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/vsphere/endpoint.go b/plugins/inputs/vsphere/endpoint.go index ab5c76792..2c8cd1ead 100644 --- a/plugins/inputs/vsphere/endpoint.go +++ b/plugins/inputs/vsphere/endpoint.go @@ -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)) { - 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