Navigation

Performance Advisor

Use the following resources to retrieve existing and suggested indexes for a deployment, as well as the namespaces on which slow queries were run and the queries that were slow. For more information about slow queries and possible performance improvements, see the Performance Advisor monitoring page.

To view field values in a sample query in the Performance Advisor, you must be a user with at least one of the following project roles:

Users without one of these roles see redacted data rather than the field values.

Base URL: https://cloud.mongodb.com/api/atlas/v1.0

Endpoints

Method Endpoint Description
GET /api/atlas/v1.0/groups/{GROUP-ID}/processes/{PROCESS-ID}/performanceAdvisor/namespaces Retrieves the namespaces for collections experiencing slow queries for a specified host.
GET /api/atlas/v1.0/groups/{GROUP-ID}/processes/{PROCESS-ID}/performanceAdvisor/existingIndexes Retrieves the indexes that exist for collections on a specified host.
GET /api/atlas/v1.0/groups/{GROUP-ID}/processes/{PROCESS-ID}/performanceAdvisor/slowQueryLogs Get log lines for slow queries as determined by the Performance Advisor.
GET /groups/{GROUP-ID}/processes/{PROCESS-ID}/performanceAdvisor/suggestedIndexes Get suggested indexes as determined by the Performance Advisor.