aws/amazon-cloudwatch-agent

Example for append_dimensions using a value that depends on Amazon EC2 metadata

Closed this issue · 2 comments

Is your feature request related to a problem? Please describe.
Currently there are no config file examples that showcase how this should be done.

Describe the solution you'd like
I would like to add a dimension that contains the value of the instances tag where the cloudwatch agent is running. Let's say the ec2 instance is tagged with Role = X and I would like to append the dimension Role that contains the value of the tag Role that is retrived in this way

Describe alternatives you've considered
I haven't been able to find any config file examples that showcase the line from the documentation
If you specify a value that depends on Amazon EC2 metadata and you use proxies, you must make sure that the server can access the endpoint for Amazon EC2. For more information about these endpoints, see Amazon Elastic Compute Cloud (Amazon EC2) in the Amazon Web Services General Reference.

Additional context
Add any other context or screenshots about the feature request here.

This issue was marked stale due to lack of activity.

Closing this because it has stalled. Feel free to reopen if this issue is still relevant, or to ping the collaborator who labeled it stalled if you have any questions.