How to Configure Custom metrics in Windows

Metrics are data about the performance of your systems. By default, several services provide free metrics for resources such as Amazon EC2 instances, Amazon EBS volumes, and Amazon RDS DB instances.

 

You can also enable detailed monitoring some resources, such as your Amazon EC2 instances, or publish your own application metrics.

 

Amazon CloudWatch can load all the metrics in your account (both AWS resource metrics and application metrics that you provide) for search, graphing, and alarms.

 

We can monitor the operations and performance of your EC2 for Windows instances and applications in near real-time using standard log and performance data sources including:

  • Event Tracing for Windows log sources
  • IIS request logs
  • Performance Counters
  • Text-based log files
  • Windows Event Logs

How to Configure Custom metrics in Windows

Metrics are data about the performance of your systems. By default, several services provide free metrics for resources such as Amazon EC2 instances, Amazon EBS volumes, and Amazon RDS DB instances.

You can also enable detailed monitoring some resources, such as your Amazon EC2 instances, or publish your own application metrics.

Amazon CloudWatch can load all the metrics in your account (both AWS resource metrics and application metrics that you provide) for search, graphing, and alarms.

We can monitor the operations and performance of your EC2 for Windows instances and applications in near real-time using standard log and performance data sources including:

  • Event Tracing for Windows log sources
  • IIS request logs
  • Performance Counters
  • Text-based log files
  • Windows Event Logs

Step: 1

  • While the CloudWatch plugin for EC2Config supports explicit credentials, We have to use IAM Roles for EC2 which makes it possible to associate specific permissions with an EC2 instance when it’s launched.
  • A sample policy allows the necessary CloudWatch and CloudWatch logs actions is this:

Step: 2

CloudWatch Plug-In Configuration

The CloudWatch plug-in for EC2Config is disabled by default, so the first step that needs to be taken is to enable it. The easiest way to do this is to run EC2ConfigService Settings on the instance where you want to enable the plug-in:

Check the Enable CloudWatch Logs integration checkbox and click the OK button to save the changes.

Step :3

Configuration

The CloudWatch plug-in is configured using the file %PROGRAMFILES%AmazonEc2ConfigServiceSettingsAWS.EC2.Windows.CloudWatch.json.

  • This file contains the settings for CloudWatch, CloudWatch Logs, the log sources and performance counters that should be uploaded.
  • In this file you should change region according to EC2 instance.

CloudWatch Logs:

I want to change my group name and id name so I have to change cloudwatchLogs file

With:

Performance Counters:

There is default configuration in json file contains performance metrics for memory performance counter.

Add an additional performance counter to this – the amount of free space available on the instance.

Step: 4

After configuring json file , You have to add performance metrics in performance monitor.As shown in below figure ,you have to click on Green Plus sign for adding memory counter in performance counter for our custom metrics.

E:\AWS\cloudwatch\performance_monitor.png

E:\AWS\cloudwatch\performance_memory.png

Select memory parameter and add it in to added counter and then click OK for adding in our monitor.

Step: 5

Then , Restart Ec2Config for update into our custom metrics

image_thumb[93]

Step: 6

Check out in your Cloud Watch ,There are logs from windows in Logs-Cloudwatch and new Custom metrics which we have added from Json file.

You can see it from below figures.

E:\AWS\cloudwatch\logs_webserver.png

E:\AWS\cloudwatch\custom_metrics.png

Thats it….!!!!!You have created custom metrics and system logs from your EC2-Windows server….

I hope you will find it helpful.Thank you..

Jigisha Araniya.
AWS-team,
Electromech Corporation.

jigi

 

2 thoughts on “How to Configure Custom metrics in Windows

Comments are closed.