# Size of collections mongodb

**URL:** <https://forums.percona.com/t/size-of-collections-mongodb/35924>\
**Category:** PMM 2.x\
**Created:** [January 2, 2025, 9:03am UTC](https://forums.percona.com/t/size-of-collections-mongodb/35924 "2025-01-02T09:03:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pramod\_Kumar\_Gupta](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pramod_kumar_gupta/32/19488_2.png) [@Pramod\_Kumar\_Gupta](https://forums.percona.com/u/Pramod_Kumar_Gupta)\
**Post date:** [January 2, 2025, 9:03am UTC](https://forums.percona.com/t/size-of-collections-mongodb/35924/1 "2025-01-02T09:03:56Z")

</div>

Size of collections not visible in mongodb replet summary .

---

<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:** [January 2, 2025, 2:42pm UTC](https://forums.percona.com/t/size-of-collections-mongodb/35924/2 "2025-01-02T14:42:40Z")

</div>

Hello, to ensure that happens please make sure the pmm user is set up with the permissions listed here:

> **[Percona Monitoring and Management - MongoDB](https://docs.percona.com/percona-monitoring-and-management/setting-up/client/mongodb.html?h=adva#permissions-for-advanced-metrics)**
>
> How to set up PMM to monitor a MongoDB or Percona Server for MongoDB database instance.

also the pmm-agent needs to be configured with the --enable-all-collectors option

---

<div class="post-metadata">

**Author:** ![Pramod\_Kumar\_Gupta](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pramod_kumar_gupta/32/19488_2.png) [@Pramod\_Kumar\_Gupta](https://forums.percona.com/u/Pramod_Kumar_Gupta)\
**Post date:** [January 2, 2025, 2:44pm UTC](https://forums.percona.com/t/size-of-collections-mongodb/35924/3 "2025-01-02T14:44:23Z")

</div>

I have done these things

---

<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:** [January 2, 2025, 2:51pm UTC](https://forums.percona.com/t/size-of-collections-mongodb/35924/4 "2025-01-02T14:51:15Z")

</div>

in that case it should be working. I suggest you double check the user’s perms.  
You can manually connect to the db using the pmm user and run db.stats() on your collections and see if you get an error (that is what pmm does). Also you can check `mongodb_collstats_storageStats_storageSize` metrics are present in the Metrics Explorer page.

---

<div class="post-metadata">

**Author:** ![Pramod\_Kumar\_Gupta](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pramod_kumar_gupta/32/19488_2.png) [@Pramod\_Kumar\_Gupta](https://forums.percona.com/u/Pramod_Kumar_Gupta)\
**Post date:** [January 2, 2025, 2:54pm UTC](https://forums.percona.com/t/size-of-collections-mongodb/35924/5 "2025-01-02T14:54:19Z")

</div>

I ran this . Its showing no data .
