Is it possible to count the number of files in a folder?

Hello

In windows, I have a service that creates and deletes files as requests are being started/finalized inside a folder. When the number of files is too high it starts to slow down all of the services related. I want to create a metric that counts this number and create a problem when it reaches certain number of files.

Is there an extension or a way to do this in Dynatrace?

Thanks

I believe the Filesystem monitoring extension can do this.

Another option is to use the OpenTelemetry collector filestats receiver - then send the metrics to Dynatrace