# CheckGroup Construct - Checkly Docs

> Learn how to configure check groups with the Checkly CLI.

Source: https://www.checklyhq.com/docs/constructs/check-group/

---

Project & Configuration

# CheckGroup Construct

Learn how to configure check groups with the Checkly CLI.

Learn more about check groups in [the Groups overview](https://www.checklyhq.com/docs/platform/groups).

`CheckGroup` is deprecated. Please use `CheckGroupV2` instead. See [CheckGroupV2 documentation](https://www.checklyhq.com/docs/constructs/check-group-v2) for details.

Use `CheckGroup` to organize your checks into logical groups. This provides better organization, shared configuration, and group-level controls for your monitoring setup.

```
import { ApiCheck, CheckGroup, Frequency } from "checkly/constructs"

const group = new CheckGroup("api-group-1", {
name: "API Endpoints Group",
activated: true,
muted: false,
frequency: Frequency.EVERY_15M,
locations: ["us-east-1", "eu-west-1"],
tags: ["api-group"],
})

new ApiCheck("api-check-1", {
name: "API check #1",
group,
request: {
method: "GET",
url: "https://api.example.com/health",
},
})
```

```
import {
ApiCheck,
CheckGroup,
EmailAlertChannel,
Frequency,
} from "checkly/constructs"
import { secret } from "checkly/util"

const emailChannel = new EmailAlertChannel("team-email", {
address: "team@example.com",
})

const group = new CheckGroup("comprehensive-group", {
name: "Comprehensive Monitoring Group",
activated: true,
muted: false,
frequency: Frequency.EVERY_10M,
locations: ["us-east-1", "eu-west-1"],
tags: ["production", "critical"],
concurrency: 5,
environmentVariables: [
{ key: "API_BASE_URL", value: "https://api.example.com" },
{ key: "API_KEY", value: secret("API_KEY"), secret: true },
],
alertChannels: [emailChannel],
browserChecks: {
frequency: Frequency.EVERY_30M,
testMatch: "*.spec.js",
},
})

new ApiCheck("api-check-1", {
name: "API check #1",
group,
request: {
method: "GET",
url: "https://api.example.com/health",
},
})
```

## Configuration

Parameter Type Required Default Description

`name` `string` ✅ - Friendly name for your check group

`activated` `boolean` ❌ `true` Whether checks in the group are running

`apiCheckDefaults` `object` ❌ - Default settings for API checks in the group

`alertEscalationPolicy` `AlertEscalationPolicy` ❌ Global account alert settings Advanced alert escalation settings

`alertChannels` `AlertChannel[]` ❌ `[]` Alert channels for all checks in the group

`environmentVariables` `object[]` ❌ `[]` Group-level environment variables

`concurrency` `number` ❌ `3` Number of concurrent Checks to run when a group is triggered

`frequency` `Frequency` ❌ - How often to run checks within the group

`localSetupScript` (deprecated) `string` ❌ - Code to run before each check/monitor in this group

`localTearDownScript` (deprecated) `string` ❌ - Code to run after each check/monitor in this group

`locations` `string[]` ❌ - Public locations for all checks in the group

`muted` `boolean` ❌ `false` Whether alert notifications are muted

`privateLocations` `string[]` ❌ - Private location slugs

`retryStrategy` `RetryStrategy` ❌ [`singleRetry()`](https://www.checklyhq.com/docs/constructs/retry-strategy#default-retry-strategy) Strategy for configured retries

`runtimeId` `string` ❌ - Runtime ID for all checks in the group

`runParallel` `boolean` ❌ `false` Whether to run checks in parallel across locations

`tags` `string[]` ❌ `[]` Tags to organize all checks in the group

`browserChecks` `object` ❌ - Settings for Browser checks in the group

`multiStepChecks` `object` ❌ - Settings for Multistep checks in the group

### Group Options

string

required

Friendly name for your check group that will be displayed in the Checkly dashboard and used for organization. **Usage:**

```
const group = new CheckGroup("api-monitoring-group", {
name: "API Monitoring Group",
})
```

**Use cases**: Group organization, dashboard display, team coordination.

boolean

default: "true"

Whether checks in the group are running. When false, all checks in the group are paused. **Usage:**

```
const group = new CheckGroup("api-monitoring-group", {
name: "API Monitoring Group",
activated: false,
})
```

**Use cases**: Environment-specific checks, maintenance windows, temporary disabling.

boolean

default: "false"

Whether to mute alerts for all checks in the group. Checks will still run but won’t send notifications. **Usage:**

```
const group = new CheckGroup("api-monitoring-group", {
name: "API Monitoring Group",
muted: true, // Silence all alerts
})
```

**Use cases**: Non-production environments, testing phases, scheduled maintenance.

Frequency

How often to run checks within the group. This frequency applies to all checks in the group unless overridden at the check level. **Usage:**

```
import { CheckGroup, Frequency } from 'checkly/constructs'

const group = new CheckGroup("api-monitoring-group", {
name: "API Monitoring Group",
frequency: Frequency.EVERY_10M,
})
```

**Available frequencies**: `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_24H`

Generally, check groups support all available frequencies, but if a group includes a check type that doesn’t support high frequencies, `npx checkly deploy` will fail. We recommend separating high-frequency ones into their own groups.

string[]

default: "[]"

Public locations for all checks in the group. If this or `privateLocations` is set to a non-empty value, the group’s locations and private locations replace those of every check in the group. **Usage:**

```
const group = new CheckGroup("api-monitoring-group", {
name: "API Monitoring Group",
locations: ["us-east-1", "eu-west-1", "ap-southeast-1"],
})
```

**Use cases**: Global monitoring, regional service coverage, user experience testing.

object

Setting to automatically create and apply Browser checks to a group. **Usage:**

```
const group = new CheckGroup("api-monitoring-group", {
name: "API Monitoring Group",
browserChecks: {
testMatch: "./*.spec.ts",
},
})
```

**Use cases**: Automated test discovery, E2E test organization, user flow monitoring.

object

Setting to automatically create and apply Multistep checks to a group. **Usage:**

```
const group = new CheckGroup("api-multistep-group", {
name: "API Multistep Monitoring Group",
multiStepChecks: {
testMatch: "./*.multi-step.spec.ts",
},
})
```

**Use cases**: Automated test discovery, E2E test organization, user flow monitoring.

## Examples

- API Monitoring Group
- Multi-Service Group
- Regional Group

```
const apiGroup = new CheckGroup("api-monitoring-group", {
name: "API Monitoring",
activated: true,
frequency: Frequency.EVERY_5M,
locations: ["us-east-1", "eu-west-1"],
tags: ["api", "production"],
environmentVariables: [
{ key: "API_BASE_URL", value: "https://api.example.com" },
{ key: "API_VERSION", value: "v2" },
],
alertChannels: [slackChannel],
})

new ApiCheck("users-api", {
name: "Users API",
group: apiGroup,
request: {
method: "GET",
url: "{{API_BASE_URL}}/{{API_VERSION}}/users",
},
})

new ApiCheck("orders-api", {
name: "Orders API",
group: apiGroup,
request: {
method: "GET",
url: "{{API_BASE_URL}}/{{API_VERSION}}/orders",
},
})
```

```
const servicesGroup = new CheckGroup("services-monitoring", {
name: "Core Services Monitoring",
activated: true,
frequency: Frequency.EVERY_10M,
locations: ["us-east-1", "eu-west-1"],
tags: ["services", "infrastructure"],
alertChannels: [emailChannel],
retryStrategy: RetryStrategyBuilder.linearStrategy({
baseBackoffSeconds: 30,
maxRetries: 3,
sameRegion: false,
}),
})

// API checks
new ApiCheck("database-health", {
name: "Database Health",
group: servicesGroup,
request: {
method: "GET",
url: "https://api.example.com/health/database",
},
})

// TCP monitors
new TcpMonitor("redis-connectivity", {
name: "Redis Connectivity",
group: servicesGroup,
request: {
hostname: "redis.example.com",
port: 6379,
},
})

// URL monitors
new UrlMonitor("cdn-availability", {
name: "CDN Availability",
group: servicesGroup,
request: {
url: "https://cdn.example.com/health",
},
})
```

```
const regionalGroup = new CheckGroup("us-east-monitoring", {
name: "US East Region Monitoring",
activated: true,
frequency: Frequency.EVERY_2M,
locations: ["us-east-1"], // Single region focus
tags: ["us-east", "regional"],
runParallel: false, // Round-robin scheduling
alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(2, {
interval: 5,
amount: 2,
}),
})

new ApiCheck("us-east-api", {
name: "US East API Endpoint",
group: regionalGroup,
request: {
method: "GET",
url: "https://us-east-api.example.com/health",
},
})
```

Was this page helpful?

[Suggest edits](https://github.com/checkly/docs/edit/main/constructs/check-group.mdx)[Raise issue](https://github.com/checkly/docs/issues/new?title=Issue%20on%20docs&body=Path:%20/constructs/check-group)

[CheckGroupV2 Construct Previous](https://www.checklyhq.com/docs/constructs/check-group-v2)[PrivateLocation Construct Next](https://www.checklyhq.com/docs/constructs/private-location)

[x](https://x.com/checklyhq)[github](https://github.com/checkly)[linkedin](https://linkedin.com/company/checkly)

[Powered by This documentation is built and hosted on Mintlify, a developer documentation platform](https://www.mintlify.com/?utm_campaign=poweredBy&utm_medium=referral&utm_source=checkly-422f444a)
