Creating a report of the IBM Cloud Metrics Routing configuration
After configuring your IBM Cloud® Metrics Routing resources for your account, you should save a copy of your configuration for reference and backup purposes.
Prereqs
Before you use the CLI to save your IBM Cloud Metrics Routing resource data, you must do the following:
-
Ensure you have the correct IAM permissions to configure IBM Cloud Metrics Routing routes.
-
Log in to IBM Cloud. Run the following command: ibmcloud login.
-
Make sure you have configured your settings, targets and routes.
Saving a copy of your account settings
Run the following command to save a copy of your account settings to a file.
ibmcloud metrics-router setting get --output JSON > ACCOUNT_settings.json
Where ACCOUNT
is a unique indicator for your account.
Saving a copy of your route configuration
Run the following command to save a copy of your route configuration to a file.
ibmcloud metrics-router route ls --output JSON > ACCOUNT_routes.json
Where ACCOUNT
is a unique indicator for your account.
Saving a copy of your target configuration
Run the following command to save a copy of your target configuration to a file.
ibmcloud metrics-router target ls --output JSON > ACCOUNT_targets.json
Where ACCOUNT
is a unique indicator for your account.