# Collect directories & sub-directories/files data usage metrics

**URL:** <https://discuss.elastic.co/t/collect-directories-sub-directories-files-data-usage-metrics/248558>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 14, 2020, 4:08pm UTC](https://discuss.elastic.co/t/collect-directories-sub-directories-files-data-usage-metrics/248558 "2020-09-14T16:08:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asmi10](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@asmi10](https://discuss.elastic.co/u/asmi10)\
**Post date:** [September 14, 2020, 4:08pm UTC](https://discuss.elastic.co/t/collect-directories-sub-directories-files-data-usage-metrics/248558/1 "2020-09-14T16:08:37Z")

</div>

Hello!

I have a kubernetes cluster where I am using local path provisioner for creating storage for multiple projects. Basically this provisioner creates subdirecties under already existing root directory on worker nodes. I am looking for a mechanism for collecting disk usage for all subdirectires exists under the root directory from each worker nodes . Filesystem metricset under system module only provides the filesystem usage of the directory mounted on but doesn't provide metrics for disk usage on subdirectories & file level. What do you think about adding this functionality in filesystem metricset?

Thanks,  
Asmita

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [September 15, 2020, 6:56am UTC](https://discuss.elastic.co/t/collect-directories-sub-directories-files-data-usage-metrics/248558/2 "2020-09-15T06:56:11Z")

</div>

I think this is a similar thread: [How to Monitor particular process and file system disk space through metricbeat](https://discuss.elastic.co/t/how-to-monitor-particular-process-and-file-system-disk-space-through-metricbeat/105909)

Long story short we don't have any mechanism that can focus on a single directory. You have to configure it as a separate mount point.

You can always try with community beats (not support officialy). Here is the "lsbeat": [https://github.com/kimjmin/lsbeat](https://github.com/kimjmin/lsbeat)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 13, 2020, 8:56am UTC](https://discuss.elastic.co/t/collect-directories-sub-directories-files-data-usage-metrics/248558/3 "2020-10-13T08:56:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
