103 lines
2.1 KiB
JSON
103 lines
2.1 KiB
JSON
|
{
|
||
|
"metrics": {
|
||
|
"append_dimensions": {
|
||
|
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
|
||
|
"ImageId": "${aws:ImageId}",
|
||
|
"InstanceId": "${aws:InstanceId}",
|
||
|
"InstanceType": "${aws:InstanceType}"
|
||
|
},
|
||
|
"aggregation_dimensions": [
|
||
|
[
|
||
|
"InstanceId"
|
||
|
],
|
||
|
[
|
||
|
"InstanceType"
|
||
|
],
|
||
|
[
|
||
|
"AutoScalingGroupName"
|
||
|
],
|
||
|
[
|
||
|
"InstanceId",
|
||
|
"InstanceType"
|
||
|
]
|
||
|
],
|
||
|
"metrics_collected": {
|
||
|
"collectd": {
|
||
|
"metrics_aggregation_interval": 60
|
||
|
},
|
||
|
"procstat": [
|
||
|
{
|
||
|
"pattern": "/usr/sbin/sshd",
|
||
|
"measurement": [
|
||
|
"cpu_usage",
|
||
|
"memory_rss"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"pattern": "crond",
|
||
|
"measurement": [
|
||
|
"cpu_usage",
|
||
|
"memory_rss"
|
||
|
],
|
||
|
"metrics_collection_interval": 10
|
||
|
}
|
||
|
],
|
||
|
"cpu": {
|
||
|
"measurement": [
|
||
|
"cpu_usage_idle",
|
||
|
"cpu_usage_iowait",
|
||
|
"cpu_usage_user",
|
||
|
"cpu_usage_system"
|
||
|
],
|
||
|
"metrics_collection_interval": 60,
|
||
|
"resources": [
|
||
|
"*"
|
||
|
],
|
||
|
"totalcpu": false
|
||
|
},
|
||
|
"disk": {
|
||
|
"measurement": [
|
||
|
"used_percent",
|
||
|
"inodes_free"
|
||
|
],
|
||
|
"metrics_collection_interval": 60,
|
||
|
"resources": [
|
||
|
"*"
|
||
|
],
|
||
|
"ignore_file_system_types": [
|
||
|
"sysfs",
|
||
|
"devtmpfs",
|
||
|
"tmpfs"
|
||
|
]
|
||
|
},
|
||
|
"diskio": {
|
||
|
"measurement": [
|
||
|
"io_time"
|
||
|
],
|
||
|
"metrics_collection_interval": 60,
|
||
|
"resources": [
|
||
|
"*"
|
||
|
]
|
||
|
},
|
||
|
"mem": {
|
||
|
"measurement": [
|
||
|
"mem_used_percent"
|
||
|
],
|
||
|
"metrics_collection_interval": 60
|
||
|
},
|
||
|
"statsd": {
|
||
|
"metrics_aggregation_interval": 60,
|
||
|
"metrics_collection_interval": 60,
|
||
|
"service_address": ":8125"
|
||
|
},
|
||
|
"swap": {
|
||
|
"measurement": [
|
||
|
"swap_used_percent"
|
||
|
],
|
||
|
"metrics_collection_interval": 60
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|