A simple tool to monitor the core components of Rancher infrastructure.
This is beta software and not intended for general consumption
The tool takes the approach of asserting the functionality of a Rancher cluster from the perspective of an application container running on a host. Each check tries to exercise functionality that a container might use such as service discovery, communicating with etcd, and talking with the Kubernetes API (for example).
When a check fails, the client makes a HTTP POST request to the server with the details of
the failed check. The server is then responsible for surfacing the alert to the end user.
Currently the tool supports two alerting backends: syslog
and slack
.
configuration is done through environment variables
POLL_INTERVAL
- Time in seconds to sleep between polling cycles. Default30
.SERVER_HOSTNAME
- Hostname or IP address of alerting server to report toSERVER_PORT
- Port alerting server is listening onLOG_LEVEL
- Verbosity of logging for the process
SYSLOG_HOST
- Address of syslog server to send alerts to. Assumes port 514 and UDPALERT_TARGETS
- Comma separated list of targets for the alert to be sent to. Current options aresyslog
andslack
.SLACK_API_TOKEN
(optional) - Slack API tokenSLACK_CHANNEL
(optional) - Slack channel to send alert toLOG_LEVEL
- Verbosity of logging for the process
Use the rancher-compose.yml
and docker-compose.yml
to create a stack in Rancher. See Rancher Compose Docs