Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion cli/attaching-git-metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,21 @@ Or, if you want to set repo URL you invoke:

```bash Terminal
CHECKLY_REPO_URL="https://my.git.solution/project/" npx checkly test
```
```

## Working with multiple repositories

Each `checkly test --record` or `checkly deploy` run attaches one repository URL. If your checks live in more than one repository, for example a backend and a frontend repository, give each repository its own Checkly project: a `checkly.config.ts` with a unique [`logicalId`](/constructs/project#param-logical-id) and its own [`repoUrl`](/constructs/project#param-repo-url).

```ts checkly.config.ts
import { defineConfig } from 'checkly'

export default defineConfig({
projectName: 'Backend monitoring',
logicalId: 'backend-monitoring',
repoUrl: 'https://github.com/acme/backend',
/* More options... */
})
```

Do not deploy two repositories with the same `logicalId`. A deploy deletes the checks in the project that its code does not declare, so the second repository's deploy removes the first one's checks.
4 changes: 4 additions & 0 deletions integrations/observability/prometheus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ checkly_check_status{name="Passing Browser Check",status="degraded"} 0

`checkly_check_status` can be useful for viewing the current status of a check, whereas `checkly_check_result_total` can be useful for calculating overall statistics.

<Note>
`checkly_check_result_total` counts check results for statistics and alerting. It is not a billing measure and does not match the usage shown on the [Billing page](https://app.checklyhq.com/settings/account/billing) or by [`checkly account usage summary`](/cli/checkly-account).
</Note>

### Labels

| Label | Present on | Value |
Expand Down
Loading