Connect with Datadog
Complete these steps in the Datadog webhook integration page:
Go to the integration page: https://app.datadoghq.com/integrations/webhooks (opens in a new tab)
-
Name the webhook "Small Hours"
-
Set the following as the Webhook URL:
https://<service_id>:<api_key>@api.smallhours.dev/v1/investigate
-
Select 'Monitor' and leave the default payload.
Complete these steps in the Datadog monitor setup page:
Go to the monitor page: https://app.datadoghq.com/monitors/manage (opens in a new tab)
-
Go to Monitors > New Monitor, or select an existing monitor. We recommend an Error Tracking or Log monitor.
-
Tag the webhook you just created using '@webhook-WEBHOOK_NAME'
-
Make sure the monitor message includes the log stack trace using
{{log.message}}
,{{log.attributes.error.message}}
, or equivalent. The more information provided in the monitor, the more accurately Small Hours will debug the issue.