Alert Message Api
Discord and Slack custom messages with Message API
Software install
1 - Clone repository
git clone [email protected]:Michel-Leidson/alert-message-api.git2 - Enter the project directory
cd alert-message-api3 - Install dependencies
npm install4 - Create and configure config.json file in root directory of aplication
nano config.json
{
"slack": {
"url":"<YOUR SLACK URL WEBHOOK HERE>"
},
"discord":{
"url":"<YOUR DISCORD URL WEBHOOK HERE>"
},
"grafana":{
"url":"YOUR GRAFANA URL HERE"
},
"alertmanager": {
"url":"YOUR ALERTMANAGER URL HERE"
}
}5 - Running the server.js file with PM2
Configuring external Alertmanager in Grafana
1 - Select Alert Admin menu in Grafana

2 - Click in "Add Alertmanager"

3 - Type URL alermanager and click in "Add Alertmanagers" button

Configuring webhook routes in alertmanager config file
1 - Configuring alertmanager config file
2 - Restart alertmanager
Last updated