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?

demandé il y a un an273 vues
1 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions