1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hello, thanks for reaching out!
Unfortunately it's not possible at this time to configure multiple namespace destinations within a CloudWatch Agent metrics configuration, even when appending multiple config files with separate namespaces in the metrics sections.
There is a feature request in place for this ability, however, I'm unable to give an ETA on when this feature might be implemented for the CloudWatch Agent. You can keep an eye on the AWS What's New page for updates.
For the time being, the metrics from an Agent configuration will all have to utilize the same namespace. For increased ease of tracking these metrics, you do have the option of appending custom dimensions to each metric. Example:
{
"metrics": {
"append_dimensions": {
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
"ImageId": "${aws:ImageId}",
"InstanceId": "${aws:InstanceId}",
"InstanceType": "${aws:InstanceType}"
},
"metrics_collected": {
"Memory": {
"measurement": [
"% Committed Bytes In Use"
],
"metrics_collection_interval": 60,
"append_dimensions": {
"CustomDimensionName": "MemoryMetric"
}
},
"LogicalDisk": {
"measurement": [
"% Free Space"
],
"metrics_collection_interval": 60,
"resources": [
"*"
],
"append_dimensions": {
"CustomDimensionName": "DiskMetric"
}
}
}
}
}
관련 콘텐츠
- AWS 공식업데이트됨 7달 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전