diff --git a/cli/attaching-git-metadata.mdx b/cli/attaching-git-metadata.mdx index f14def0d..c113d63b 100644 --- a/cli/attaching-git-metadata.mdx +++ b/cli/attaching-git-metadata.mdx @@ -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 -``` \ No newline at end of file +``` + +## 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. \ No newline at end of file diff --git a/integrations/observability/prometheus.mdx b/integrations/observability/prometheus.mdx index 0665e361..0b8b2f33 100644 --- a/integrations/observability/prometheus.mdx +++ b/integrations/observability/prometheus.mdx @@ -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. + +`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). + + ### Labels | Label | Present on | Value |