1. Home
  2. Integrations
  3. Wavefront Integration Guide – VictorOps

Wavefront Integration Guide – VictorOps

Wavefront is a cloud-hosted service where you send your time-series (metric) data – from CollectD, StatsD, JMX, Ruby’s logger, AWS, anything. Then you can perform arbitrary mathematical operations on any number of those series, render charts to see anomalies or KPI dashboards, and ultimately create truly intelligent alerts to proactively watch over your entire stack.  The following guide will walk you through this integration.

In VictorOps

From the VictorOps web portal, select Settings, then Alert Behavior, then Integrations.

Select the Wavefront integration option.

Click Enable Integration.

Copy the Service API Endpoint to the clipboard.  Be sure to replace the “$routing_key” section with the actual routing key you intend to use. (To view or configure route keys in VictorOps, click Alert Behavior, then Route Keys)

In Wavefront

Login to the Wavefront web interface, select Browse, then Webhooks.

Click Create Webhook.

Enter a name for your webhook in the “Name” field.  Select Alert OpenedAlert Status Updated, and Alert Resolved in the “Triggers” section.  Paste the “URL to notify” from the previous “In VictorOps” section into the “URL” field.

Select application/json from the “Content Type” dropdown menu.

Copy the following template to your clipboard.

"message_type": "{{#endedTime}}recovery{{/endedTime}}{{^endedTime}}{{#severitySmoke}}info{{/severitySmoke}}{{#severityInfo}}info{{/severityInfo}}{{#severityWarning}}warning{{/severityWarning}}{{#severitySevere}}critical{{/severitySevere}}{{/endedTime}}",
"entity_id": "{{#trimTrailingComma}}{{^endedTime}}{{#failingHosts}}{{{.}}},{{/failingHosts}}{{/endedTime}}{{#endedTime}}{{#recoveredHosts}}{{{.}}},{{/recoveredHosts}}{{/endedTime}}{{/trimTrailingComma}}",
"state_message": "{{{name}}}\n{{{url}}}\n{{#jsonEscape}}{{{additionalInformation}}}{{/jsonEscape}}",
"monitoring_tool": "Wavefront",
"entity_display_name": "{{#jsonEscape}}{{{hostsFailingMessage}}}{{/jsonEscape}}"

Paste the template in the “Webhook POST Body Template” field, then enter a description in the “Description” field, then click Save.

You should see your new webhook listed on the “Webhooks” page.

Click the dropdown menu to the right of your new webhook, then select Test.

Check for the notification in VictorOps.

You have completed setting up this integration.  If you have any questions, please contact VictorOps support.

Updated on August 14, 2017

Was this article helpful?

Related Articles