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 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南