How to use instance metadata from within Cloudwatch agent config

0

I would like to add a dimension to several metrics using "append_dimensions" into Cloudwatch agent config. As specified here, it says "If you specify a value that depends on Amazon EC2 metadata". How do I specify a value, of a specific instance tags from instance metadata, for example? Is it "append_dimensions": { "Environment": <how to reach an instance tag called Environment> }?

已提问 1 年前70 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则