Difference between revisions of "AWS CloudWatch"
From Indie IT Wiki
Plittlefield (talk | contribs) (Created page with "== Introduction == == CloudWatch Agent == Commands ... /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard n /opt/aws/amazon-cloudwatch-agent/bin/...") |
Plittlefield (talk | contribs) |
||
Line 57: | Line 57: | ||
} | } | ||
} | } | ||
+ | |||
+ | [[Category:Amazon]] | ||
+ | [[Category:Cloud]] | ||
+ | [[Category:Software]] |
Latest revision as of 12:04, 7 May 2023
Introduction
CloudWatch Agent
Commands ...
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard n /opt/aws/amazon-cloudwatch-agent/bin/config.json amazon-cloudwatch-agent-ctl -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json -a fetch-config -s systemctl enable amazon-cloudwatch-agent.service systemctl start amazon-cloudwatch-agent.service /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a status
Config ...
{ "agent": { "metrics_collection_interval": 60, "run_as_user": "root" }, "metrics": { "metrics_collected": { "cpu": { "measurement": [ "cpu_usage_user" ], "metrics_collection_interval": 60, "totalcpu": true }, "disk": { "measurement": [ "used_percent" ], "metrics_collection_interval": 60, "resources": [ "/" ] }, "mem": { "measurement": [ "mem_used_percent" ], "metrics_collection_interval": 60 }, "net": { "measurement": [ "bytes_sent", "bytes_recv" ], "metrics_collection_interval": 60, "resources": [ "eth0" ] } } } }