Skip to main content
Learn more about Traceroute monitors in the Traceroute monitor overview.
The TracerouteMonitor construct requires Checkly CLI 8.15.0 or later.
Traceroute monitors map the network path to a host hop-by-hop, measuring per-hop latency and packet loss, and detecting whether the destination is reached. Use them to monitor path stability and catch routing issues before they affect your users.
Before creating Traceroute monitors, ensure you have:
  • An initialized Checkly CLI project
  • A hostname or IP address you want to trace
  • Basic understanding of network tracing (traceroute / tracert)
For additional setup information, see CLI overview.

Configuration

Traceroute monitors have their own probe-specific settings, plus the standard monitor options shared across all check types.
Traceroute monitors that don’t set degradedResponseTime or maxResponseTime move to the 500 and 1,000 ms defaults on their next checkly deploy. Monitors managed in the web app or through the API keep their current limits. If you set only one limit, it is checked against the default of the other: degradedResponseTime above 1,000 alone, or maxResponseTime between 1 and 499 alone, is rejected. Set both limits to use values outside these ranges.

TracerouteMonitor Options

object
required
Traceroute request configuration, including probe protocol, target host, and response validation.Usage:
Parameters:
number
default:"500"
Final-hop average RTT in milliseconds at which the monitor is marked as degraded (warning state). Set to 0 to turn off the degraded state. Maximum: 30,000. Without maxResponseTime, values above 1,000 are rejected. A monitor can’t show as degraded when the two limits are equal.Usage:
number
default:"1000"
Final-hop average RTT in milliseconds at which the monitor is marked as failed. Set to 0 to turn off latency-based failing. Maximum: 30,000. Without degradedResponseTime, values below 500 other than 0 are rejected.Usage:

TracerouteMonitor Assertions

Assertions for Traceroute monitors are defined using the TracerouteAssertionBuilder. The following sources are available:
  • responseTime(property?): Validate RTT at the final responding hop. Pass 'avg', 'min', 'max', or 'stdDev' as the argument to target a specific statistic; when omitted, it defaults to 'avg'. This assertion fails when destinationReached is false
  • hopCount(): Assert against the total number of hops recorded in the trace
  • packetLoss(): Assert against the packet loss percentage at the last recorded hop (0–100)
Here are some examples:
  • Assert that the average final-hop latency is below a threshold (default property is avg):
  • Assert against a specific RTT property:
  • Assert on the number of hops:
  • Assert on packet loss at the last hop:
Learn more in our docs on Assertions.

General Monitor Options

string
required
Friendly name for your Traceroute monitor that will be displayed in the Checkly dashboard and used in notifications.Usage:
Frequency
How often the Traceroute monitor should run. Use the Frequency enum to set the check interval.Usage:
Available frequencies: EVERY_30S, EVERY_1M, EVERY_2M, EVERY_5M, EVERY_10M, EVERY_15M, EVERY_30M, EVERY_1H, EVERY_2H, EVERY_3H, EVERY_6H, EVERY_12H, EVERY_24H. Traceroute monitors do not support sub-30-second frequencies (EVERY_10S / EVERY_20S).
string[]
default:"[]"
Array of public location codes where the Traceroute monitor should run from. Use privateLocations for private locations. Multiple locations help detect regional routing differences.Usage:
boolean
default:"true"
Whether the Traceroute monitor is enabled and will run according to its schedule.Usage: