This tools is a sidecar to use sentry webhook on mattermost.
- Handle sentry Issue alerts
- Handle sentry Metric alerts
First you must create a Mattermost incoming webhook integration.

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.

Then you setup sentry issue alerts as you like.

dockerbash
To start you must launch dev environment:
$ ./scripts/up.shThis 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.shFrom outside the container you can build with:
$ ./scripts/build.shYou can test an example sentry webhook with:
$ ./scripts/test-request.shThen you can see the converted request that will be send to mattermost using:
$ ./scripts/get-last-request-result.shThis 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