Giter Site home page Giter Site logo

ferhimedamine / rancher-infra-alerting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bscott/rancher-infra-alerting

0.0 2.0 0.0 95 KB

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

License: Apache License 2.0

Makefile 2.49% Python 97.51%

rancher-infra-alerting's Introduction

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

rancher-infra-alerting's People

Contributors

wjimenez5271 avatar aemneina avatar

Watchers

James Cloos avatar Mohamed Amine Ferhi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.