Docs Menu

mongocli atlas metrics databases list

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options
  • Examples

List available databases or database metrics for a given host.

To retrieve the hostname and port needed for this command, run mongocli atlas process list.

mongocli atlas metrics databases list <hostname:port> [options]
Name
Type
Required
Description
hostname:port
string
true
Hostname and port number of the instance running the Atlas MongoDB process.
Name
Type
Required
Description
-h, --help
false
help for list
--limit
int
false
Number of items per page. This value defaults to 100.
-o, --output
string
false
Output format. Valid values are json, json-path, go-template, or go-template-file.
--page
int
false
Page number. This value defaults to 1.
--projectId
string
false
Project ID to use. Overrides the settings in the configuration file or environment variable.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
This example lists the available databases for the host "atlas-lnmtkm-shard-00-00.ajlj3.mongodb.net:27017"
$ mongocli atlas metrics database ls atlas-lnmtkm-shard-00-00.ajlj3.mongodb.net:27017
←  mongocli atlas metrics databases describemongocli atlas metrics disks →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.