@@ -11,6 +11,10 @@ Profile Databases
11
11
This feature is available only with the {+mdbagent-wa+}. To learn
12
12
more about the {+mdbagent-wa+}, see
13
13
:ref:`add-mdb-processes`.
14
+
15
+ .. facet::
16
+ :name: genre
17
+ :values: reference
14
18
15
19
.. contents:: On this page
16
20
:local:
@@ -23,9 +27,10 @@ gathers statistics about writes, cursors, and commands on one running
23
27
|mongod| instance.
24
28
25
29
|mms| can collect and display statistics from any of your |mongod|
26
- instances that have profiling enabled. |mms| displays this data in the
27
- :guilabel:`Profiler` section of an instance's :guilabel:`Metrics` page.
28
- To access an instance's metrics, click the :guilabel:`Metrics` button
30
+ instances. The Query Profiler identifies slow queries based on
31
+ :ref:`log data <mongodb-logs>` from your ``mongod`` instances.
32
+ |mms| displays this data on an instance's :guilabel:`Profiler` page.
33
+ To access an instance's metrics, click the :guilabel:`Metrics` button
29
34
for that instance.
30
35
31
36
The :guilabel:`Profiler` displays one aspect, like *Operation Execution
@@ -48,53 +53,21 @@ Profile data may include sensitive information including the content of
48
53
database queries. Ensure that exposing this data to |mms| is consistent
49
54
with your information security practices.
50
55
51
- ``system.profile`` Collection
52
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56
+ Data Display Limitations
57
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
53
58
54
- The MongoDB profiler stores data in the
55
- ``system.profile <<database>.system.profile>`` collection. |mms|
56
- caps this :term:`collection <capped collection>` to 1 MB as a default.
57
- You may increase the size of this collection up to 4 MB.
59
+ The Query Profiler displays up to the limit that it reaches first:
58
60
59
- When collecting data from the profiler, |mms| ignores operations on
60
- the ``system.profile <<database>.system.profile>`` collection,
61
- such as {+magent+} queries of the
62
- ``system.profile <<database>.system.profile>`` collection.
63
-
64
- Resource Consumption Impact
65
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
66
-
67
- The profiler consumes resources which may slow MongoDB performance.
68
- Consider the resource impact before enabling profiling.
69
-
70
- Data Collection
71
- ```````````````
72
-
73
- Every minute, the agent queries the
74
- ``system.profile <<database>.system.profile>`` collection for the
75
- last 20 documents created. Monitoring sends
76
- :manual:`those documents </reference/database-profiler>` to |mms|.
77
-
78
- .. seealso::
79
-
80
- :manual:`Database Profiler </tutorial/manage-the-database-profiler>`
81
- in the MongoDB Manual.
82
-
83
- |mms| samples profile documents until it samples either all documents
84
- returned or 4 MB of returned document data. This 4 MB limit may be
85
- reached if you increase the collection's size to 4 MB *and* your
86
- database creates large
87
- :manual:`profiler documents </reference/database-profiler>`.
61
+ - The most recent 10,000 operations, or
62
+ - The most recent 10MB of logs.
88
63
89
64
Monitoring tries to minimize its effect on the monitored systems.
90
65
If polling profile data slows database performance, |mms| throttles how
91
66
often it collects data.
92
67
93
- Data Display
94
- ````````````
68
+ |mms| displays no more than 10,000 data points in the :guilabel:`Profiler` charts.
95
69
96
- |mms| displays no more than 10,000 data points in the
97
- :guilabel:`Profiler` charts.
70
+ Log data is processed in batches. Data can be delayed up to five minutes from real time.
98
71
99
72
Time to Propagate Changes to the {+mdbagent+}
100
73
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -179,27 +152,6 @@ To change the slow operations threshold:
179
152
When you change the threshold, you change it for all databases on the
180
153
instance.
181
154
182
- .. _profiler-chart-suggest-indexes:
183
-
184
- Request Index Suggestions
185
- `````````````````````````
186
-
187
- Based on the Profiler data, you may want to improve the performance of
188
- slow queries.
189
-
190
- 1. Click :guilabel:`Calculate Suggested Indexes` to direct |mms| to
191
- analyze your databases.
192
-
193
- #. After the analysis completes, the
194
- :guilabel:`Suggested Indexes for Improving Query Performance` modal
195
- displays.
196
-
197
- This modal offers suggested indexes with the appropriate database
198
- commands to created those indexes.
199
-
200
- #. After you have finished using the suggested indexes, click
201
- :guilabel:`OK` to close the modal.
202
-
203
155
.. _profiler-table:
204
156
.. _profiler-table-set-filter:
205
157
0 commit comments