-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathdb.getProfilingStatus.txt
40 lines (27 loc) · 1.21 KB
/
db.getProfilingStatus.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
=======================
db.getProfilingStatus()
=======================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
.. method:: db.getProfilingStatus()
:returns: The current :dbcommand:`profile` level,
:setting:`~operationProfiling.slowOpThresholdMs` setting,
and :setting:`~operationProfiling.slowOpSampleRate`
setting.
You can set a ``filter`` to control which operations are logged by
the profiler. When set, any configured filters are also returned by
:method:`db.getProfilingStatus()`, along with a ``note``
explaining filter behavior.
You can set the profiling filter with either:
- the :method:`db.setProfilingLevel()` shell method, or
- the :setting:`operationProfiling.filter` configuration file option.
Compatibility
-------------
This method is available in deployments hosted in the following environments:
.. include:: /includes/fact-environments-atlas-only.rst
.. include:: /includes/fact-environments-atlas-support-no-free.rst
.. include:: /includes/fact-environments-onprem-only.rst