Closed akanungo22 closed 1 year ago
services:
my-app: {}
x-alarms:
high-cpu:
Properties:
Dimensions: service::my-app
or
services:
my-app:
x-alarms:
high-cpu:
Properties: {} # Dimensions etc. replaced with the service values
would resolve to
services:
my-app: {}
x-alarms:
high-cpu:
Properties:
Dimensions:
- Name: ClusterName
Value: <the cluster name>
- ServiceName:
Value: <the ECS Service ID>
services: my-app: {}
x-alarms: high-cpu: Properties: Dimensions:
Is this service ID or the service name?
Implemented & will be released officially (and documented) with 0.23
x-alarms:
service-alarm:
Properties:
ActionsEnabled: true
AlarmDescription: A simple CW alarm
ComparisonOperator: GreaterThanOrEqualToThreshold
DatapointsToAlarm: 1
EvaluationPeriods: 5
MetricName: TotalLagForTopicAndConsumerGroup
Namespace: lag-metrics-v4
Period: 60
Statistic: Sum
Threshold: 1.0
TreatMissingData: notBreaching
MacroParameters:
ServiceName: bignicefamily
Fixed in #650
In
x-alarms
, when have a way to automatically set the Dimensions for a service (cluster and service name).