Hi, as mentioned in the title — in MongoDB Compass, when I open the “Indexes” tab for any collection, I no longer see the index usage data. Instead, I see the message: “Usage data unavailable.”
This used to work before — I was previously able to see the usage data for my indexes, but I’m not sure when or why it changed.
Could you please help me understand why this might be happening and how to resolve it?
Check the roles assigned to the database user, the user requires at a minimum the clusterMonitor role so that $indexStats can be executed. Additional privileges are granted with this role I’d recommend evaluating those before adding the role to the user.