Prerequisites
Prerequisites
Before creating ICMP Monitors, ensure you have:
- An initialized Checkly CLI project
- A hostname or IP address you want to ping
- Basic understanding of network connectivity (ICMP / ping)
Configuration
ICMP monitors have their own ICMP-specific settings, plus the standard monitor options shared across all check types.- ICMP Monitor Settings
- General Monitor Settings
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
request | object | ✅ | - | ICMP request configuration object |
degradedPacketLossThreshold | number | ❌ | 10 | Packet loss percentage at which the monitor is marked as degraded |
maxPacketLossThreshold | number | ❌ | 20 | Packet loss percentage at which the monitor is marked as failed |
IcmpMonitor Options
ICMP request configuration, including ping settings and response validation.Usage:Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
hostname | string | ✅ | - | The target host (domain name or IP address) |
pingCount | number | ❌ | 10 | Number of ICMP Echo Request packets to send per check run (1-50, default: 10) |
assertions | IcmpAssertion[] | ❌ | [] | Response assertions using the IcmpAssertionBuilder |
ipFamily | string | ❌ | IPv4 | IP family selection (IPv4, IPv6) |
Packet loss percentage at which the monitor is marked as degraded (warning state).Usage:
Packet loss percentage at which the monitor is marked as failedUsage:
IcmpMonitor Assertions
Assertions for ICMP monitors can be defined using the IcmpAssertionBuilder. The following sources are available:
latency(property): Validate round-trip time (RTT) for ICMP pings. The property parameter is required and must be one of:avg,min,max, orstdDevjsonResponse(property?): Assert against the JSON response structure. This allows you to target specific fields using JSON path assertions
- Assert the average latency is below a threshold
- Assert against specific JSON fields in the response
General Monitor Options
Friendly name for your ICMP Monitor that will be displayed in the Checkly dashboard and used in notifications.Usage:
How often the ICMP Monitor should run. Use the Available frequencies:
Frequency enum to set the check interval.Usage:EVERY_10S, EVERY_20S, 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_24HArray of public location codes where the ICMP Monitor should run from. Multiple locations provide geographic coverage and help detect regional network issues.Usage:
Whether the ICMP Monitor is enabled and will run according to its schedule.Usage: