Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
To use Performance Insights, enable it on your DB instance. You can disable it later
if necessary. Enabling and disabling Performance Insights doesn't cause downtime, a
reboot, or a failover.
The Performance Insights agent consumes limited CPU and memory on the DB host. When
the DB load is high, the agent limits the performance impact by collecting data less
frequently.
In the console, you can enable or disable Performance Insights when you create or
modify a new DB instance.
Using the Amazon Web Services Management Console
In the console, you can enable Performance Insights when you create an
Amazon DocumentDB cluster. When you create a new Amazon DocumentDB cluster, enable
Performance Insights by choosing Enable Performance
Insights in the Performance
Insights section.
Console instructions
-
To create a cluster, follow the instructions for Creating an Amazon DocumentDB cluster.
-
Select Enable Performance
Insights in the Performance Insights section.
The Performance Insights data retention period will be seven
days.
Amazon KMS key — Specify your
Amazon KMS key. Performance Insights encrypts all potentially
sensitive data using your Amazon KMS key. Data is encrypted in flight and
at rest. For more information, see Configuring an Amazon Amazon KMS policy
for Performance Insights.
You can modify a DB instance to enable or disable Performance Insights using the
console or Amazon CLI.
- Using the Amazon Web Services Management Console
-
Console instructions
-
Sign in to the Amazon Web Services Management Console, and open the Amazon DocumentDB console at https://console.amazonaws.cn/docdb.
-
Choose Clusters.
-
Choose a DB instance, and choose Modify.
-
In the Performance Insights section, choose either Enable Performance Insights or Disable Performance Insights.
If you choose Enable Performance
Insights, you can specify your Amazon Amazon KMS key.
Performance Insights encrypts all potentially sensitive data
using your Amazon KMS key. Data is encrypted in flight and at rest.
For more information, see Encrypting Amazon DocumentDB Data at Rest.
-
Choose Continue.
-
For Scheduling of Modifications,
choose Apply immediately. If you
choose Apply during the next scheduled
maintenance window, your instance ignores this
setting and enables Performance Insights immediately.
-
Choose Modify instance.
- Using the Amazon CLI
-
When you use the create-db-instance
or
modify-db-instance
Amazon Amazon CLI commands, you can enable
Performance Insights by specifying
--enable-performance-insights
, or disable it by specifying
--no-enable-performance-insights
.
The following procedure describes how to enable or disable Performance
Insights for a DB instance using the Amazon Amazon CLI.
Amazon Amazon CLI instructions
Call the modify-db-instance
Amazon Amazon CLI command and provide
the following values:
The following example enables Performance Insights for
sample-db-instance
:
For Linux, macOS, or Unix:For Windows:
- For Linux, macOS, or Unix:
aws docdb modify-db-instance \
--db-instance-identifier sample-db-instance \
--enable-performance-insights
- For Windows:
aws docdb modify-db-instance ^
--db-instance-identifier sample-db-instance ^
--enable-performance-insights