Documentation
¶
Overview ¶
Package monitor implements the synthetic-monitoring runner — periodic HTTP probes + heartbeat liveness checks. State changes (up→down / down→up) get routed through the existing alert / Problem path so the notification stack delivers them with no monitor-specific plumbing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeAddr ¶ added in v0.8.283
NormalizeAddr turns an operator-typed target into a canonical host:port for net.Dial / tls.Dial. Tolerates a pasted URL (scheme + path stripped) and appends defaultPort when no port is present. A defaultPort of "" means the port is mandatory (tcp monitors — there is no sane default port to guess). Validates the port is a number in 1..65535 so a typo fails at create/update time rather than every 60s in the probe loop.