Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name

Asset Definition
Release Notes
Release Assets

Sensu Go Slack Handler

The Sensu slack handler is a Sensu Event Handler that sends event data to
a configured Slack channel.


Download the latest version of the slack-handler from releases,
or create an executable script from this source.

From the local path of the slack-handler repository:

go build -o /usr/local/bin/slack-handler main.go


Example Sensu Go handler definition:


    "type": "Handler",
    "spec": {
        "name": "slack",
        "type": "pipe",
        "command": "slack-handler --channel '#general' --timeout 20 --username 'sensu' --webhook-url ''",
        "timeout": 10,
        "filters": [
        "namespace": "default"

sensuctl create -f slack-handler.json

Example Sensu 2.x check definition:

    "type": "CheckConfig",
    "spec": {
        "name": "dummy-app-healthz",
        "runtime_assets": [
        "command": "check-http -u http://localhost:8080/healthz",
        "publish": true,
        "interval": 30,
        "namespace": "default",
        "handlers": [

Usage examples


The Sensu Go Slack handler for notifying a channel

  slack-handler [flags]

  -c, --channel string       The channel to post messages to (default "#general")
  -h, --help                 help for handler-slack
  -i, --icon-url string      A URL to an image to use as the user avatar (default "")
  -t, --timeout int          The amount of seconds to wait before terminating the handler (default 10)
  -u, --username string      The username that messages will be sent as (default "sensu")
  -w, --webhook-url string   The webhook url to send messages to

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.


You must be signed in to report this asset.

Sign In with Github



There are no asset definitions for this version, only source code:

Download Source Cancel