Skip to content

Commit 713c289

Browse files
feat(gocd): Update monitor IDs (#5391)
1 parent 57171e5 commit 713c289

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

gocd/templates/pipelines/processing.libsonnet

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ local gocdtasks = import 'github.com/getsentry/gocd-jsonnet/libs/gocd-tasks.libs
44
// List of single tenant regions that use sentry-st organization
55
local single_tenants = ['disney', 'geico', 'goldmansachs', 'ly', 's4s'];
66

7+
// List of datadog monitors to check during the soak time in the different regions
8+
local soak_monitors = {
9+
s4s: '14146876 154096678 237863001',
10+
us: '14146876 154096671 237862997',
11+
default: '14146876',
12+
};
13+
714
// The purpose of this stage is to let the deployment soak for a while and
815
// detect any issues that might have been introduced.
916
local soak_time(region) =
@@ -20,7 +27,7 @@ local soak_time(region) =
2027
DATADOG_API_KEY: '{{SECRET:[devinfra][sentry_datadog_api_key]}}',
2128
DATADOG_APP_KEY: '{{SECRET:[devinfra][sentry_datadog_app_key]}}',
2229
// Datadog monitor IDs for the soak time
23-
DATADOG_MONITOR_IDS: '14146876 154096671 154096678 165254216',
30+
DATADOG_MONITOR_IDS: if std.objectHas(soak_monitors, region) then soak_monitors[region] else soak_monitors.default,
2431
// Sentry projects to check for errors <project_id>:<project_slug>:<service>
2532
SENTRY_PROJECTS: if region == 's4s' then '1513938:sentry-for-sentry:relay' else '4:relay:relay 9:pop-relay:relay-pop',
2633
SENTRY_SINGLE_TENANT: if region == 's4s' then 'true' else 'false',
@@ -82,7 +89,7 @@ local deploy_canary(region) =
8289
DATADOG_API_KEY: '{{SECRET:[devinfra][sentry_datadog_api_key]}}',
8390
DATADOG_APP_KEY: '{{SECRET:[devinfra][sentry_datadog_app_key]}}',
8491
// Datadog monitor IDs for the canary deployment
85-
DATADOG_MONITOR_IDS: '14146876 154096671 165254216',
92+
DATADOG_MONITOR_IDS: '14146876 154096671 237862997',
8693
// Sentry projects to check for errors <project_id>:<project_slug>:<service>
8794
SENTRY_PROJECTS: '4:relay:relay 9:pop-relay:relay-pop',
8895
SENTRY_SINGLE_TENANT: 'false',

0 commit comments

Comments
 (0)