View index usage

Description:

How to set up monitoring to view the frequency of use of mongoDB indexes?

Version:

pmm 2.40.1
used percona-mongodb-operator

Hi @Alexei_Fokin ,

You can use the below metrics to monitor the frequency of use of MongoDB indexes.

mongodb_indexstats_accesses_ops

Regards,


What if this metric doesn’t exist?

Hi @Alexei_Fokin ,

It seems that the indexstats collector has not been enabled.

PMM starts the MongoDB exporter by default only with diagnosticdata and replicasetstatus collectors enabled.
There are other collectors ( collstats , dbstats , indexstats , and topmetrics) which are not enabled by default. So you need to explicitly enable the collectors while adding mongodb service into PMM.

Kindly refer this link on how to enable collectors.

Regards,