dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
356 stars 216 forks source link

Unable to view all metrics #107

Open madvimer opened 6 years ago

madvimer commented 6 years ago

I am using mongo exporter to extract metrics in prometheus. However i believe i cannot see all teh metrics( like index_counters_total and many others by going through the collector code). I am just starting the exporter without any additional arguments. Attaching the stats that got generated. Is there something that i am missing ?

dcuStats.txt

NTU08 commented 5 years ago

I found this too using the docker hub eses/mongodb_exporter docker image https://hub.docker.com/r/eses/mongodb_exporter/ looks to me that the code https://github.com/dcu/mongodb_exporter/blob/master/mongodb_exporter.go have variable for the various mongodb.collect values mongodbCollectConnPoolStats = flag.Bool("mongodb.collect.connpoolstats", false, "Collect MongoDB connpoolstats") but missing some most notably should add mongodbCollectIndexCounters = flag.Bool("mongodb.collect.indexcounters", false, "Collect MongoDB indexcounters") this code is 3 years old so am i missing something? this fdoes seem to be in the fork: https://github.com/percona/mongodb_exporter