Created
September 4, 2020 20:45
-
-
Save bdnf/61514973b22fb33fdf781d692307700b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fetch configuration from SSM parameter store: | |
# /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c ssm:configuration-parameter-store-name -s | |
Fetch config from local path: | |
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m onPremise -s -c /etc/cwagentconfig/metrics.json | |
For check the status, run: | |
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment