I recently set up a Windows server and installed the CloudWatch agent. While I can view the logs I wanted on the CloudWatch dashboard, I don't see the CWAgent namespace in the metrics section. My IAM role has full permissions for SSM and CloudWatch. Could anyone help me figure out why the metrics aren't showing up?
3 Answers
Have you checked the local logs maintained by the CloudWatch Agent? They can provide clues for troubleshooting this kind of issue. Here's a helpful link for reference: [Troubleshooting CloudWatch Agent](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/troubleshooting-CloudWatch-Agent.html).
Good news! It looks like the issue is resolved. I realized I had mixed up some permissions. Thanks to everyone for their input, and hopefully, this helps anyone who runs into a similar problem!
Make sure you have a VPC endpoint set up, or that your instance allows egress to CloudWatch. Sometimes, the lack of a specific endpoint can cause metrics not to display properly, even if logs are accessible.
Do I still need to create one if my EC2 instance is in the default VPC?

Yeah, I checked them, and everything seems fine.