Skip to main content

Description

The check_port probe performs a TCP connect to verify whether a port on a host is reachable. Supports both expecting the port to be open (default) and expecting it to be closed. This is an active check — emits both metrics and a check result with latency.

Config fields

Metrics

Example config

Check that a port is closed:

Notes

  • When the result doesn’t match the expectation, severity is critical.
  • A connect failure due to network is a normal result (status=down), not an agent error.