Monitoring Applications: Custom CloudWatch Metrics Using AWS Systems Manager

SQL Server Maintenance Plans
July 30, 2019

By default monitoring, we will get only metrics Like CPUUtilization, StatusCheckFailed_System, and StatusCheckFailed_Instance, etc.

If we want to monitor Custom metrics (Memused, Logical disk usage, Autoscaling metrics, etc.), we must install and configure the SSM agent to send data to AWS CloudWatch.

Find below the steps to download, install and configure SSM agents to send custom metrics to AWS Cloudwatch.

Log in to your instance by using Remote Desktop.

Download the latest version of SSM Agent to your instance. You have two options for downloading:

1. PowerShell:

Run the following PowerShell command. This command lets you download SSM Agent without adjusting Internet Explorer (IE) Enhanced Security settings.

Running powershell command

Invoke-WebRequest -OutFile $env:USERPROFILE\\Desktop\\SSMAgent_latest.exe

Download the latest version of SSM Agent to your instance by using the following link. If you want, update this URL with a region-specific URL.

Run the downloaded AmazonSSMAgentSetup.exe file to install SSM Agent.

Start or restart SSM Agent by sending the following command in PowerShell:

Restart-Service AmazonSSMAgent

Update SSM agent on instance.

Go to Systems Manager:

In Run a Command selects AWS-UpdateSSMAgent.

Selecting AWS-UpdateSSMAgent in Run command

In the Targets section, We can select how many servers we want.

Selecting servers in targets section

Check platform within AWS Command Line Interface command tab

AWS Command Line Interface command tab

Click on Run Command.

In the Command document list, choose AWS-ConfigureAWSPackage.

Choosing AWS-ConfigureAWSPackage in command document list

In the Action list, choose Install.

In the Name field, type AmazonCloudWatchAgent.

Type AmazonCloudWatchAgent in the name field

In the Targets area, choose the instance on which to install the CloudWatch agent.

choose the instance on which to install the CloudWatch agent

Check platform within the AWS Command Line Interface command tab and Choose Run at last.

AWS Command Line Interface command tab

Go to AWS Systems Manager => Parameter Store

Create a Parameter name like this for Windows (AmazonCloudWatch-Windows).

Click on Create parameter,

Name field enters AmazonCloudWatch-Windows.

Parameter details

Select Tier Standard

Selecting tier standard

Select Type String.

Select type string

In Value Box we need to paste the code for our requirements.

Pasting code in value box

For Windows:


