Skip to content

Highly customizable Sentry plugin to send alerts to Mattermost channel

Notifications You must be signed in to change notification settings

xD3CODER/sentry-mattermost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sentry Mattermost

A Sentry plugin to send alerts to Mattermost channel. Based on the Sentry-Slack plugin

Installation

Add the plugin to your requirements.txt

git+https:/xd3coder/sentry-mattermost.git@dev#egg=sentry-mattermost
  • Create a new webhook in Mattermost
  • Go to Organizations -> projects
  • Select the project you want then go to Legacy integrations -> Mattermost
  • Set your webhook URL
  • Add new alert rules in Alerts -> New alert rule to trigger Mattermost plugin

Configuration

By default the incoming messages looks like this:

alt text

You can override this configuration by defining your own template.

These are available fields:

Field Description
project_slug current project slug
project_name current project name
env current environment
title title of event
id id of event
link link to issue
level level of issue
tags collection of tags
message error message
culprit exception culprit

The default template is :

#### {project_name} - {env}
{tags}

{culprit}
[{title}]({link})

About

Highly customizable Sentry plugin to send alerts to Mattermost channel

Topics

Resources

Stars

Watchers

Forks

Languages