atatus_icmp_check resource manages ICMP (Ping) synthetic monitoring checks in Atatus.
Use this resource to monitor network connectivity, ping latency, packet loss percentage, and packets received from configured testing locations. The resource supports measuring average, minimum, and maximum latency, as well as latency standard deviation, to help identify network performance issues. It supports creating, updating, and deleting synthetic ICMP checks through Terraform.
Dashboard guide: ICMP check. Provider setup and authentication: Terraform overview. Registry reference: atatus_icmp_check.
Example Usage
Hostname Ping Check with Comprehensive Assertions
Argument Reference
Required Arguments
-
name- (String) Name of the ICMP synthetic check as displayed in the Atatus dashboard. -
host- (String) Target domain name (e.g.example.com) or IPv4 address (e.g.8.8.8.8) without protocol prefix (http://). -
packets- (Number) Number of ICMP echo ping packets to transmit per test run (1to10, default:10). -
tags- (List of Strings) List of tags (e.g.["env:production"]).
ICMP Assertions Reference
assertion- (List of Objects) Assertion rules to validate latency, packet loss, or packets received.
🌍 Supported Location Codes Reference
locations- (List of Strings) Array of global region codes where the check is executed from. Default:["US_NEW_YORK"].
locations attribute of any synthetic check, use the following region codes.
Common Settings Reference (Applicable to all check types)
-
run_type- (String) Execution strategy across selected testing locations ("parallel"or"sequential"). Default:"parallel". When set to"sequential", locations run in sequence andmin_location_failedcannot be configured. -
frequency- (String) Execution frequency interval ("1m","5m","10m","15m","30m","1h","6h","12h","1d"). Default:"1m". -
retry_count- (Number) Number of automatic retries before triggering an alert upon check failure (0to3). Supported for both"parallel"and"sequential"runs. Default:0. -
min_location_failed- (Number) Minimum number of failed locations required before alerting (default:1). Note: Only applicable whenrun_typeis"parallel". Configuringmin_location_failedwhenrun_type = "sequential"is not allowed and produces a validation error. -
emails- (List of Strings) List of email addresses to alert directly when the check fails (auto-mapped to Atatus notification channels). -
channel_ids- (List of Strings) List of specific Atatus notification channel IDs to alert on failure. See Notification channels.