Its-Alex / sentry-mattermost-sidecar

This tools is a sidecar to use sentry webhook on mattermost

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sentry-mattermost-sidecar

This tools is a sidecar to use sentry webhook on mattermost.

Roadmap

  • Handle sentry Issue alerts
  • Handle sentry Metric alerts

How to use

First you must create a Mattermost incoming webhook integration. mattermost-incoming-webhook-integration-setup

Next you must deploy the docker image (don't forget to fill SMS_MATTERMOST_WEBHOOK_URL environment variable with the Mattermost webhook URL) somewhere and redirect sentry webhook on it with route name defined as Mattermost channel for each projects. sentry-webhook-integration-setup

Then you setup sentry issue alerts as you like. sentry-issue-alert-creation

Getting started

Requirement

  • docker
  • bash

Hack

To start you must launch dev environment:

$ ./scripts/up.sh

This will launch images in docker-compose.yml.

An image named workspace with golang is used as a isolated container to develop. You can use enter-workspace.sh to enter inside it:

$ ./scripts/enter-workspace.sh

From outside the container you can build with:

$ ./scripts/build.sh

You can test an example sentry webhook with:

$ ./scripts/test-request.sh

Then you can see the converted request that will be send to mattermost using:

$ ./scripts/get-last-request-result.sh

Deploy

This image is automatically deployed and versionned as a docker image at itsalex/sentry-mattermost-sidecar.

To deploy a new tag use ./scripts/create-and-push-tag.sh:

$ ./scripts/create-and-push-tag.sh 1.0.0

About

This tools is a sidecar to use sentry webhook on mattermost

License:MIT License


Languages

Language:Go 57.7%Language:Shell 32.6%Language:Dockerfile 9.7%