mongodb_exporter icon indicating copy to clipboard operation
mongodb_exporter copied to clipboard

Collecting collstats data for collections with periods in their name

Open jdry1729 opened this issue 3 years ago • 3 comments

Describe the bug I don't believe it is possible to collect coll stats data for collections which have a period in their name, e.g., my.collection.

To Reproduce Pass the parameter --mongodb.collstats-colls=mydatabase.my.collection to the program.

Expected behavior Periods in collection names are quite common at least from my experience. So the exporter should be able to collect data for collections which have a period in their name.

jdry1729 avatar Nov 18 '21 18:11 jdry1729

I tried --discovering-mode --mongodb.collstats-colls=db and it also found only the top level collections without dot.

kohtala avatar Nov 30 '21 12:11 kohtala

I guess this is about old exporter version. Doe new one works for you folks?

denisok avatar Sep 14 '22 16:09 denisok

With 0.34 adding --collector.collstats to previous --discovering-mode --mongodb.collstats-colls=db options it now collected the collections with dots.

Thank you.

kohtala avatar Sep 14 '22 18:09 kohtala