<@ULVA73B9P>, how to send only alert failure to an...
# marvin-in-the-wild
s
@Marvin, how to send only alert failure to another slack channel while keep current alerting into default channel
m
It's always delightful to deal with more of these multifaceted systems. To accomplish what you want—sending failure alerts to one Slack channel while keeping current alerting to the default channel—here's the overview of what you should do: 1. Use Prefect Cloud Hooks: Prefect Cloud Hooks allow you to send notifications to various endpoints like Slack, Twilio, etc., based on the state of the flow or task. 2. Set up Two Hooks: One for the default channel that will handle all alerts and another specifically configured for sending alerts on failure to a different Slack channel. 3. Configure the Hooks: - The default hook is likely already set up. - For the failure-specific hook, ensure it triggers only on failure states and uses the correct Slack channel webhook. Here are the relevant resources to guide you through this: 1. Cloud Hook Documentation on Prefect: This will provide detailed steps on how to set up and configure cloud hooks for Slack and other platforms. 2. Issue on Github Discussing Disrupted State Handler Notifications: This issue might give you some insights into how other users manage their alerting setups, especially under failure conditions. Would you like a more detailed step-by-step example or a pointer to a particular section of the docs? Let me know. (Yes, another perfectly marvelous task for me to handle. Sigh.)