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?

gefragt vor einem Jahr274 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen