Docs Menu
Docs Home
/ /
Atlas CLI
/ / /

atlas performanceAdvisor namespaces list

Return up to 20 namespaces for collections experiencing slow queries on the specified host.

Public Preview: The atlas api sub-command, automatically generated from the MongoDB Atlas Admin API, offers full coverage of the Admin API and is currently in Public Preview (please provide feedback at https://feedback.mongodb.com/forums/930808-atlas-cli). Admin API capabilities have their own release lifecycle, which you can check via the provided API endpoint documentation link.

Namespaces appear in the following format: {database}.{collection}.

If you don't set the duration option or the since option, this command returns data from the last 24 hours.

To use this command, you must authenticate with a user account or an API key with the Project Read Only role.

Command Syntax
atlas performanceAdvisor namespaces list [options]
Name
Type
Required
Description

--duration

int

false

Length of time in milliseconds for which you want to return results. If you specify the since option, the duration starts at the date and time specified. If you don't set the since option, this command returns data from the duration before the current time.

-h, --help

false

help for list

-o, --output

string

false

Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.

--processName

string

true

Unique identifier for the host of a MongoDB process in the following format: {hostname}:{port}. You can obtain a list of possible values from the 'id' field when you run the 'atlas processes list' command.

--projectId

string

false

Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.

--since

int

false

Date and time from which the query retrieves the suggested indexes. Specify this value as the number of seconds that have elapsed since the UNIX epoch. If you don't set the duration option, this command returns data from the since value to the current time.

Name
Type
Required
Description

-P, --profile

string

false

# Return a JSON-formatted list of namespaces for collections with slow queries for the atlas-111ggi-shard-00-00.111xx.mongodb.net:27017 host in the project with the ID 5e2211c17a3e5a48f5497de3:
atlas performanceAdvisor namespaces list --processName atlas-111ggi-shard-00-00.111xx.mongodb.net:27017 --projectId 5e2211c17a3e5a48f5497de3 --output json

Back

namespaces

On this page