Sensu Go

Get alerts from Sensu Go into Squadcast

Follow the steps below to configure a service so as to push related alert data from Sensu Go onto Squadcast.

Squadcast will then process this information to create incidents for this service as per your preferences.

Using Sensu Go as an Alert Source

On the Sidebar, click on Services.

You can either choose to use existing service or create a new service

Now, click on the corresponding Alert Sources button.

Select Sensu Go from Alert Source drop down and copy the Webhook URL shown.

Squadcast handler installation

If you're using sensuctl 5.13 with Sensu Backend 5.13 or later, you can use the following command to add the asset:

sensuctl asset add sensu/sensu-squadcast-handler

Installation from source

Download the latest version of the sensu-squadcast-handler from releases, or create an executable script by cloning the sensu-squadcast-handler repository
From the local path of the sensu-squadcast-handler repository run the following command:

go build -o /usr/local/bin/sensu-squadcast-handler

Create a squadcast-handler.yaml file like the following :-

type: Handler
api_version: core/v2
  name: squadcast
  namespace: default
  command: sensu-squadcast-handler
  - SENSU_SQUADCAST_APIURL= <Squadcast Alert Source Url>
  - SquadcastHub/sensu-squadcast-handler
  - is_incident 
  timeout: 10
  type: pipe

Make sure to replace <Squadcast Alert Source Url> with the webhook url you copied from Squadcast.

Then run the following command :-

sensuctl create -f squadcast-handler.yaml

While creating checks for your client systems make sure to add squadcast as a handler. An example check using the squadcast handler is shown below :-

api_version: core/v2
type: CheckConfig
  namespace: default
  name: health-check
  command: check-http -u http://localhost:8080/health
  - test
  publish: true
  interval: 10
  - squadcast

Now whenever an event is triggered in Sensu Go , an incident will be created automatically in Squadcast. Also when an event is resolved in Sensu Go the corresponding incident gets resolved in Squadcast.

Updated 25 days ago

Sensu Go

Get alerts from Sensu Go into Squadcast

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.