percona / mongodb_exporter

A Prometheus exporter for MongoDB including sharding, replication and storage engines
Apache License 2.0
1.19k stars 424 forks source link

Collector for working with data from the system profile #707

Closed tregubov-av closed 1 year ago

tregubov-av commented 1 year ago

There is often a need to monitor requests entering the system profiler. As a rule, slow queries specified by the user go there. We really need functionality that can monitor at least their quantity.

I would like to receive a metric that outputs data from a db.system.profile.find().count() query In the future, the functionality can be expanded and some useful aggregations can be obtained from system profile

There is a similar implementation in this exporter, but unfortunately it has not been supported for a long time https://github.com/dcu/mongodb_exporter/blob/master/collector/profile_status.go

mikle7771 commented 1 year ago

I implemented the slow query functionality in this PR https://github.com/percona/mongodb_exporter/pull/710

tregubov-av commented 1 year ago

Thank you!