# Get Datadir From Mongodb Exporter

**URL:** <https://forums.percona.com/t/get-datadir-from-mongodb-exporter/33229>\
**Category:** MongoDB\
**Tags:** pmm, percona\
**Created:** [September 19, 2024, 5:43am UTC](https://forums.percona.com/t/get-datadir-from-mongodb-exporter/33229 "2024-09-19T05:43:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asuwini\_P](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/asuwini_p/32/9824_2.png) [@Asuwini\_P](https://forums.percona.com/u/Asuwini_P)\
**Post date:** [September 19, 2024, 5:43am UTC](https://forums.percona.com/t/get-datadir-from-mongodb-exporter/33229/1 "2024-09-19T05:43:55Z")

</div>

hey all,

As we are collectting the [diagnosticdata](https://github.com/percona/mongodb_exporter/blob/main/exporter/diagnostic_data_collector.go#L158), how can we get the data directory of MongoDB from the MongoDB Exporter?

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [September 19, 2024, 10:54am UTC](https://forums.percona.com/t/get-datadir-from-mongodb-exporter/33229/2 "2024-09-19T10:54:14Z")

</div>

Hi, currently we are not exporting the path as a metric. Feel free to open a feature request at [GitHub - percona/mongodb\_exporter: A Prometheus exporter for MongoDB including sharding, replication and storage engines](https://github.com/percona/mongodb_exporter)
