diff --git a/plugins/inputs/vsphere/vsan.go b/plugins/inputs/vsphere/vsan.go index cc087bb264859..2c969910fba34 100644 --- a/plugins/inputs/vsphere/vsan.go +++ b/plugins/inputs/vsphere/vsan.go @@ -292,7 +292,7 @@ func (e *Endpoint) queryPerformance(ctx context.Context, vsanClient *soap.Client } if len(timeStamps) > 0 { lastSample := timeStamps[len(timeStamps)-1] - if !lastSample.Equal(time.Time{}) && lastSample.After(latest) { + if !lastSample.IsZero() && lastSample.After(latest) { latest = lastSample } }