fix: Set NextCheckTime to LastCheckTime to avoid GroundWork to invent a value (#10623)

This commit is contained in:
Thomas Casteleyn 2022-02-22 17:28:22 +01:00 committed by GitHub
parent 10cb2ec0e8
commit 906c71481b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ func (g *Groundwork) parseMetric(metric telegraf.Metric) (metricMeta, *transit.M
MonitoredInfo: transit.MonitoredInfo{
Status: transit.MonitorStatus(status),
LastCheckTime: lastCheckTime,
NextCheckTime: lastCheckTime, // if not added, GW will make this as LastCheckTime + 5 mins
LastPluginOutput: message,
},
Metrics: nil,