# Docker space usage monitoring and alerting

**URL:** <https://community.dynatrace.com/t/docker-space-usage-monitoring-and-alerting/21140>\
**Category:** Container platforms\
**Tags:** hosts-classic, docker\
**Created:** [June 27, 2019, 12:50pm UTC](https://community.dynatrace.com/t/docker-space-usage-monitoring-and-alerting/21140 "2019-06-27T12:50:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [June 27, 2019, 12:50pm UTC](https://community.dynatrace.com/t/docker-space-usage-monitoring-and-alerting/21140/1 "2019-06-27T12:50:53Z")

</div>

Is there a way to track how much space Docker is using, similar to the ‘docker system df’ command, and alert when a threshold is breached?

I know the [Docker: Devicemapper Data Space](https://www.dynatrace.com/support/help/shortlink/api-metrics#docker) metrics exist, but so far I can tell, these will only work if the devicemapper storage driver is used. The preferred [Docker storage driver](https://docs.docker.com/storage/storagedriver/select-storage-driver/) is overlay2, in most cases; are there any plans to expand the Docker metrics to look at overlay2 rather than devicemapper?

The alternative to monitor disk usage would be to create a OneAgent plugin, I guess?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [June 27, 2019, 1:02pm UTC](https://community.dynatrace.com/t/docker-space-usage-monitoring-and-alerting/21140/2 "2019-06-27T13:02:58Z")

</div>

Yes, OneAgent plugin should be good solution here.

Sebastian
