4

For monitoring purposes, we're pulling AWS/EC2 instances statistics data from CloudWatch and save it to InfluxDB.

We're using Telegraf to do this.

However, when pulling the data from Cloudwatch, it doesn't contain the instance tags or env_variables, only the standard instance fields (instance_id, for example)

Is there a way to get this data when pulling the stats? Some other agent? A Lambda function?

2
  • Are you looking for an aws cli call to make? If so, aws ecs describe-task-definition may be what you want for getting environment variables. I can write up a bit more about it if that's correct.
    – Alex
    Commented Jul 20, 2017 at 13:21
  • I am using totalcloud.io . It pulls data from CloudWatch including tags and some more. Check if it helps. Commented Sep 27, 2017 at 7:07

1 Answer 1

2

CloudWatch metrics contain "dimensions" that loosely match InfluxDB's concept of "tags". The list of dimensions available for EC2 metrics is available in the AWS documentation. Instances tags are not available and I'm not sure what you mean by env_variables but since all that is supported is

  • AutoScalingGroupName
  • ImageId
  • InstanceId
  • InstanceType

the answer is still going to be this is not possible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.