Librato Integration Guide

Librato‘s flagship product, Metrics, monitors the entire IT infrastructure and generates any desired data. Integrate AlertOps’ alert management platform with Librato to receive and respond to critical alerts through email, SMS, push notification, and phone alerts. AlertOps ensures that alerts received from Librato always reach the correct, available team member by utilizing escalation policies and on-call schedules.

AlertOps Configuration

Step 1: From the main menu, click Integrations and, then select Inbound Integrations from the sub menu.

Step 2: Select the Add Web API Integration button.

Step 3: You should now be on the Web API Integration Detail page. Select Librato from the Integration Template dropdown menu. 

Step 4: Enter a name for the Integration. Select a message rule to determine the integration's escalation policy. And, enter the names of recipient user(s) and/or group(s). Click Save Changes. Then, click Copy URL to copy the URL endpoint to be used in the Librato configuration.

Librato Configuration

Step 1: Create a webhook in Librato Click here to view Librato Webhook Documentation.

Sample Alert

{
“alert”:
{
“id”:6350202,
“name”:”production.myprodsite.sector.5xx_error_rate”,
“runbook_url”:”http://example.com/runbook.pdf”,
“version”:2,
“description”:”The production.myprodsite.sector 5xx_error_rate is high.”
},
“account”:”my-accounts@mydomain.com”,
“trigger_time”:1463542286,
“conditions”:[
{
“id”:6189610,
“type”:”above”,
“threshold”:1,
“summary_function”:”average”,
“duration”:600
}
],
“violations”:
{
“test-source”:[
{
“metric”:”somehost.sector.5xxErrorRate”,
“value”:43,
“recorded_at”:1463542286,
“condition_violated”:6189610
}
] },
“triggered_by_user_test”:true
}

Alert Triggering Information

AlertOps will automatically create an incident when a new alert is received from Librato with an IncidentStatus status of “alert.”

If an alert with status “alert” matches an existing Open Alert, AlertOps will recognize the new alert as a duplicate and ignore the alert. The alert will be recorded in the Inbound Messages table as “Mapped Appended.”

AlertOps will automatically close the same incident when an alert with an IncidentStatus status “clear” is received.

Testing and Troubleshooting

Click here to read about Web API Testing and Troubleshooting. 

Did this answer your question?