Slack Integration With Sensu Go

  1. What have you already tried? Please include links to gists and/or code blocks (if relatively small)
    I tried setting up Slack integration with Sensu Go but i am not getting notifications on slack…
    I followed the link -
    https://bonsai.sensu.io/assets/sensu/sensu-slack-handler
{
  "api_version": "core/v2",
  "type": "Handler",
  "metadata": {
    "namespace": "default",
    "name": "slack"
  },
  "spec": {
    "type": "pipe",
    "command": "sensu-slack-handler --channel '#devops' ",
    "env_vars": [
      "SLACK_WEBHOOK_URL=https://hooks.slack.com/services/************"
    ],
    "timeout": 0,
    "filters": [
      "is_incident"
    ]
  }
}
  1. Tell us about your setup, this should include OS, version of Sensu, version of Sensu components (redis, rabbitmq), plugin versions (if applicable), anything special about your setup such as an airgapped network or strict ACLs
    Sensu Go Version 5.4

  2. Is there a Github issue related to your issue? No

  3. Is there anything else that can help us effectively help you?

@grohan07 it looks like there is at least one thing missing here (potentially more, depending on how you’ve attempted to install the plugin). The main thing missing is the "runtime_assets": "slack_handler" attribute. This attribute tells the handler what asset it’s supposed to use when handing event data.

To see a complete pipeline using the Slack handler, check out the sandbox container monitoring lesson. This should help give you a better idea of the workflow required for ensuring that an event is handled via Slack.

1 Like

@aaronsachs . Yup thank you i guess that was the missing endpoint.