Skip to content

Slack Notifier

The Slack notifier allows you to get notification on your favorite slack channel when an instance of go-feature-flag is detecting changes in the configuration file.

slack notification example

Configure Slack Notification

  1. First, you need to create an incoming webhook on your slack instance.
    You can follow this documentation to see how to do it
  2. Copy your webhook URL.
    It should look like: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX.
  3. In your init method add a slack notifier
1
2
3
4
5
6
7
8
9
ffclient.Config{ 
    // ...
    Notifiers: []notifier.Notifier{
        &slacknotifier.Notifier{
            SlackWebhookURL: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX",
        },
        // ...
    },
}

Configuration fields

Field Description
SlackWebhookURL The complete URL of your incoming webhook configured in Slack.