Skip to content

gtufte/sensu-go-mattermost-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Mattermost handler for Sensu Go

Get notified in Mattermost when incidents occur

More or less a fork of the mattermost-handler for Sensu Core

Installing with Puppet

Using the Sensu Go Puppet-module, define the handler in Hiera like so:

sensu::backend::handlers:
  mattermost:
    type: pipe
    command: "/path/on/the/sensu/backend/server/to/mattermost.rb"
    env_vars:
      - URI=https://mattermost.example.com/hooks/<hook_id>
      - USERNAME=SensuGo
      - ICON_URL=https://example.com/path/to/some.png
    annotations:
      channel: "Sensu Events"
    filters:
      - list_of_any_filter_to_apply_for_this_handler

Then define this handler to be used with a check, also in Hiera, e.g:

sensu::backend::checks:
  load:
    command: '/opt/sensu-plugins-ruby/embedded/bin/check-load.rb'
    interval: 60
    subscriptions:
      - linux
    publish: true
    handlers:
      - mattermost

About

Mattermost handler for Sensu Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages