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?

質問済み 1年前273ビュー
1回答
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
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