Can you use CloudWatch Agent on Windows to create a measure which is the number of files in a directory

0

I don't want to collect the files in the directory, just monitor the number of files in it. Is this possible?

asked a year ago266 views
1 Answer
1

You can publish a custom metric to CloudWatch in the form of a script output doing a simple file count in your windows directory.

Have a small script running via task scheduler that checks the number of files in the directly and makes a put-metric-data call to CloudWatch and publishes the file count.

See here for how to publish a custom metric: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/publishingMetrics.html

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions