telegraf AWS cloudwatch input configuration

[[inputs.cloudwatch]]
# ## Amazon Region
region = ‘ap-northeast-2a’

# AWS IAM 에서 생성한 값을 입력
access_key = “djfdlasjfiemcmc”
secret_key = “jljkljijifefmm120Zdfjdkfjme”
#
# ## Requested CloudWatch aggregation Period (required – must be a multiple of 60s)
period = ‘1m’
# ## Metric Statistic Namespace (required) 이 값은 AWS에서 정한 namespace 를 찾아서 입력한다. EC2일 경우 아래와 같이 입력하고, ELB일 경우 AWS/ELB 로 입력한다.
namespace = ‘AWS/EC2’
#
# ## Metrics to Pull (optional)
# ## Defaults to all Metrics in Namespace if nothing is provided
# ## Refreshes Namespace available metrics every 1h
[[inputs.cloudwatch.metrics]]
[[inputs.cloudwatch.metrics.dimensions]]
name = ‘InstanceId’
value = ‘your_instance_id’

답글 남기기