examples

command
v0.0.0-...-44274a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 6 Imported by: 0

README

CloudWatch

Run Unified Agent on EC2 - for memory usage & logs forwarding

  1. attach CloudWatchAgentServerPolicy IAM Policy to EC2 Instance Profile's Role

  2. ssh to your EC2 instance

  3. download

    wget https://s3.us-east-1.amazonaws.com/amazoncloudwatch-agent-us-east-1/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm
    
  4. install

    sudo rpm -U ./amazon-cloudwatch-agent.rpm
    
  5. 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
    
  6. 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
    
  7. new metrics should show up under NameSpace CWAgent and logs under log_group_name configured in config file

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL