Since sentry does not support integration directly to mattermost for alerts and ..
And after doing some digging I found out there are some transformers in line php or go lang ..
I'm a python or nodejs person so.
I decided to create this repo, in nodejs. And with very customizable way.
You can point sentry alerts as WEBHOOK to this projects address, and this project will extract relevant data and send as a notification to mattermost.
docker pull sinawic/mattermost-sentry-api-transformer
- create
.env
file with keyNOTIFICATION_URL
docker-compose up -d
After you edit index.js
file for like manipulating the data that will be notified
docker build -t sinawic/mattermost-sentry-api-transformer .
- create
.env
file with keyNOTIFICATION_URL
docker-compose up -d
The project will be listening on port 3000
- NOTIFICATION_URL=https://example.com/hooks/xxx
After you clone the repo:
npm i
- create
.env
file with keyNOTIFICATION_URL
node index.js
In /app/file.json
inside container latest request received from sentry will be stored in json format.
You can customize the fields sent as a notification by editting the index.js
file, then rebuilding the container with steps above.
========================
Any contribution will be openly appreciated!
WITH ❤ BY SINAWIC