“metrics”: {

“append_dimensions”: {

“AutoScalingGroupName”: “${aws:AutoScalingGroupName}”,

“ImageId”: “${aws:ImageId}”,

“InstanceId”: “${aws:InstanceId}”


“metrics_collected”: {

“LogicalDisk”: {

“measurement”: [

“% Free Space”


“metrics_collection_interval”: 300,

“resources”: [




“Memory”: {

“measurement”: [

“% Committed Bytes In Use”


“metrics_collection_interval”: 300


“statsd\”: {

“metrics_aggregation_interval”: 300,

“metrics_collection_interval”: 300,

“service_address”: “:8125”





The above code is used to get Auto scaling metrics, Logical disk usage, and Memory usage.

In the Command document list, choose AmazonCloudWatch-ManageAgent.

choosing AmazonCloudWatch-ManageAgent in command document list

In Command parameters

In the Action list, choose to configure.

In the Optional Configuration Source list, choose ssm.

In the Optional Configuration Location box, type the name of the agent configuration file you created and saved to Systems Manager Parameter Store, for example- Optional Configuration Location: AmazonCloudWatch-Windows.

Command parameters

In the Targets section, please select how many instances we want.

Selecting instances in targets

Check the platform within the AWS Command Line Interface command tab and Choose Run.

AWS command line interface command

This will start sending Cloudwatch metrics such as Memory utilization, Disk usage, and autoscaling group metrics, and you can see them in Cloudwatch metrics.

42 thoughts on “Monitoring Applications: Custom CloudWatch Metrics Using AWS Systems Manager”

  1. I like what you guys are up too. Such smart work and reporting! Keep up the excellent works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my web site 🙂

  2. Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a little bit, but instead of that, this is excellent blog. A fantastic read. I will definitely be back.

  3. Just wish to say your article is as surprising. The clarity to your submit is just spectacular and that i can suppose you are an expert on this subject. Fine together with your permission let me to clutch your feed to stay up to date with forthcoming post. Thanks a million and please continue the gratifying work.

  4. I intended to post you one bit of observation to help thank you very much once again regarding the precious information you’ve documented above. It has been certainly strangely generous with people like you giving publicly exactly what a number of people could possibly have offered for sale for an e book to generate some money on their own, most importantly now that you could have tried it in the event you decided. Those thoughts additionally served to become great way to understand that other people have a similar fervor like my personal own to grasp a good deal more with respect to this condition. Certainly there are lots of more enjoyable sessions up front for individuals that look into your blog post.

  5. I’ve been absent for some time, but now I remember why I used to love this blog. Thanks, I will try and check back more often. How frequently you update your site?

  6. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something informative to read?

  7. Have you ever considered about adding a little bit more than just your articles? I mean, what you say is valuable and all. Nevertheless just imagine if you added some great visuals or video clips to give your posts more, “pop”! Your content is excellent but with pics and clips, this website could definitely be one of the very best in its niche. Superb blog!

  8. When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!

  9. What’s Going down i’m new to this, I stumbled upon this I have found It absolutely useful and it has aided me out loads. I am hoping to contribute & assist other customers like its aided me. Great job.

  10. I beloved up to you will obtain performed proper here. The comic strip is tasteful, your authored subject matter stylish. however, you command get got an edginess over that you want be turning in the following. ill surely come more before again as exactly the similar nearly very often inside of case you defend this hike.

  11. Attractive component to content. I just stumbled upon your weblog and in accession capital to assert that I acquire actually enjoyed account your weblog posts. Any way I will be subscribing on your feeds or even I achievement you access persistently quickly.

  12. Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your webpage? My blog is in the exact same area of interest as yours and my visitors would definitely benefit from a lot of the information you present here. Please let me know if this okay with you. Appreciate it!

  13. Thanks , I have just been searching for information about this topic for ages and yours is the greatest I’ve discovered till now. But, what about the bottom line? Are you sure about the source?

  14. Just desire to say your article is as astounding. The clarity to your post is just nice and i can assume you are an expert in this subject. Well along with your permission allow me to grab your RSS feed to stay updated with imminent post. Thank you a million and please continue the enjoyable work.

  15. I together with my guys came following the good tactics on your web blog then before long got an awful suspicion I never expressed respect to you for those tips. Most of the boys are already certainly thrilled to see them and have in effect in fact been loving them. Appreciate your being really considerate as well as for making a decision on certain wonderful issues most people are really needing to understand about. Our own honest regret for not expressing appreciation to sooner.

  16. hello there and thank you for your info – I have definitely picked up anything new from right here. I did however expertise some technical points using this web site, since I experienced to reload the web site many times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I’m complaining, but slow loading instances times will often affect your placement in google and could damage your high quality score if advertising and marketing with Adwords. Well I’m adding this RSS to my email and could look out for a lot more of your respective intriguing content. Make sure you update this again very soon..

  17. I absolutely love your blog and find almost all of your post’s to be precisely what I’m looking for. Does one offer guest writers to write content in your case? I wouldn’t mind creating a post or elaborating on a few of the subjects you write in relation to here. Again, awesome web site!

Leave a Comment

Your email address will not be published. Required fields are marked *

Cloud Computing Insights and Resources

Role of Augmented and Virtual Reality in EdTech

Role of Augmented and Virtual Reality in EdTech 

There has been a rapid adoption and incorporation of technology in education, especially since the Covid-19 Pandemic, to make education …

Role of Augmented and Virtual Reality in EdTech  Read More »

Optimization and Licensing Assessment for Enterprise Workload

Optimization and Licensing Assessment for Enterprise Workload: An Overview 

Businesses around the world are enhancing cost to performance to achieve 2x growth by migrating their workload. But this does …

Optimization and Licensing Assessment for Enterprise Workload: An Overview  Read More »

4 Ways to Optimize Your Cloud with Modernization

4 Ways to Optimize Your Cloud with Modernization: A Comprehensive Guide

In today’s dynamic IT industry, it is imperative for organizations to incorporate cost-effective measures and efficient budgeting strategies to achieve …

4 Ways to Optimize Your Cloud with Modernization: A Comprehensive Guide Read More »