mongodb查看索引使用情况
db.getCollection("collectionName").aggregate([{$indexStats:{}}])
db.runCommand({createRole:"index_stats_role",privileges:[{resource:{"db":"dbName","collection":""},actions:["indexStats"]},],"roles":[]})
db.grantRolesToUser("userName",[{"role":"index_stats_role","db":"dbName"}])