Zapier

image0

Zapier is a platform to connect the apps you use and easily move data between them. Librato users can take advantage of Zapier’s webhooks to integrate with over 400 applications and services. Every recipe, or Zaps as they’re called, is comprised of a Trigger and an Action. For example, a Librato user might want to receive a direct SMS message for an alert instead of routing through one of our other incident management services like PagerDuty or VictorOps. By routing your alerts through Zapier, you can create a custom delivery pipeline through any of their supported actions.

In just a few steps, users can configure a new service integration for the Zapier platform. Let’s take a look at crafting a Zap that delivers Librato alerts via SMS.

Configuration

To begin, login to your Zapier account and create a new Zap. Select Webhooks by Zapier as the Trigger app, then Catch Hook as the Trigger. Next, select SMS by Zapier as the Action app, then Send SMS as the Action:

image1

You will be prompted with the following. We will use this URL later on to setup our Librato service configuration. You can copy this URL now, but we’ll be presented again with it later on in our process. Click Continue.

image2

Select an SMS recipient. If you have not set up an SMS account, it will require verification.

image3

Zapier filters allow you to match incoming data against conditions. It is not applicable to Librato alerts, so we’ll skip the filter triggers step.

To continue, Zapier requires a sample alert from Librato. Click on Insert fields to trigger the following modal. Now we can copy the generated URL, then click Ok, I did this to continue.

image4

Now that we have the URL we’ll need to jump over to our Librato account and setup a new service. For now, keep the Zapier window open so we can come back to confirm the final setup once we’re finished.

image5

Log into Librato then click on the Alerts tab. If you do not have a Librato account, sign-up for a free 30-day trial.

Create a new alert, or select an existing one. Next, click the Notification Services tab. Click on Create a new service, then select Zapier from the drop-down. Enter a title for this service and paste the Zapier webhook URL into the url field. Click Save to finish adding the service, and then click on Test Fire Alert to send our first sample alert over to Zapier.

image6

Jump back to your Zapier window to click Ok, I did this to confirm that the sample alert was sent.

image7

Finally, match up a Librato Alert to an Action. Zapier allows Actions to access data from Triggers. To begin, click Insert fields again. A list of variables from the alert should now be available to customize your SMS message. When you’re finished, click Continue.

image8

Finally, give your Zap a unique name and click ** Turn Zap on**to enable it.

image9

Now when an alert is triggered, an SMS will be sent via Zapier. This tutorial chose SMS as the Action app, however you can easily send alert data to any Action app on Zapier!