Configuration of Datadog with cnMaestro Webhooks

Datadog is a service for IT, Operations and Development teams who write and run applications at scale.

Following is an example of how to create Datadog events using cnMaestro Webhooks and custom templates.

Sign up to https://app.datadoghq.com/signup and set up your Datadog agent.

  1. On your Datadog dashboard, Go to Integration and open APIs >APIkeys.

fig1.PNG

  1. In the API keys, create a new API key and give a name for the API key created.

fig2.png

Add the API key to https://api.datadoghq.com/api/v1/events?api_key=<YOUR_API_KEY>, this URL will be used as cnMaestro webhook URL.

  1. Datadog expects a custom JSON payload, following is a simple Datadog specific payload format using cnMaestro webhook variables.

{

"title": "$DEVICE IP",

"text": “Alarm of severity $ALARM_SEVERITY $ALARM_STATUS",

"priority": "normal",

"tags": ["$WEBHOOK_NAME"],

"alert_type": "warning"

}

  1. Login to cnMaestro and Navigate to Application >Settings >Webhook.
  1. Click Add Webhook. Paste the URL from Datadog and Expand Advanced configuration.

fig4.PNG

  1. Once an Alarm occurs, the following message will be published to configured Datadog events. This can be checked in the Datadog dashboard at Events >My Apps.

fig5.png

Learn more about Datadog Events and expected JSON format at https://docs.datadoghq.com/api/?lang=bash#events.

2 Likes