Skip to content

Commit

Permalink
Toggle alarm tags
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Oct 26, 2023
1 parent 43707af commit ca90fe4
Showing 1 changed file with 104 additions and 104 deletions.
208 changes: 104 additions & 104 deletions spire/templates/apps/dovetail-counts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,20 +168,20 @@ Resources:
Statistic: Sum
Threshold: 0
TreatMissingData: notBreaching
# CountsFunctionElevatedErrorAlarmTags:
# Type: Custom::CloudWatchAlarmTags
# Properties:
# ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
# AlarmArn: !GetAtt CountsFunctionElevatedErrorAlarm.Arn
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:dev:family, Value: Dovetail }
# - { Key: prx:dev:application, Value: Counts }
CountsFunctionElevatedErrorAlarmTags:
Type: Custom::CloudWatchAlarmTags
Properties:
ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
AlarmArn: !GetAtt CountsFunctionElevatedErrorAlarm.Arn
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }

CountsFunctionKinesisIteratorBehindAlarm:
Type: AWS::CloudWatch::Alarm
Expand All @@ -202,21 +202,21 @@ Resources:
Statistic: Maximum
Threshold: 900000 # milliseconds
TreatMissingData: notBreaching
# CountsFunctionKinesisIteratorBehindAlarmTags:
# Type: Custom::CloudWatchAlarmTags
# Condition: IsProduction
# Properties:
# ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
# AlarmArn: !GetAtt CountsFunctionKinesisIteratorBehindAlarm.Arn
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:dev:family, Value: Dovetail }
# - { Key: prx:dev:application, Value: Counts }
CountsFunctionKinesisIteratorBehindAlarmTags:
Type: Custom::CloudWatchAlarmTags
Condition: IsProduction
Properties:
ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
AlarmArn: !GetAtt CountsFunctionKinesisIteratorBehindAlarm.Arn
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }
CountsFunctionKinesisIteratorStalledAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
Expand All @@ -236,21 +236,21 @@ Resources:
Statistic: Maximum
Threshold: 3600000 # milliseconds
TreatMissingData: notBreaching
# CountsFunctionKinesisIteratorStalledAlarmTags:
# Type: Custom::CloudWatchAlarmTags
# Condition: IsProduction
# Properties:
# ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
# AlarmArn: !GetAtt CountsFunctionKinesisIteratorStalledAlarm.Arn
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:dev:family, Value: Dovetail }
# - { Key: prx:dev:application, Value: Counts }
CountsFunctionKinesisIteratorStalledAlarmTags:
Type: Custom::CloudWatchAlarmTags
Condition: IsProduction
Properties:
ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
AlarmArn: !GetAtt CountsFunctionKinesisIteratorStalledAlarm.Arn
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }

CountsFunctionWarnLevelLogMetricFilter:
Type: AWS::Logs::MetricFilter
Expand Down Expand Up @@ -278,21 +278,21 @@ Resources:
Statistic: Sum
Threshold: 0
TreatMissingData: notBreaching
# CountsFunctionLoggedWarnAlarmTags:
# Type: Custom::CloudWatchAlarmTags
# Properties:
# ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
# AlarmArn: !GetAtt CountsFunctionLoggedWarnAlarm.Arn
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
# - { Key: prx:dev:family, Value: Dovetail }
# - { Key: prx:dev:application, Value: Counts }
CountsFunctionLoggedWarnAlarmTags:
Type: Custom::CloudWatchAlarmTags
Properties:
ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
AlarmArn: !GetAtt CountsFunctionLoggedWarnAlarm.Arn
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }

CountsFunctionErrorLevelLogMetricFilter:
Type: AWS::Logs::MetricFilter
Expand Down Expand Up @@ -320,21 +320,21 @@ Resources:
Statistic: Sum
Threshold: 0
TreatMissingData: notBreaching
# CountsFunctionLoggedErrorAlarmTags:
# Type: Custom::CloudWatchAlarmTags
# Properties:
# ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
# AlarmArn: !GetAtt CountsFunctionLoggedErrorAlarm.Arn
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
# - { Key: prx:dev:family, Value: Dovetail }
# - { Key: prx:dev:application, Value: Counts }
CountsFunctionLoggedErrorAlarmTags:
Type: Custom::CloudWatchAlarmTags
Properties:
ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
AlarmArn: !GetAtt CountsFunctionLoggedErrorAlarm.Arn
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }

CountsFunctionMissingArrangementLogMetricFilter:
Type: AWS::Logs::MetricFilter
Expand Down Expand Up @@ -362,21 +362,21 @@ Resources:
Statistic: Sum
Threshold: 100
TreatMissingData: notBreaching
# CountsFunctionMissingArrangementAlarmTags:
# Type: Custom::CloudWatchAlarmTags
# Properties:
# ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
# AlarmArn: !GetAtt CountsFunctionMissingArrangementAlarm.Arn
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
# - { Key: prx:dev:family, Value: Dovetail }
# - { Key: prx:dev:application, Value: Counts }
CountsFunctionMissingArrangementAlarmTags:
Type: Custom::CloudWatchAlarmTags
Properties:
ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
AlarmArn: !GetAtt CountsFunctionMissingArrangementAlarm.Arn
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }

CountsFunctionKinesisFailureLogMetricFilter:
Type: AWS::Logs::MetricFilter
Expand Down Expand Up @@ -405,21 +405,21 @@ Resources:
Statistic: Sum
Threshold: 100
TreatMissingData: notBreaching
# CountsFunctionKinesisFailureAlarmTags:
# Type: Custom::CloudWatchAlarmTags
# Properties:
# ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
# AlarmArn: !GetAtt CountsFunctionKinesisFailureAlarm.Arn
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
# - { Key: prx:dev:family, Value: Dovetail }
# - { Key: prx:dev:application, Value: Counts }
CountsFunctionKinesisFailureAlarmTags:
Type: Custom::CloudWatchAlarmTags
Properties:
ServiceToken: !Ref CloudWatchAlarmTaggerServiceToken
AlarmArn: !GetAtt CountsFunctionKinesisFailureAlarm.Arn
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:ops:cloudwatch-log-group-name, Value: !Ref CountsFunctionLogGroup }
- { Key: prx:dev:family, Value: Dovetail }
- { Key: prx:dev:application, Value: Counts }

# CloudWatch Dashboard
Dashboard:
Expand Down

0 comments on commit ca90fe4

Please sign in to comment.