Returns suggested indexes and slow query data for a database deployment.
The atlas api sub-command is automatically generated from the MongoDB Atlas Admin API and offers full coverage of the Admin API. Admin API capabilities have their own release lifecycle, which you can check via the provided API endpoint documentation link.
Also enables or disables MongoDB Cloud-managed slow operation thresholds. To view field values in a sample query, you must have the Project Data Access Read Only role or higher. Otherwise, MongoDB Cloud returns redacted data rather than the field values.
Options
Name | Type | Required | Description |
|---|---|---|---|
-h, --help | false | help for performanceAdvisor |
Inherited Options
Name | Type | Required | Description |
|---|---|---|---|
-P, --profile | string | false | Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings. |
Related Commands
atlas api performanceAdvisor disableManagedSlowMs - Disables the slow operation threshold that MongoDB Cloud calculated for the specified project.
atlas api performanceAdvisor enableManagedSlowMs - Enables MongoDB Cloud to use its slow operation threshold for the specified project.
atlas api performanceAdvisor getManagedSlowMs - Get whether the Managed Slow MS feature is enabled.
atlas api performanceAdvisor listClusterSuggestedIndexes - Returns the indexes that the Performance Advisor suggests.
atlas api performanceAdvisor listDropIndexSuggestions - Returns the indexes that the Performance Advisor suggests to drop.
atlas api performanceAdvisor listPerformanceAdvisorNamespaces - Returns up to 20 namespaces for collections experiencing slow queries on the specified host.
atlas api performanceAdvisor listSchemaAdvice - Returns the schema suggestions that the Performance Advisor detects.
atlas api performanceAdvisor listSlowQueryLogs - Returns log lines for slow queries that the Performance Advisor and Query Profiler identified.
atlas api performanceAdvisor listSuggestedIndexes - Returns the indexes that the Performance Advisor suggests.