Statistics like write, latency data with pymongo?

I’ve been searching for well over an hour and I can’t seem to find a source showing me how to get those statistics with pymongo, anyone know how I would get it?

I’ve found mongostats and mongotop however I can’t find anything that explains how I would integrate this

Hi @Tenshi_Bot,

Welcome to MongoDB community.

I am not sure there is something built in on driver side, but you can use logging in your python code or a 3rd party library and wrap mongo calls.

Further you can corollate with the mongo logs…


Ahh, alright thank you for the quick reply!