Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion agent/health/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,14 @@ func (h *HealthCheck) updateHealth() {
}
}()

log.Infof("%s reporting agent health.", name)
log.Infof("%s %s reporting agent health.", func() string {
instanceID, err := h.context.Identity().ShortInstanceID()
if err != nil {
log.Errorf("Failed to get instance ID: %v", err)
return ""
}
return instanceID
}(), name)

appConfig := h.context.AppConfig()
var isEC2, isECS, isOnPrem bool
Expand Down