Prerequisites
Prerequisites
Before creating URL Monitors, ensure you have:
- An initialized Checkly CLI project
- URLs or HTTP endpoints you want to monitor
- Understanding of HTTP status codes and response behavior
- Network access to the URLs you want to monitor
Configuration
The URL Monitoring configuration consists of specific URL monitoring options and inherited general monitoring options.- URL Monitor
- General Monitor
UrlMonitor Options
object
required
HTTP request configuration that defines the URL to monitor and how to handle the request.Usage:Parameters:Examples:Use cases: Website availability, API health checks, service uptime monitoring.
Define assertions using the
UrlAssertionBuilder to validate HTTP status codes:- Simple Website
- API Endpoint
- Development Environment
number
default:"3000"
Response time threshold in milliseconds for marking the monitor as degraded (warning state).Usage:Use cases: Early performance warnings, gradual degradation detection.
number
default:"5000"
Maximum response time in milliseconds before the monitor is marked as failed.Usage:Examples:Use cases: Performance monitoring, SLA compliance, user experience optimization.
General Monitor Options
string
required
Friendly name for your URL monitor that will be displayed in the Checkly dashboard and used in notifications.Usage:
Frequency
How often the URL monitor should run. Use the Examples:Available frequencies:
Frequency enum to set the check interval.Usage:- High Frequency
- Standard Monitoring
- Low Frequency
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_24Hstring[]
default:"[]"
Array of public location codes where the URL monitor should run from. Multiple locations provide geographic coverage.Usage:Examples:Use cases: Global performance monitoring, regional compliance, CDN performance validation.
- Global Coverage
- Regional Focus
boolean
default:"true"
Whether the URL monitor is enabled and will run according to its schedule.Usage:Examples:
Examples
- Website Availability
- API Health Check
- CDN Performance
- Redirect Chain
- SSL Certificate Check
- Multiple Status Codes
URL monitors only support status code assertions. For more complex assertions on response bodies, headers, or response time, use API checks instead.