Disk Space Monitoring in AWS EC2 Windows

Asked 2 years ago, Updated 2 years ago, 46 views

I would like to monitor AWS disk capacity, but I have procured samples on the web as shown below.
You cannot change drive C to drive D.

Specifically,
on the following site: I'd like to monitor the capacity of the C drive in the center.
Even if I change to D, it won't work.

https://qiita.com/kusokamayarou/items/261efb81d91137ae8321

"Id": "DiskFreePercentC",
        "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent, AWS.EC2.Windows.CloudWatch",
        "Parameters": {
            "CategoryName": "LogicalDisk",
            "CounterName": "%Free Space",
            "InstanceName": "C:",
            "MetricName": "DiskFreePercentC",
            "Unit": "Percent",
            "DimensionName": "InstanceId",
            "DimensionValue": "{instance_id}"

Thank you for your cooperation.

python aws

2022-09-30 20:24

1 Answers

It's a little different from the answer, but it's better to use the Cloudwatch agent because the support for sending log data using the SSM agent is scheduled to end.

Please refer to https://docs.aws.amazon.com/ja_jp/systems-manager/latest/userguide/monitoring.html

Important
The CloudWatch integration agent replaces the SSM agent as a tool to send log data to Amazon CloudWatch Logs.Support for sending log data using the SSM agent will no longer be available.Cisco recommends that you start using the CloudWatch integration agent as soon as possible in the log retrieval process.For more information, see the following topics:
Send Logs to CloudWatch Logs (CloudWatch Agent)
Migrate Windows Server instance log collection to CloudWatch agent
In the Amazon CloudWatch User Guide, use the CloudWatch Agent to collect metrics and logs from Amazon Elastic Compute Cloud instances and on-premises servers.


2022-09-30 20:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.