Simple Slack Bot that posts updates about systems monitored by Red Hat Insights to a Slack channel.
- Get a Slack token for the Bot
- Run Insights Slackbot
The server needs to be accessible from the Internet. Alternatively, use ultrahook to route webhooks to your local machine.
SLACK_TOKEN='<put token here>' npm start
- Configure a webhook in Insights
The following environment variables can be used to tune Insights Slackbot:
SLACK_TOKEN
- token for authenticationSLACK_CHANNEL
- Slack channel the bot will post messages to (insights-webhooks by default)SERVER_SECRET
- secret part of the URL that prevents unauthorized actors from postingSERVER_PORT
- server port (3006 by default)