command
Version:
v0.0.0-...-44274a8
Opens a new window with list of versions in this module.
Published: Aug 27, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
CloudWatch
Run Unified Agent on EC2 - for memory usage & logs forwarding
-
attach CloudWatchAgentServerPolicy
IAM Policy to EC2 Instance Profile's Role
-
ssh to your EC2 instance
-
download
wget https://s3.us-east-1.amazonaws.com/amazoncloudwatch-agent-us-east-1/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm
-
install
sudo rpm -U ./amazon-cloudwatch-agent.rpm
-
create Unified Agent config file at /opt/aws/amazon-cloudwatch-agent/bin/config.json
, or run config wizard:
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard
-
run Unified Agent
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json -s
-
new metrics should show up under NameSpace CWAgent
and logs under log_group_name configured in config file
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.