Hello, I’m trying to collect collstats using mongodb exporter.
However, the --mongodb.collstats-colls option only seems to work when I provide the exact namespace, and it doesn’t work when I only provide the database name.
--mongodb.collstats-colls=* (not working)
--mongodb.collstats-colls=testdb (not working)
--mongodb.collstats-colls=testdb.testcol (working)
Due to the dynamic nature of our service with frequent database additions and deletions, I would like to collect collstats for all namespaces without explicitly listing them in the option.
If that’s not possible, I’d like to collect collstats for all collections within a database when I only list the database name.
Could you provide guidance on how to achieve this?
Thank you.