awslabs / collectd-cloudwatch

A collectd plugin for sending data to Amazon CloudWatch
MIT License
200 stars 132 forks source link

Custom dimensions for CloudWatch #10

Open LudovitVarga opened 8 years ago

LudovitVarga commented 8 years ago

Currently plugin send to ClodWatch only two dimensions Host and PluginInstance. It would be nice if plugin was able to send at least one custom dimension (custom name and constant value).

My use case: I use one CloudWatch to monitor 1..n EC2 instances in different environments (TEST-A, TEST-B, etc). Using host to differentiate them is sometime good enough but for clarity is much more better use filter by "Env=TEST-A" than "Host=TEST-A-*".

ghost commented 7 years ago

I would like the custom dimension mainly for AWS Auto-scaling integration and being able to scale based on aggregated metrics linked via the name of the Autoscaling group. For example:

Name=AutoScalingGroupName Value=my-autoscaling-group

berenddeboer commented 7 years ago

And it would be good if we use "InstanceId" instead of Host, matches usage in other metrics.