# CloudWatch Agent

CloudWatch Agent is a self-hosted monitoring & logging app. The Amazon CloudWatch Agent is an AWS agent you install on Amazon EC2 instances and on-premises servers to collect system and process metrics and application logs and send them to Amazon CloudWatch for dashboards,... It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5753/cloudwatch-agent

## Description

The Amazon CloudWatch Agent is an AWS agent you install on Amazon EC2 instances and on-premises servers to collect system and process metrics and application logs and send them to Amazon CloudWatch for dashboards, alarms, and troubleshooting.

## Platform availability

Available on 0 of 10 platforms.

## Health score

69/100 (Good), based on 3 of 4 factors.
- Maintained: 100 (last commit 12 days ago)
- Popular: 55 (556 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)

## Links

- GitHub: https://github.com/aws/amazon-cloudwatch-agent
- Docker Hub: https://hub.docker.com/r/amazon/cloudwatch-agent
- Documentation: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html

## Common questions

### Should I still use the older CloudWatch Logs agent?

The unified CloudWatch agent is the recommended replacement for the older CloudWatch Logs agent, and the older logs agent is deprecated.

### What placeholders must I replace before running the Azure onboarding script?

Replace the placeholders with your VM resource ID, AWS role ARN, and AWS region. These values tell the script which VM to configure and how it may reach AWS.

### How do I build and package the CloudWatch agent from source?

Install Go and rpm-build, then run make build to build the agent or make release to package it into RPM, DEB, and ZIP files.

### How do I apply local CloudWatch agent configuration changes for troubleshooting?

Edit the local configuration file and restart the agent with the amazon-cloudwatch-agent-ctl script.

---
Source: Our Local Host (https://ourlocalhost.com/app/5753/cloudwatch-agent), the self-hosted and open-source app directory.
