Integration Examples with Workflows
This page provides examples of how to integrate workflows with different notification systems and external services.
Slack Notification
This workflow sends a simple Slack message when triggered:
workflow:
id: slack-notification
description: Send Slack notification for alerts
triggers:
- type: alert
filters:
- key: annotations.slack-notification
value: enabled
actions:
- name: slack-notification
provider:
type: slack
config: '{{ providers.slack_webhook }}'
with:
message: "Alert: {{ alert.alertname }} - Status: {{ alert.status }}"Slack with Rich Formatting
This workflow sends a formatted Slack message using Block Kit:
PagerDuty Integration
This workflow creates a PagerDuty incident:
Opsgenie Integration
This workflow creates an Opsgenie alert:
Alias is used to group identical events together in Opsgenie (
aliaskey in the payload)Severities must be mapped to Opsgenie valid severities (
prioritykey in the payload)Tags are a list of string values (
tagskey in the payload)
Jira Ticket Creation
This workflow creates a Jira ticket using webhook integration:
Multiple Actions
This workflow performs multiple actions for the same alert:
Last updated
