We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 896abb1 commit d9f1ec4Copy full SHA for d9f1ec4
1 file changed
healthcheck/healthcheck.go
@@ -352,10 +352,13 @@ func (m *Monitor) monitorTarget(target *Target) {
352
// Reset timer for next check with current interval
353
target.timer.Reset(interval)
354
355
- // Notify callback if status changed
356
- if oldStatus != target.Status && m.callback != nil {
357
- logger.Info("Target %d status changed: %s -> %s",
358
- target.Config.ID, oldStatus.String(), target.Status.String())
+ // Notify callback on every check so downstream systems receive fresh
+ // latency telemetry even when health status is unchanged.
+ if m.callback != nil {
+ if oldStatus != target.Status {
359
+ logger.Info("Target %d status changed: %s -> %s",
360
+ target.Config.ID, oldStatus.String(), target.Status.String())
361
+ }
362
go m.callback(m.GetTargets())
363
}
364
0 commit comments