Skip to content

Commit 335033c

Browse files
author
sunil
committed
disable unwanted alarms to save cost
1 parent b803bd6 commit 335033c

File tree

1 file changed

+66
-63
lines changed

1 file changed

+66
-63
lines changed

serverless-appv3.yml

+66-63
Original file line numberDiff line numberDiff line change
@@ -195,72 +195,75 @@ resources:
195195
ResourceRecords:
196196
- !GetAtt 'AppV2CloudFrontDistribution.DomainName'
197197

198+
## Disabling Alarms as we dont utilize or not in use anymore
199+
## If we need them in future and if considered as critical alarms then
200+
## we can use https://github.com/intersective/devops-critical-alarms to add here and deploy.
198201

199-
HTTPCode4XXTooHighAlarm:
200-
Condition: LiveServerOnly
201-
Type: 'AWS::CloudWatch::Alarm'
202-
Properties:
203-
AlarmDescription: '${env:AppV3S3Bucket} - receives 4XX HTTP status codes from CDN'
204-
Namespace: 'AWS/CloudFront'
205-
MetricName: 4xxErrorRate
206-
Statistic: Average
207-
Period: 60
208-
EvaluationPeriods: 3
209-
ComparisonOperator: GreaterThanThreshold
210-
Threshold: 3
211-
AlarmActions:
212-
- {'Fn::ImportValue': '${env:STACK_NAME}-ChatBotSNSTopicARN-${env:ENV}'}
213-
Dimensions:
214-
- Name: Region
215-
Value: Global
216-
- Name: DistributionId
217-
Value: !Ref AppV2CloudFrontDistribution
218-
TreatMissingData: notBreaching
219-
Unit: Percent
202+
# HTTPCode4XXTooHighAlarm:
203+
# Condition: LiveServerOnly
204+
# Type: 'AWS::CloudWatch::Alarm'
205+
# Properties:
206+
# AlarmDescription: '${env:AppV3S3Bucket} - receives 4XX HTTP status codes from CDN'
207+
# Namespace: 'AWS/CloudFront'
208+
# MetricName: 4xxErrorRate
209+
# Statistic: Average
210+
# Period: 60
211+
# EvaluationPeriods: 3
212+
# ComparisonOperator: GreaterThanThreshold
213+
# Threshold: 3
214+
# AlarmActions:
215+
# - {'Fn::ImportValue': '${env:STACK_NAME}-ChatBotSNSTopicARN-${env:ENV}'}
216+
# Dimensions:
217+
# - Name: Region
218+
# Value: Global
219+
# - Name: DistributionId
220+
# Value: !Ref AppV2CloudFrontDistribution
221+
# TreatMissingData: notBreaching
222+
# Unit: Percent
220223

221-
HTTPCode5XXTooHighAlarm:
222-
Condition: LiveServerOnly
223-
Type: 'AWS::CloudWatch::Alarm'
224-
Properties:
225-
AlarmDescription: '${env:AppV3S3Bucket} - receives 5XX HTTP status codes from CDN'
226-
Namespace: 'AWS/CloudFront'
227-
MetricName: 5xxErrorRate
228-
Statistic: Average
229-
Period: 60
230-
EvaluationPeriods: 3
231-
ComparisonOperator: GreaterThanThreshold
232-
Threshold: 3
233-
AlarmActions:
234-
- {'Fn::ImportValue': '${env:STACK_NAME}-ChatBotSNSTopicARN-${env:ENV}'}
235-
Dimensions:
236-
- Name: Region
237-
Value: Global
238-
- Name: DistributionId
239-
Value: !Ref AppV2CloudFrontDistribution
240-
TreatMissingData: notBreaching
241-
Unit: Percent
224+
# HTTPCode5XXTooHighAlarm:
225+
# Condition: LiveServerOnly
226+
# Type: 'AWS::CloudWatch::Alarm'
227+
# Properties:
228+
# AlarmDescription: '${env:AppV3S3Bucket} - receives 5XX HTTP status codes from CDN'
229+
# Namespace: 'AWS/CloudFront'
230+
# MetricName: 5xxErrorRate
231+
# Statistic: Average
232+
# Period: 60
233+
# EvaluationPeriods: 3
234+
# ComparisonOperator: GreaterThanThreshold
235+
# Threshold: 3
236+
# AlarmActions:
237+
# - {'Fn::ImportValue': '${env:STACK_NAME}-ChatBotSNSTopicARN-${env:ENV}'}
238+
# Dimensions:
239+
# - Name: Region
240+
# Value: Global
241+
# - Name: DistributionId
242+
# Value: !Ref AppV2CloudFrontDistribution
243+
# TreatMissingData: notBreaching
244+
# Unit: Percent
242245

243-
HTTPCodeTotalErrorRateTooHighAlarm:
244-
Condition: LiveServerOnly
245-
Type: 'AWS::CloudWatch::Alarm'
246-
Properties:
247-
AlarmDescription: '${env:AppV3S3Bucket} - receives Total Error Rate HTTP status codes from CDN'
248-
Namespace: 'AWS/CloudFront'
249-
MetricName: TotalErrorRate
250-
Statistic: Average
251-
Period: 60
252-
EvaluationPeriods: 3
253-
ComparisonOperator: GreaterThanThreshold
254-
Threshold: 3
255-
AlarmActions:
256-
- {'Fn::ImportValue': '${env:STACK_NAME}-ChatBotSNSTopicARN-${env:ENV}'}
257-
Dimensions:
258-
- Name: Region
259-
Value: Global
260-
- Name: DistributionId
261-
Value: !Ref AppV2CloudFrontDistribution
262-
TreatMissingData: notBreaching
263-
Unit: Percent
246+
# HTTPCodeTotalErrorRateTooHighAlarm:
247+
# Condition: LiveServerOnly
248+
# Type: 'AWS::CloudWatch::Alarm'
249+
# Properties:
250+
# AlarmDescription: '${env:AppV3S3Bucket} - receives Total Error Rate HTTP status codes from CDN'
251+
# Namespace: 'AWS/CloudFront'
252+
# MetricName: TotalErrorRate
253+
# Statistic: Average
254+
# Period: 60
255+
# EvaluationPeriods: 3
256+
# ComparisonOperator: GreaterThanThreshold
257+
# Threshold: 3
258+
# AlarmActions:
259+
# - {'Fn::ImportValue': '${env:STACK_NAME}-ChatBotSNSTopicARN-${env:ENV}'}
260+
# Dimensions:
261+
# - Name: Region
262+
# Value: Global
263+
# - Name: DistributionId
264+
# Value: !Ref AppV2CloudFrontDistribution
265+
# TreatMissingData: notBreaching
266+
# Unit: Percent
264267

265268

266269
# FILE storage Bucket

0 commit comments

Comments
 (0)