Cross-Provider Workflow

Datadog Monitor Alert to GitHub Issue to Slack

Version 1.0.0

Post a Datadog alert event, open a GitHub issue, then notify Slack.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

datadog github slack

Workflows

alert-to-issue-to-slack
Record a Datadog event, open a GitHub issue, and notify Slack.
Submits a Datadog event for a triggered monitor, opens a GitHub issue that references the event, and posts a Slack message linking to the new issue.
3 steps inputs: alertText, alertTitle, owner, repo, slackChannel outputs: eventId, issueNumber, issueUrl, messageTs
1
record-event
$sourceDescriptions.datadogEvents.createEvent
Submit the monitor alert as a Datadog event.
2
open-issue
$sourceDescriptions.githubIssues.createAnIssue
Open a GitHub issue that tracks the Datadog alert.
3
notify-slack
$sourceDescriptions.slackChat.postChatPostmessage
Notify the on-call Slack channel with the issue link.

Source API Descriptions

Arazzo Workflow Specification

dev-datadog-monitor-alert-to-github-issue-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: Datadog Monitor Alert to GitHub Issue to Slack
  summary: Post a Datadog alert event, open a GitHub issue, then notify Slack.
  description: >-
    A DevOps incident-response workflow that records a monitor alert as a Datadog
    event, opens a tracking issue in a GitHub repository with the alert details,
    and posts a notification to a Slack channel so the on-call engineer is paged.
    Demonstrates chaining an observability provider, a source-control provider,
    and a chat provider in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: datadogEvents
    url: https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/openapi/datadog-events-openapi.yml
    type: openapi
  - name: githubIssues
    url: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/openapi/github-repo-issues-api-openapi.yml
    type: openapi
  - name: slackChat
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: alert-to-issue-to-slack
    summary: Record a Datadog event, open a GitHub issue, and notify Slack.
    description: >-
      Submits a Datadog event for a triggered monitor, opens a GitHub issue that
      references the event, and posts a Slack message linking to the new issue.
    inputs:
      type: object
      properties:
        alertTitle:
          type: string
        alertText:
          type: string
        owner:
          type: string
        repo:
          type: string
        slackChannel:
          type: string
    steps:
      - stepId: record-event
        description: Submit the monitor alert as a Datadog event.
        operationId: $sourceDescriptions.datadogEvents.createEvent
        requestBody:
          contentType: application/json
          payload:
            title: $inputs.alertTitle
            text: $inputs.alertText
            alert_type: error
            tags:
              - source:devops-workflow
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          eventId: $response.body#/event/id
      - stepId: open-issue
        description: Open a GitHub issue that tracks the Datadog alert.
        operationId: $sourceDescriptions.githubIssues.createAnIssue
        requestBody:
          contentType: application/json
          payload:
            title: $inputs.alertTitle
            body: $inputs.alertText
            labels:
              - incident
              - datadog
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          issueNumber: $response.body#/number
          issueUrl: $response.body#/html_url
      - stepId: notify-slack
        description: Notify the on-call Slack channel with the issue link.
        operationId: $sourceDescriptions.slackChat.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.slackChannel
            text: $steps.open-issue.outputs.issueUrl
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
    outputs:
      eventId: $steps.record-event.outputs.eventId
      issueNumber: $steps.open-issue.outputs.issueNumber
      issueUrl: $steps.open-issue.outputs.issueUrl
      messageTs: $steps.notify-slack.outputs.messageTs