Skip to main content

Integration with Checkly CLI

Define Private Locations in your monitoring-as-code workflow using the Checkly CLI. This enables version-controlled, repeatable deployments of your monitoring infrastructure.

Basic Configuration

Advanced Configuration

Multiple Private Locations

Configure checks to run from multiple Private Locations for redundancy:

Environment-Specific Configuration

Use environment variables to configure Private Locations dynamically:

Conditional Private Location Usage

Use conditional logic to determine Private Location usage:

Deployment Workflows

CI/CD Integration

Integrate Private Location checks into your CI/CD pipeline:

Environment-Specific Deployments

Deploy different configurations for different environments:

Project Structure

Organize your monitoring-as-code project for Private Locations:

Configuration Files

checkly.config.ts:
environments/production.ts:

Best Practices

  • Store Private Location configurations in version control
  • Use environment-specific configuration files
  • Document Private Location dependencies
  • Include deployment scripts in your repository
  • Use environment variables for sensitive configuration
  • Never commit API keys or secrets
  • Implement least-privilege access for deployment
  • Use separate Private Locations for different environments
  • Test Private Location configurations locally
  • Validate check configurations before deployment
  • Use staging environments for testing
  • Implement rollback procedures
  • Monitor your monitoring deployment
  • Track Private Location agent health
  • Alert on deployment failures
  • Regular review of check configurations

Troubleshooting

Common Issues

Private Location Not Found:
Solution: Ensure the Private Location exists in your Checkly account and the name matches exactly. Agent Not Connected:
Solution: Verify that agents are running and connected to the Private Location. Deployment Failures:
Solution: Check agent connectivity, API key validity, and network access.

Debugging Commands

Next Steps

Agent Configuration

Learn advanced agent configuration options

Use Cases

Explore real-world deployment patterns

Kubernetes Deployment

Deploy at scale with Kubernetes

Scaling Guide

Plan for growth and redundancy
Start with a simple configuration and gradually add complexity as you become familiar with Private Location integration patterns.