wjimenez5271 / rancher-infra-alerting

A simple tool to monitor the core components of Rancher infrastructure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rancher Infrastructure Alerting

A simple tool to monitor the core components of Rancher infrastructure.

This is beta software and not intended for general consumption

Design

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.

Design

Configuring

configuration is done through environment variables

Client

  • POLL_INTERVAL - Time in seconds to sleep between polling cycles. Default 30.
  • SERVER_HOSTNAME - Hostname or IP address of alerting server to report to
  • SERVER_PORT - Port alerting server is listening on
  • LOG_LEVEL - Verbosity of logging for the process

Server

  • SYSLOG_HOST - Address of syslog server to send alerts to. Assumes port 514 and UDP
  • ALERT_TARGETS - Comma separated list of targets for the alert to be sent to. Current options are syslog and slack.
  • SLACK_API_TOKEN (optional) - Slack API token
  • SLACK_CHANNEL (optional) - Slack channel to send alert to
  • LOG_LEVEL - Verbosity of logging for the process

Deploying

Use the rancher-compose.yml and docker-compose.yml to create a stack in Rancher. See Rancher Compose Docs

About

A simple tool to monitor the core components of Rancher infrastructure.

License:Apache License 2.0


Languages

Language:Python 97.5%Language:Makefile 2.5%