Filter sets: Organize your hosts

With New Relic Infrastructure, you can create filter sets to organize hosts, cluster roles, and other resources based on criteria that matter the most to you. You can create filter sets based on any Infrastructure attributes.

For example, you can organize your infrastructure into categories such as:

  • Geographical locations, such as one or more AWS regions
  • Operating systems, such as specific versions
  • Hosts associated with specific apps, such as Docker containers or Elasticsearch structures
  • Environments (using custom attributes), such as test or production
  • Teams (using custom attributes), such as your network operations center (NOC) or a specific DevOps team

Anyone can view saved filter sets in the account. Only Owner, Admins, or Add-on Managers can edit or delete saved filter sets.

Infrastructure host filter set
infrastructure.newrelic.com > Hosts > (filter set sidebar): Saved filter sets are a powerful tool to organize your hosts based on custom criteria. Use the filter set sidebar to create, edit, and select filter sets. The color-coded health status of each host inside the filter set helps you quickly identify potential problems.

You can combine as many filters as you want in a filter set, and save them as saved filter sets to share them with other people in your account. Filter sets also show the color-coded health status of each host inside the filter set, so you can quickly identify problematic areas of your infrastructure.

Create a new filter set

Owner, Admins, or Add-on Managers

Users and Restricted Users are able to modify filter sets, but not save them. Only the Owner, Admins, or Infrastructure add-on managers can save filter sets.

When you first install New Relic Infrastructure, it includes a single filter set: All hosts. To create a new filter set:

  1. From infrastructure.newrelic.com, navigate to any UI page that has filter sets.
  2. If this is your first filter set, select Filter hosts. If you are already in a filtered-host view, select Saved filter sets and then select All hosts.
  3. Scroll through the attribute list to view the available attributes and values, OR simple type in the search bar to filter to only attributes and values matching that search.
  4. To name your filter, select the [pencil edit icon] icon, type a name, and select Save.

Here's an explanation of the rules governing multiple filter set selections:

  • When selecting values from different attributes, filter selection acts as an AND.
  • When selecting values from the same attribute, filter selection acts as an OR.

An example of how these rules work: in the filter selection shown below, it would display hosts for which BOTH of the following are true: a) hosts containing any one of the selected Infrastructure agent versions, AND b) in any one of the selected AWS availability zones.

Infrastructure filter set example

For more information, check out New Relic University’s tutorial Using filter sets and groups in New Relic Infrastructure. Or go directly to the full online course Getting started with Infrastructure.

View and use filter sets

The default view for filter sets in the New Relic Interface UI is All hosts. To use other filter sets:

  1. From infrastructure.newrelic.com, navigate to any UI page that has filter sets.
  2. Select Saved filter sets, then select from the list.
  3. To show all hosts again, Saved filter sets > All hosts.

Edit filter sets

Users and Restricted Users are able to modify filter sets, but not save them. Only the Owner, Admins, or Infrastructure add-on managers can alter saved filter sets.

To update filter sets with new or different criteria, or to rename the filter set:

  1. From infrastructure.newrelic.com, navigate to any UI page that has filter sets.
  2. From the filter sets sidebar, edit your filter set:

    • Add criteria: Select a filter set you want to edit. Select Filter hosts to add criteria.
    • Remove criteria: Select the x icon for the criteria you want to delete.
    • Rename filter set: Select a filter set, then click on the name of the filter set.
  3. Select Save.

For an explanation of how to make multiple filter set selections, see the filter set rules.

Delete saved filter sets

Owner, Admins, or Add-on Managers

You can delete any saved filter set except the default All hosts:

  1. From infrastructure.newrelic.com, select Settings > Filter sets.
  2. Select [delete icon] to delete the filter set.

Combine filter sets with grouping

On some pages you can use Group by to group chart results by specific attributes. For example, on the Hosts page, you might group by awsRegion to display the AWS regions with the highest CPU usage.

Grouping applies to the selected filter sets. By combining filter sets with grouping, you can find detailed system information quickly. See Combining filter sets and grouping for an example of using these tools to troubleshoot a problem.

Filter sets and Alerts

You can also use filter sets to ensure alerts coming from New Relic Infrastructure are tailored to a paticular set of hosts. To create an alert based on a filter set:

  • From infrastructure.newrelic.com, select your filter set. Then mouse over any chart and select ellipsis-h > Create alert. The filter set is automatically applied to the new alert condition.

    OR

  • Go to infrastructure.newrelic.com > Settings > Alerts > Create alert condition. From the Narrow down hosts section, create a custom filter for your alert.

For more help

Recommendations for learning more: