Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srflaxu40/rancher-firedrill
Alarm on stopped containers.
https://github.com/srflaxu40/rancher-firedrill
Last synced: 3 months ago
JSON representation
Alarm on stopped containers.
- Host: GitHub
- URL: https://github.com/srflaxu40/rancher-firedrill
- Owner: srflaxu40
- Created: 2017-01-27T21:29:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T19:26:25.000Z (almost 8 years ago)
- Last Synced: 2024-07-31T07:15:35.212Z (6 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rancher - Rancher firedrill - Alarm on stopped containers (Rancher 1.0 / Community projects 1.0)
README
# rancher-firedrill
## Set the following environment variables:
```
slack_channel = os.environ.get('SLACK_CHANNEL')
webhook_url = os.environ.get('WEBHOOK_URL')
rancher_url = os.environ.get('RANCHER_URL')
rancher_access_key = os.environ.get('RANCHER_ACCESS_KEY')
rancher_secret_key = os.environ.get('RANCHER_SECRET_KEY')
alert_time = os.environ.get('ALERT_TIME')
```* `ALERT_TIME` - the time (in seconds) to alert; ie how often the firedrill.py script makes an iteration.
## Build it:
* `make build`## Deploy it:
* `make rancher_deploy`---
## Notes:
* To curl raw webhook integration via an HTTP POST:
* `curl -X POST --data-urlencode 'payload={"channel": "#container-reporting", "username": "Rancher", "text": "Real time alerts.", "icon_emoji": ":rancher:"}' https://hooks.slack.com/services/UUID/UUID`