Python slack ChatOps
Check more: https://www.dennyzhang.com/tag/chatops
DevOps ChatOps via Slack Commands. All commands starts with /chat*
- /chatclusterusage: Overall resource usage, and summary by role.
- /chatcloudexpense: Show cloud bills across different cloud providers.
- /chatqueryhost [substring of hostname]: Query host without manual ssh.
- /chathelp: Current online help usage
1.1. Prepare ssh_id_rsa and config.py
1.2. docker-compose up -d
wget -O /usr/sbin/node_usage.py \
https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v6/python/node_usage/node_usage.py
Configure Slack Commands for each python flask endpoint.
Check: docker-entrypoint.sh
tail -f /tmp/uwsgi-wsgi.log
docker-compose down && docker-compose up -d \
&& docker exec -it devops_chatops tail -f /tmp/uwsgi-wsgi.log
Content type
Image
Digest
Size
193.6 MB
Last updated
almost 9 years ago
docker pull denny/chatops_slack