Excluding all metrics by using the drop action
You can configure IBM Cloud® Metrics Routing to exclude (drop) metrics based on a configured rule. Dropped metrics are not sent on to a target.
Prereqs
-
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.
Configure the route
Run the following command to exclude all metrics received by IBM Cloud Metrics Routing across all regions in the account.
ibmcloud metrics-router route create --name drop-all-route --rules '[{"action":"drop"}]'
The output of the command looks as follows:
Your request includes a drop rule. Do you want to continue? [y/N]> y
OK
Route
Name: drop-all-route
ID: 4966172b-75c9-4adf-9cbb-36562a421b5b
CRN: crn:v1:bluemix:public:metrics-router:global:a/xxxxxxxx::route:4966172b-75c9-4adf-9cbb-36562a421b5b
Rule 0: [drop, []]
Created At: 2023-05-30T14:52:02.148Z
Updated At: 2023-05-30T14:52:02.148Z