| Crates.io | mprobe |
| lib.rs | mprobe |
| version | 0.1.0 |
| created_at | 2025-06-22 11:14:46.303533+00 |
| updated_at | 2025-06-22 11:14:46.303533+00 |
| description | A CLI for fetching and visualizing MongoDB diagnostic data |
| homepage | |
| repository | https://github.com/nelusnegur/mprobe/tree/main/crates/cli |
| max_upload_size | |
| id | 1721578 |
| size | 83,153 |
This crate provides a CLI for fetching and visualizing MongoDB diagnostic data (FTDC).
For fetching the diagnostic metrics from the MongoDB Atlas, you can
use the fetch command as follows:
mprobe fetch \
-p <MongoDB Atlas project ID> \
-k <API key> \
-s <API secret> \
-t <resource type (e.g. cluster, replica-set, process)> \
-n <resource name (e.g. for a replica-set, use: test-123agc-shard-0)> \
-f [ path where the FTDC will be stored ] \
-r [ start timestamp ] \
-o [ end timestamp ]
In order to visualize the downloaded diagnostic metrics, you can
use the view command as follows:
mprobe view \
-p <path to the FTDC directory> \
-n <node name> \
-s [ start timestamp ] \
-e [ end timestamp ]
This command will generate an HTML report that includes
all the diagnostic metrics of the specified node in a given time window.
All the data is stored in the vis directory relative to the current working
directory, unless otherwise specified via the -o option.
To start exploring the metrics, open the ./vis/index.html page in the browser.
If you need help with one of the commands or simply would like to see
what other options are available, you can use the help command:
mprobe help
To see the options of a specific command, use the following instruction:
mprobe <command> --help
This project is licensed under MIT license.