Area: Observability
Sub-Area: Data Contracts
Applies to: Cloud
Issue
Assertions or data contracts are failing, but you don't get notifications in Slack, Microsoft Teams or email.
You Might Be Asking
- How do I set up alerts for assertion failures?
- Why aren't I receiving Slack notifications?
- How do I get alerted when a data contract fails?
- Can I send alerts to a webhook?
Cause
DataHub Cloud sends assertion notifications from the platform itself. You don't run a DataHub Actions pipeline for them. To get alerts, you subscribe to the assertions you care about.
There is no subscription for data contract status itself. A contract fails when any assertion in it is not met, so to be alerted on contract violations, subscribe to the assertions in the contract.
Common causes:
- You are not subscribed to the dataset or to the individual assertion.
- Assertion status notifications are not enabled in your subscription.
- The channel (Slack, Teams or email) is not set up for you or your group.
- Email or Teams notifications are not enabled on your instance. This is a server side setting.
Solution
- Subscribe to the assertions.
- On the dataset page, click Subscribe (Subscribe Me, or Manage for groups). Enable Assertion status notifications and choose the events you want: Any assertion fails, Any assertion errors, Any assertion passes, Any assertion recovers.
- To follow one assertion only, click the bell on that assertion ("Subscribe to assertion...") and choose This assertion fails, errors, passes or recovers. See Subscribing to assertions.
- For a data contract, subscribe to each assertion that is part of the contract.
- Set up your channels. Go to Settings > My Notifications, enable each channel you want and enter your handle. At the platform level you can configure one email and one Slack channel. Users and groups can set one default email and Slack channel and override them per subscription.
- Set up Slack. Follow the Slack app setup guide. Settings has an Integrations page for third party tools. It includes the Teams app package download.
- If email or Teams notifications are not available, contact DataHub Support. Cloud customers can't change this setting themselves.
- For trends and flaky checks, use the Data Health Dashboard under Observe in the sidebar. On the Assertions tab, use the By Assertion view, set a time range such as Last 7 Days and set Results to At least one failure.
DataHub Cloud notifications go to Slack, Microsoft Teams and email. These are the channels to use for assertion alerts.
Self-hosted DataHub Actions
The steps above are for DataHub Cloud. If you run the self-hosted DataHub Actions framework, the available actions are doc_propagation, executor, metadata_change_sync, slack, snowflake_tag_propagation, tag_propagation, teams and term_propagation. There is no webhook action.
The slack action takes these keys: bot_token (required), signing_secret (required), default_channel (required), base_url (default http://localhost:9002/) and suppress_system_activity (default true). Unknown keys are rejected. The teams action takes webhook_url, base_url and suppress_system_activity. Event filters are set in a pipeline level filters list, not inside the action config. See the DataHub Actions Slack action.