Download mongodb FTDC data
Lib crate to enable your application to download FTDC data from mongodb clusters to investigate deeper (e.g. keyhole).
Usage
To download FTDC data from a mongodb cluster you need to provide some input to the CLI:
- Group key: The group key (or: project id) the respective cluster belongs too. It is encoded into the link you get from atlas when selecting the specific cluster on Atlas UI (e.g.
cloud.mongodb.com/v2/{group key}clusters
) - Replicaset name: The name of the replica set the data should be loaded from. You can either provide the direct targeted replica set name (e.g.
atlas-<something>-shard-0
) or the name of the shard (e.gsome-name-shard-00
). Do not forget the number here as it qualifies the shard in case you want data from a sharded cluster. For a standalone replica set it is00
but lets say for a sharded cluster with 3 shards it would be00
,01
,02
. - API key: You need to have a valid API key for at least the cluster you want to download FTDC data from.
use Error;
use Client;
use ;
async
The data is downloaded to the current directory the application was executed in as a *.tar.gz
.