数据采集 采集源配置 AWS Health指标采集
AWS Health指标采集
简介
采集 AWS Health 事件指标,上报到 DataFlux 中
前置条件
- 已安装 DataKit(DataKit 安装文档)
- 需要有AWS帐号只读权限的 Access Key ID 和 Access Key Secret(为了保证你的数据安全请不要使用超过只读权限的 Access Key ID 和 Access Key Secret)
配置
进入 DataKit 安装目录下的 conf.d/aws
目录,复制 awshealth.conf.sample
并命名为 awshealth.conf
。示例如下:
[[inputs.awshealth]]
# ##(required)
access_key_id = ''
access_key_secret = ''
region = 'cn-north-1'
# ##(optional) custom metric name, default is awshealth
#metric_name = ''
# ##(optional) collect interval, default is 1min.
#interval = '1m'
# ##(optional) custom tags
#[inputs.awshealth.tags]
#key1 = "val1"
配置好后,重启 DataKit 即可生效
采集指标
- tags:
指标 | 描述 |
---|---|
EventTypeCategory | 事件类型, 取值范围: issue, accountNotification, scheduledChange, investigation |
StatusCode | 事件状态,包括: open, closed, upcoming |
EventTypeCode | 事件类型标识, 例: AWS_EC2_SYSTEM_MAINTENANCE_EVENT |
Service | 和事件相关的服务, 例ES2, RDS |
Region | 区域 |
- fields:
指标 | 描述 | 类型 |
---|---|---|
Arn | 事件ID | string |
StartTime | 事件开始时间 | string |
EndTime | 事件结束时间 | string |
Description | 事件描述 | string |