Notifications
Settings:
You can set the notifications via the web interface or using the CLI.
CLI:
You can view your current settings by executing the following command:
satori team Private settings
Email:
satori team Private set_config notification_email your@email.com
Slack:
Follow this guide to get the workspace and channel ID
satori team Private set_config slack_workspace TXXXXXXXXXX
satori team Private set_config slack_channel CXXXXXXXXXX
Discord:
Follow this guide to get the channel ID
satori team Private set_config discord_channel CHANNEL_ID
Datadog:
Follow this guide to get the API Key and Site Region
satori team Private set_config datadog_api_key a123
satori team Private set_config datadog_site us3|eu|etc
WEB:
You can also set the notifications via the web interface by completing the following fields on the Satori web dashboard.
Read the following guides to complete these fields.
Playbook Settings
The definition of where you will be notified starts on your playbook settings. In there, depending if you want to be notified every time (log
), on every fail (logOnFail
) or every time it passes (logOnPass
) you will define if you want to be notified via email, via Slack, via Datadog or via Discord.
By default, you will get notified with emails unless you change your playbook settings.
settings:
log|logOnFail|logOnPass: email|slack|discord|datadog
[...]
So, a common thing is to get notified on slack when something fails, and you would do it like this:
settings:
logOnFail: slack
[...]
Report
Notifications with PDF Report.
If you want to receive a copy of your report in PDF along with your notification, you can do so indicating it as part of your playbook settings:
settings:
onLogFail: slack
report: pdf
If report: false
is set in the playbook, all generated outputs are deleted.
settings:
onLogFail: slack
report: false
Appendix: Slack, Discord and Datadog Guides
Slack
To obtain the workspace ID and channel ID for a Slack Channel, follow these steps:
Channel and Workspace ID:
- Go to the web version of Slack and to the channel that you're interested in.
- In your web browser's URL bar, you will see a URL that looks like this: https://app.slack.com/client/T00000000/C00000000. The part after '/client/' is split into two segments by a slash.
- Put the first segment (e.g., 'T00000000') as the workspace ID, and
- The second segment (e.g., 'C00000000') as the channel ID.
- Invite the bot to a channel with /invite @SatoriCIBot
Discord
To get the Channel ID in Discord, you first need to enable Developer Mode. Here's how you can do it:
Enabling Developer Mode:
- Open your Discord settings. You can do this by clicking the gear icon located in the bottom left, next to your username and avatar.
- In the settings menu, select 'Appearance' under the 'App Settings' category.
- Scroll down until you find the 'Advanced' section, and there you'll find a switch labeled 'Developer Mode'. Make sure it's toggled on.
Once you've enabled Developer Mode, you can get your Channel ID as follows:
Channel ID:
- Right-click the channel name.
- Select 'Copy ID' from the dropdown menu. The channel ID is now copied to your clipboard.
Remember, you can use this method to get IDs for text channels, voice channels, categories, and even individual messages.
If you need any help, please reach out to us on Discord or via Email
Datadog
Satori CI supports Datadog Events as notification system. To use it you need an API Key and the Site Region from Datadog.
To create an API Key for Satori you can go to Organization Settings -> API Keys -> +New Key
Configure the new key with Satori CLI:
satori team {MySatoriTeam} set_config datadog_api_key {MyDatadogApiKey}
Replace {MySatoriTeam} with your Satori team name and {MyDatadogApiKey} with your Datadog API key
- Optional. By default the events are sent to the
us1
site region, you can configure another site region with:
satori team {MySatoriTeam} set_config datadog_site {MyDatadogRegion}
Replace {MyDatadogRegion} with us1
, us3
, us5
, eu
, ap1
or us1-fed
- Now you can enable Satori Datadog notifications on your playbooks with:
settings:
logOnFail: datadog