Collections

Group metrics into Collections and receive notifications when metrics alert.

Background

Collections are arbitrary groupings of metrics on which you can configure alerts.

Let’s say you have a dashboard that depends on a certain table with 10 metrics configured. You can create a collection that will alert you if any of this group of metrics goes out of bounds. Or, let's say you have have 5 absolutely mission-critical metrics for your team. You can create a collection with those 5 metrics and have it @here or @oncall your team’s Slack channel.

Creating a Collection

The simplest way to create a collection is from the collections page. You can navigate to the collections page from the top navbar. From the collections page, you can create a new collection with the Create collection button. This will open the Create collection modal, where you can enter the name and description of your collection. Once the collection is created, it will show up as a card on the collections page. You can navigate to the collection by clicking the corresponding collection card.

1219

Once you navigate to the collection, there isn’t much to see because the collection is still empty. In the next section, we will learn how to add metrics to a collection.

Adding metrics to a collection

We can add metrics to the collection from the Metrics pages. From an collection page, you can navigate to metrics by clicking on the Catalog tab, then on the relevant schema/table, and then the metrics tab.

1219

On Metrics pages, you can select one or more metrics and add them to a collection by selecting Add to collection from the Action dropdown. In this modal we can see that the collection we created is available in the dropdown, so we select that collection.

1219

Once the metrics are added we can quickly navigate back to the collection with the link in the success alert. You should now be able to see the metrics in the collection (you may have to refresh).

Managing a collection

Now that we have added metrics to the collection, we can see them and their status in the collection page.

2448

Add notifications to collection

One of the useful functions of collections is that we can add notifications to the collection. To do this, simply click on the Settings button and navigate to the Notifications tab in the modal that opens.

1219

Under the Notifications tab, you can add notifications. See here how we've added an email and a Slack channel.

940

Remove metrics from a collection

To remove metrics from an collection, you can select one or more in the Collections page and then select Remove from collection in the Action dropdown menu.

1219

This opens a confirmation dialog, and to complete the removal, click the Remove button.

Deleting an collection

To delete an collection, click the Settings button in the collections page. Under the Name and description tab, there is a Delete collection button.

2450

Clicking that Delete collection will open a confirmation dialog. Click the Delete button to complete deletion of the collection.

2438

Collection notifications

When you configure notifications on a collection, they will be sent whenever a metric in the collection goes into an alerting state. These alerts are in addition to any notifications that you may have configured on the metric itself. What this means is that if you have configured an alert to email on a metric and on a collection that contains the metric, you will get two emails whenever the metric goes into an alerting state.

Remember above that we configured an email and a slack notification on our collection. If a metric in that collection goes outside of its healthy bounds, we will get the following Slack and Email notifications:

1818 1162