$indexStats reset after instance rebooting

I notice that $indexStats gather info since last reboot, so the information we can get from it is very poor.

Is there any way to avoid this behavior?

Mongo is running in a AWS EC2, managed from Mongo MMS: 3 nodes cluster (3 configs, 3 mongoes), 2 shards. Mongo v4.0.6

Thanks

Hi @Ruben_Fernandez_Gonz,

Welcome to MongoDB Community.

I think the only way is to persist this data into a collection periodically…

Thanks,
Pavel

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