From 130420fde0e5e4a30484c8ac902ec9e61b8e1f2a Mon Sep 17 00:00:00 2001 From: nutrina <8137830+nutrina@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:12:45 +0200 Subject: [PATCH] feat: updating alarm settings for cc-v1-st-bulk-DELETE-0 (#727) * feat: updating alarm settings for cc-v1-st-bulk-DELETE-0 * fix: adjust alarm, acording to requirement in the ticket --------- Co-authored-by: Gerald Iakobinyi-Pich --- infra/aws/index.ts | 8 ++++++++ infra/lib/scorer/loadBalancer.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/infra/aws/index.ts b/infra/aws/index.ts index 088f4d21e..1da9dde5b 100644 --- a/infra/aws/index.ts +++ b/infra/aws/index.ts @@ -201,6 +201,14 @@ const alarmConfigurations: AlarmConfigurations = { datapointsToAlarm: 10, evaluationPeriods: 15, }, + "cc-v1-st-bulk-DELETE-0": { + percentHTTPCodeTarget4XX: 0.5, // 0..1 value for target error codes + percentHTTPCodeTarget5XX: 0.01, // 0..1 value for target error codes + targetResponseTime: 2, + period: 60, + datapointsToAlarm: 7, + evaluationPeriods: 10, + }, }; const CERAMIC_CACHE_SCORER_ID = CERAMIC_CACHE_SCORER_ID_CONFG[stack]; diff --git a/infra/lib/scorer/loadBalancer.ts b/infra/lib/scorer/loadBalancer.ts index 0197f8bfc..06de1229d 100644 --- a/infra/lib/scorer/loadBalancer.ts +++ b/infra/lib/scorer/loadBalancer.ts @@ -24,6 +24,7 @@ export type AlarmConfigurations = { "cc-v1-score-POST-0": TargetGroupAlarmsConfiguration; "cc-v1-st-bulk-PATCH-0": TargetGroupAlarmsConfiguration; "submit-passport-0": TargetGroupAlarmsConfiguration; + "cc-v1-st-bulk-DELETE-0": TargetGroupAlarmsConfiguration; }; export function createLoadBalancerAlarms(