fix: Set NextCheckTime to LastCheckTime to avoid GroundWork to invent a value (#10623)
This commit is contained in:
parent
10cb2ec0e8
commit
906c71481b
|
|
@ -280,6 +280,7 @@ func (g *Groundwork) parseMetric(metric telegraf.Metric) (metricMeta, *transit.M
|
||||||
MonitoredInfo: transit.MonitoredInfo{
|
MonitoredInfo: transit.MonitoredInfo{
|
||||||
Status: transit.MonitorStatus(status),
|
Status: transit.MonitorStatus(status),
|
||||||
LastCheckTime: lastCheckTime,
|
LastCheckTime: lastCheckTime,
|
||||||
|
NextCheckTime: lastCheckTime, // if not added, GW will make this as LastCheckTime + 5 mins
|
||||||
LastPluginOutput: message,
|
LastPluginOutput: message,
|
||||||
},
|
},
|
||||||
Metrics: nil,
|
Metrics: nil,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue