Skip to content

Commit

Permalink
Treat missing data for some alarms as missing
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Sep 10, 2024
1 parent b262049 commit 7eacadb
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion spire/templates/apps/castle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ Resources:
Statistic: Average
Threshold: 50000000000
Unit: Bytes
TreatMissingData: notBreaching
TreatMissingData: missing

# Resources that need access to the Castle DB (clients) belong to this
# security group. It allows traffic to the cluster security group.
Expand Down
8 changes: 4 additions & 4 deletions spire/templates/apps/cms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ Resources:
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref WorkerTaskLogGroup }
- { Key: prx:dev:application, Value: CMS }
Threshold: 60
TreatMissingData: notBreaching
TreatMissingData: missing
AudioCallbackQueueVerySlowAlarm:
Type: AWS::CloudWatch::Alarm
Condition: IsProduction
Expand Down Expand Up @@ -667,7 +667,7 @@ Resources:
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref WorkerTaskLogGroup }
- { Key: prx:dev:application, Value: CMS }
Threshold: 300
TreatMissingData: notBreaching
TreatMissingData: missing
AudioCallbackDeadletterQueue:
Type: AWS::SQS::Queue
DeletionPolicy: Delete
Expand Down Expand Up @@ -765,7 +765,7 @@ Resources:
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref WorkerTaskLogGroup }
- { Key: prx:dev:application, Value: CMS }
Threshold: 60
TreatMissingData: notBreaching
TreatMissingData: missing
ImageCallbackQueueVerySlowAlarm:
Type: AWS::CloudWatch::Alarm
Condition: IsProduction
Expand Down Expand Up @@ -794,7 +794,7 @@ Resources:
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref WorkerTaskLogGroup }
- { Key: prx:dev:application, Value: CMS }
Threshold: 300
TreatMissingData: notBreaching
TreatMissingData: missing
ImageCallbackDeadletterQueue:
Type: AWS::SQS::Queue
DeletionPolicy: Delete
Expand Down
12 changes: 6 additions & 6 deletions spire/templates/apps/dovetail-analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Analytics }
Threshold: 900000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing
Unit: Milliseconds

AnalyticsBigqueryFunctionKinesisIteratorStalledAlarm:
Expand Down Expand Up @@ -191,7 +191,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Analytics }
Threshold: 3600000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing
Unit: Milliseconds

AnalyticsBigqueryFunctionDownloadsMetricFilter:
Expand Down Expand Up @@ -620,7 +620,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Analytics }
Threshold: 900000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing
Unit: Milliseconds
AnalyticsDynamoDbFunctionKinesisIteratorStalledAlarm:
Type: AWS::CloudWatch::Alarm
Expand Down Expand Up @@ -649,7 +649,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Analytics }
Threshold: 3600000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing
Unit: Milliseconds

AnalyticsDynamoDbFunctionErrorLevelLogMetricFilter:
Expand Down Expand Up @@ -833,7 +833,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Analytics }
Threshold: 900000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing
Unit: Milliseconds
AnalyticsPingbacksFunctionKinesisIteratorStalledAlarm:
Type: AWS::CloudWatch::Alarm
Expand Down Expand Up @@ -862,7 +862,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Analytics }
Threshold: 3600000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing
Unit: Milliseconds

AnalyticsPingbacksFunctionErrorLevelLogMetricFilter:
Expand Down
4 changes: 2 additions & 2 deletions spire/templates/apps/dovetail-counts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }
Threshold: 900000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing
CountsFunctionKinesisIteratorStalledAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand Down Expand Up @@ -236,7 +236,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }
Threshold: 3600000 # milliseconds
TreatMissingData: notBreaching
TreatMissingData: missing

CountsFunctionWarnLevelLogMetricFilter:
Type: AWS::Logs::MetricFilter
Expand Down
4 changes: 2 additions & 2 deletions spire/templates/apps/exchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ Resources:
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:application, Value: Exchange }
Threshold: 50
TreatMissingData: notBreaching
TreatMissingData: missing

DeliveryUpdateQueueAlarm:
Type: AWS::CloudWatch::Alarm
Expand Down Expand Up @@ -1036,7 +1036,7 @@ Resources:
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:application, Value: Exchange }
Threshold: 100
TreatMissingData: notBreaching
TreatMissingData: missing

FixerAudioQueue:
Type: AWS::SQS::Queue
Expand Down
6 changes: 3 additions & 3 deletions spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Feeder }
Threshold: 900 # 15 minutes; ApproximateAgeOfOldestMessage is reported in seconds
TreatMissingData: notBreaching
TreatMissingData: missing
DefaultJobDeadletterQueue:
Type: AWS::SQS::Queue
DeletionPolicy: Delete
Expand Down Expand Up @@ -330,7 +330,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Feeder }
Threshold: 3960 # 66 minutes; ApproximateAgeOfOldestMessage is reported in seconds
TreatMissingData: notBreaching
TreatMissingData: missing
PublishingJobDeadletterQueue:
Type: AWS::SQS::Queue
DeletionPolicy: Delete
Expand Down Expand Up @@ -434,7 +434,7 @@ Resources:
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Feeder }
Threshold: 900 # 15 minutes; ApproximateAgeOfOldestMessage is reported in seconds
TreatMissingData: notBreaching
TreatMissingData: missing
FixerCallbackDeadletterQueue:
Type: AWS::SQS::Queue
DeletionPolicy: Delete
Expand Down
1 change: 0 additions & 1 deletion spire/templates/apps/s3-signing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ Resources:
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:application, Value: S3 Signing Service }

Threshold: 500
TreatMissingData: notBreaching

Expand Down
4 changes: 2 additions & 2 deletions spire/templates/shared-memcached.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Resources:
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:application, Value: Common }
Threshold: 33000000
TreatMissingData: notBreaching
TreatMissingData: missing

SharedMemcachedHighSwapUsageAlarm:
Type: AWS::CloudWatch::Alarm
Expand Down Expand Up @@ -147,7 +147,7 @@ Resources:
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:application, Value: Common }
Threshold: 50000000
TreatMissingData: notBreaching
TreatMissingData: missing

Outputs:
CacheName:
Expand Down

0 comments on commit 7eacadb

Please sign in to comment.