Filtering Metrics

Metric Filters limit the amount of metric data reported to the Cloudera Manager server to avoid gaps in the reported data.

Metrics Filters allow you to limit the amount of metric data sent to the Cloudera Manager Service Monitor. In large clusters, some services, such as Kudu, send a high volume of non-essential metrics data to the Service Monitor, which can overload it, causing gaps in the data reported from these metrics in charts/dashboards and metrics queries, and potentially limiting the ability for Cloudera Manager to effectively monitor cluster health . To mitigate this problem, you can configure Metric Filters that limit the amount of data sent to the Service Monitor and Host Monitor. You can configure Metric Filters for any service deployed in a cluster.

You can configure the filter in several ways:

  • Limit the collected metrics to only include those required for Health Tests.
  • Limit the collected metrics to only include metrics used in the charts on the main page (‘Dashboard’) of the service.
  • Include specific metrics - only the specified metrics will be collected for this service
  • Exclude specific metrics - the specified metrics will not be collected for this service
To configure a Metric Filter:
  1. Log in to the Cloudera Manager Admin Console.
  2. Navigate to the cluster where you want to add the filter.
  3. Click Configuration > Metric Filters.

    The Configuration page displays the Metric Filter parameter for all roles in the cluster.

    You can now choose whether to edit all the Metric Filters using the same values, or edit the filter for a specific role.

  4. Do one of the following:
    • To configure the filter for a specific role, click the Edit Individual Values link and locate the parameter for the service. Follow the steps below.
    • To configure the same filter for all roles, edit the Default Group.
  5. Select one of the following:
    • Include Only Health Test Metric Set
    • Include Only Default Dashboard Metric Set
  6. To filter specific metrics:
    1. Select either Include or Exclude from the ‘Include/Exclude Custom Metrics’ drop-down list.
      If you selected either of the Metric sets, and select Include, the custom metrics will be added to the selected Metrics sets. If you select Exclude, they will be excluded from the selected sets.
    2. Click the “Plus” icon to add a metric.
    3. Enter the metric name.
    4. Click the “Plus” icon to add additional metrics.
  7. Click Save Changes.
  8. Refresh the cluster:
    1. Go the cluster's Status page.
    2. Click Actions > Refresh Cluster. This action does not restart the cluster.
      The cluster configuration is refreshed.