Skip to content

Instantly share code, notes, and snippets.

@andyfase
Created December 2, 2020 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyfase/49cfb70bc29a15730d78bfe98840fd24 to your computer and use it in GitHub Desktop.
Save andyfase/49cfb70bc29a15730d78bfe98840fd24 to your computer and use it in GitHub Desktop.
{
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/opt/shibboleth-idp/logs/idp-audit.log",
"log_group_name": "<ENV>-/opt/shibboleth-idp/logs/idp-audit.log",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/opt/shibboleth-idp/logs/idp-consent-audit.log",
"log_group_name": "<ENV>-/opt/shibboleth-idp/logs/idp-consent-audit.log",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/opt/shibboleth-idp/logs/idp-warn.log",
"log_group_name": "<ENV>-/opt/shibboleth-idp/logs/idp-warn.log",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/opt/ubc-tou-pwe/logs/ubc_security_policy.log",
"log_group_name": "<ENV>-/opt/ubc-tou-pwe/logs/ubc_security_policy.log",
"log_stream_name": "{instance_id}"
}
]
}
}
},
"metrics": {
"metrics_collected": {
"cpu": {
"resources": [
"*"
],
"measurement": [
{"name": "cpu_usage_idle", "rename": "CPU_USAGE_IDLE", "unit": "Percent"},
{"name": "cpu_usage_nice", "unit": "Percent"},
"cpu_usage_guest"
],
"metrics_collection_interval": 60
},
"mem": {
"measurement": [
"mem_used",
"mem_used_percent",
"mem_cached",
"mem_total"
],
"metrics_collection_interval": 60
},
"netstat": {
"measurement": [
"tcp_established",
"tcp_syn_sent",
"tcp_close"
],
"metrics_collection_interval": 60
},
"disk": {
"measurement": [
"used_percent"
],
"resources": [
"*"
],
"drop_device": true
},
"processes": {
"measurement": [
"running",
"sleeping",
"dead"
]
}
},
"append_dimensions": {
"ImageId": "\${aws:ImageId}",
"InstanceId": "\${aws:InstanceId}",
"InstanceType": "\${aws:InstanceType}",
"AutoScalingGroupName": "\${aws:AutoScalingGroupName}"
},
"aggregation_dimensions" : [["AutoScalingGroupName"], ["InstanceId", "InstanceType"],[]]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment