IBM Cloud Docs
Excluding all metrics by using the drop action

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

  1. Install the IBM Cloud CLI.

  2. Install the IBM Cloud Metrics Routing CLI.

  3. Ensure you have the correct IAM permissions to configure IBM Cloud Metrics Routing routes.

  4. 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