What should Datadog monitors about a disk filling up include for an AI SRE?
Tares gets the most from a Datadog disk monitor when the webhook payload carries a service name, a severity, a summary and a start time. With those four, the agent ties the alert to the metrics and logs on the same service timeline. Datadog reaches Tares through the webhook connector and a vendor setup, and Tares has no connector of its own for Datadog today.
How it works
Datadog posts to a Tares webhook source. You write the payload yourself as a JSON object in the Datadog webhook Payload field, using Datadog variables such as $ALERT_ID, $EVENT_MSG and $LINK, so you decide which fields exist. Tares stores the payload lossless and maps the fields you declare as labels into the envelope.
Four things make a disk alert useful to an agent:
- Service name. This is the label that places the alert on a timeline. Use the same value your metric and log sources use for the service, so the alert lands next to that service’s evidence. Mark it
primary. - Severity. It tells the agent and your triggers how urgent the alert is. Declare it as a label like any other field.
- Summary. Fill it from $EVENT_MSG so the alert reads as a sentence on the timeline. A
text_templatecan render it. - Start time. Send an ISO-8601 timestamp and point
event_time_fieldat it, so the alert sits at the moment the disk started filling rather than the moment it arrived.
Also worth including are $ALERT_ID, to tell one alert from the next, and $LINK, to send the agent back to the monitor.
Keep the payload flat. event_type_field and text_template read top-level fields only, so nested objects are stored but cannot drive the event type or the text.
Set it up
- In Tares, create a webhook source (Sources → Add source → webhook) with a primary service label. Save it and copy the ingest endpoint from the source page. The example below maps a service label, takes the event time from a start-time field and renders the summary as the text. The field names are the ones you choose in your Datadog payload, and you add a severity label the same way.
- name: datadog-disk
connector: webhook
config:
event_time_field: started_at
text_template: '{summary}'
labels:
- { name: service, field: service, primary: true }- In Datadog, open the Webhooks integration and add a webhook whose URL is the Tares ingest URL.
- Write the payload as flat JSON in the Payload field: the service, a severity, a summary built from $EVENT_MSG, a start time, and optionally $ALERT_ID and $LINK.
- If Tares has auth on, add custom headers as JSON in Datadog with an Authorization Bearer header holding an ingest-scoped API key. On a secured instance that header is the credential.
- Put @webhook- followed by your webhook name in the disk monitor’s message, so the monitor calls the webhook.
- Check the mapping by posting a sample payload to the source’s ingest URL, then read Recent events and Fields on the source page. Fields shows which payload fields arrive and how often. Replace the sample body with your own fields.
curl -X POST http://localhost:8787/ingest/<ingest_key> \
-H 'Content-Type: application/json' \
-d '{"action": "deploy", "sender": "ci", "pipeline": "web"}'For how the webhook source is configured in full, see the webhook connector.
What you get
- A disk alert that appears on the right service’s timeline, merged with that service’s metrics and logs on one clock.
- A readable summary and a start time, so the agent sees when the disk began filling and can compare it with deploys, error spikes or log lines around that moment.
- A severity label you can use in trigger filters, so a trigger can wake an agent for the alerts you care about.
- A link back to the Datadog monitor when you include $LINK, and an alert ID to tell one alert from another.
The AI SRE guide shows how sources keyed by the same service label become one timeline, and how a trigger wakes an agent with it.
When something else fits
- If the monitor’s data already lives in a system Tares reads directly, such as Prometheus metrics or Alertmanager alerts, use that connector and skip the Datadog webhook.
- If your payload needs nested fields as event type or text, flatten it in the Datadog Payload field first. The webhook source reads top-level fields for those.