MongoDB profiler is an internal tool that enables DBAs and developers to collect information about executed MongoDB requests.
Profiler has three levels:
0 – profile is off
1 – profiler collects information on slow requests
2 – profiler collects all information
For production purposes level 1 is what DBA needs. In general, it is best to set it to some reasonable SLA required threshold, like 1,000 milliseconds (1 second), etc.
Level 2 is best for development purposes to get a complete log of executed requests.
Below is the list of profile related commands:
# set profiling to level 1 capture requests with duration over 500 ms
db.setProfilingLevel(1,500)
#get current profiler level
db.getProfilingLevel()
# get current profiler settings
MongoDB Enterprise > db.getProfilingStatus()
{ "was" : 1, "slowms" : 500 }
To return operations slower than 500 milliseconds, run a query similar to the following:
db.system.profile.find( { millis : { $gt : 50 } } ).pretty()
Enteros UpBeat High Load Capture continuously captures history of executed mongodb requests across all collection as well as other mongo db, OS, SAN and other operational statistics across muliple systems.
When the spike is identified, it can be cross-correlated across MongoDB nodes and correlated with MongoDB requests. A detailed report is generated to pinpoint what requests are were active during the problem time.
Also, please check my presentation on MongoDB performance tuning
The views expressed on this blog are those of the author and do not necessarily reflect the opinions of Enteros Inc. This blog may contain links to the content of third-party sites. By providing such links, Enteros Inc. does not adopt, guarantee, approve, or endorse the information, views, or products available on such sites.
Are you interested in writing for Enteros’ Blog? Please send us a pitch!
RELATED POSTS
Driving Smarter Growth with Enteros: AI Performance Management and Forecasting Models for Accurate Cost Estimation and Operational Excellence
- 23 October 2025
- Database Performance Management
Introduction In an era defined by rapid digital transformation, organizations across industries face the dual challenge of accelerating growth while maintaining cost efficiency. Traditional IT management and forecasting techniques are no longer sufficient to handle the scale, complexity, and dynamic workloads of modern data ecosystems. Businesses require intelligent systems that can not only manage database … Continue reading “Driving Smarter Growth with Enteros: AI Performance Management and Forecasting Models for Accurate Cost Estimation and Operational Excellence”
Transforming Fashion Operations with Enteros: Database Performance Management Meets Cloud FinOps Efficiency
Introduction The fashion industry is undergoing a digital renaissance — one where data, technology, and artificial intelligence intersect to redefine how brands operate, forecast, and engage customers. With the rapid expansion of online retail, omnichannel experiences, and global supply chains, fashion enterprises face increasing challenges in managing vast amounts of data across diverse systems. In … Continue reading “Transforming Fashion Operations with Enteros: Database Performance Management Meets Cloud FinOps Efficiency”
Optimizing Cloud Formation and Storage Efficiency in Technology with Enteros: AIOps and FinOps in Action
- 22 October 2025
- Database Performance Management
Introduction The technology sector is undergoing a cloud revolution. Every enterprise — from SaaS startups to global tech giants — is shifting workloads to the cloud to gain agility, scalability, and cost efficiency. However, as cloud infrastructures expand, managing and optimizing their performance becomes increasingly complex. Cloud Formation, Storage Buckets, and multi-cloud architectures have unlocked … Continue reading “Optimizing Cloud Formation and Storage Efficiency in Technology with Enteros: AIOps and FinOps in Action”
Forecasting Cost and Boosting RevOps Efficiency in Insurance with Enteros: AI SQL and Intelligent Resource Group Management
Introduction The insurance industry is at a pivotal moment. As data complexity surges and digital transformation accelerates, insurers are under immense pressure to manage operational costs, improve forecasting accuracy, and optimize their revenue operations (RevOps) efficiently. Traditional systems—burdened with siloed data, limited visibility, and reactive performance monitoring—can no longer keep up with modern scalability and … Continue reading “Forecasting Cost and Boosting RevOps Efficiency in Insurance with Enteros: AI SQL and Intelligent Resource Group Management”