Lesson 2: Cluster Status and Health / Learn
Code Summary: Cluster Status and Health
Review the following code, which demonstrates how to check metrics for your Atlas cluster by using the Atlas CLI.
List Processes
From the MongoDB Shell, run the following command to return all running processes for your project:
atlas processes list
Retrieve Process Metrics
Run the following Atlas CLI command to retrieve metrics for one cluster node.
atlas metrics processes <cluster id>
--granularity <granularity> --period <period> --output json –type <metric name>