How to start the cloudwatch agent in container?

后端 未结 5 1586
轮回少年
轮回少年 2021-02-09 02:54

From the docker hub there is an image which is maintained by amazon.

Any one know how to configure and start the container as I cannot find any documen

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 03:29

    This is from official Documentation:

    sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:configuration-file-path -s
    

    here the Docs:

    https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-commandline-fleet.html#start-CloudWatch-Agent-EC2-commands-fleet

    Installation path may be different, but that is how the agent is started as per docs.

提交回复
热议问题