A chatbot for Slack using slackbot for mornitoring oozie scheduler
- Based on slack Real Time Messaging API
- Listing coordinator & workflow jobs
- Rerunning job and modify concurrency
- Monitoring cpu utilization and memory usage
- Python3 Support
pip install slackbot
python3 run.py
First you need to get the slack api token for your bot. You have two options:
- If you use a bot user integration of slack, you can get the api token on the integration page.
- If you use a real slack user, you can generate an api token on slack web api page.
Then you need to configure the API_TOKEN in a python module slackbot_settings.py, which must be located in a python import path. This will be automatically imported by the bot.
slackbot_settings.py:
API_TOKEN = "<your-api-token>"Alternatively, you can use the environment variable SLACKBOT_API_TOKEN.