Skip to content

Commit

Permalink
Remove ALB anomaly detector
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Feb 3, 2025
1 parent 673aeb4 commit bca260e
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions spire/templates/shared-alb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,55 +411,6 @@ Resources:
Threshold: 5
TreatMissingData: notBreaching

AnamolousDailyTrafficAnomalyDetector:
Type: AWS::CloudWatch::AnomalyDetector
Condition: IsProduction
Properties:
Dimensions:
- Name: LoadBalancer
Value: !GetAtt Alb.LoadBalancerFullName
MetricName: RequestCount
Namespace: AWS/ApplicationELB
Stat: Sum
AnamolousDailyTrafficAlarm:
Type: AWS::CloudWatch::Alarm
Condition: IsProduction
Properties:
AlarmName: !Sub ERROR [Shared] Load balancer <${EnvironmentTypeAbbreviation}> ANOMALOUS DAILY TRAFFIC
AlarmDescription: !Sub >-
The shared ${EnvironmentType} application load balancer is getting an
unusually high volume of traffic, that does not match historical
patterns. This doesn't indicate a service issue, but it may be worth
trying to identify the source of the traffic if it is sustained.
ComparisonOperator: GreaterThanUpperThreshold
EvaluationPeriods: 1
Metrics:
- Id: ad1
Expression: ANOMALY_DETECTION_BAND(m1, 2) # 2 here means 2 std dev
Label: RequestCount (expected)
ReturnData: true
- Id: m1
MetricStat:
Metric:
Dimensions:
- Name: LoadBalancer
Value: !GetAtt Alb.LoadBalancerFullName
MetricName: RequestCount
Namespace: AWS/ApplicationELB
Period: 3600
Stat: Sum
ReturnData: true
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:application, Value: Common }
ThresholdMetricId: ad1
TreatMissingData: notBreaching

LatencyGroupDomainRecordSetGroup:
Type: AWS::Route53::RecordSetGroup
Properties:
Expand Down

0 comments on commit bca260e

Please sign in to comment.