Prerequisites
Prerequisites
- Node.js 18+ installed
- A Checkly account
Use this guide to manually set up your Checkly configuration. Follow the quickstart guide and
npm create checkly
for an automatic setup.Installation
Create a new directory and initialize your monitoring project:Terminal
Terminal
Terminal
Project Setup
Create acheckly.config
file with basic settings:
checkly.config.ts
Your First Checkly CLI Construct
Create a monitoring setup using monitoring as code constructs. First, create the directory structure:Terminal
src/__checks__/website-monitoring.check.ts
:
src/__checks__/website-monitoring.check.ts
src/__checks__/homepage.spec.ts
:
src/__checks__/homepage.spec.ts
If you’re unfamiliar with Playwright Test, learn more about Microsoft’s end-to-end testing framework in the
/learn
section.Testing Your Setup
Test your configuration locally before deployment:Terminal
test
command will run your browser check in the Checkly infrastructure. Use this flow to test your monitoring configuration and validate preview environments.
Deployment
Deploy your monitoring to Checkly:Terminal
deploy
command turns your browser check into a synthetic monitor checking your website every 5 minutes from multiple locations.
Next Steps
- Add API checks to monitor your backend services
- Set up alert channels for notifications
- Organize checks with check groups
- Create dashboards for monitoring visualization
Learn More
- Project configuration - Understand how to configure your monitoring project
- Browser checks - Deep dive into browser monitoring
- Retry strategies - Configure resilient monitoring