aws-samples / amazon-cloudwatch-auto-alarms

Automatically create and configure Amazon CloudWatch alarms for EC2 instances, RDS, and AWS Lambda using tags for standard and custom CloudWatch Metrics.
MIT No Attribution
90 stars 84 forks source link

Can't create alarms with dimensions as maximum length of a tag key is 128 chars #53

Open batwad opened 5 months ago

batwad commented 5 months ago

This is a really useful project, but I'm unable to create a disk alarm on Windows servers in an autoscaling group because the tag key can be a max of 128 chars (ref: https://docs.aws.amazon.com/config/latest/APIReference/API_Tag.html)

The tag I'm trying to create is AutoAlarm-CWAgent-LogicalDisk % Free Space-AutoScalingGroupName--objectname-LogicalDisk-instance-C:-LessThanThreshold-10m-1-Minimum-C: drive is less than 30% free for 10 minutes with value 30 but this doesn't seem possible. Even before I get to the description this is 133 chars.

Does this mean this project can only be used for basic alarms? It appears to support dimensions, but it's very easy to exhaust 128 chars.