GithubHelp home page GithubHelp logo

node-alert-generator's Introduction

Node alert generator

This is a K8s custom controller to monitor Node health as represented by node-problem-detector. It does the following:

  1. Extracts node conditions based on following conditions:
    • Name starts with 'NPD-'
    • Status is 'True'
    • Node does not have maintenance labels except the ones created by node-alert-generator
    • Alerts not older than given time period
  2. Populates given config map with the alerts by:
    • Gathering all filtered conditions upto the user defined interval
    • Deduplicating alerts
    • Populating the given config map with alerts if they are different than alerts from previous interval
    • Labeling the Node with 'maintenance.box.com/source=npd' if enabled by user

Flow

Autoremediation_Image

Usage

Usage of ./node-alert-generator:
  -address string
    	Address to bind the alert generator server. (default "127.0.0.1")
  -alert-config-map string
    	Name of config map to store alerts (default "npd-alerts")
  -apiserver-host  based string
    	Custom hostname used to connect to Kubernetes ApiServer
  -interval string
    	Interval in seconds at which configmap will be updated (default "60")
  -log-file string
    	Log file to store all logs (default "/var/log/service/node-alert-generator.log")
  -namespace string
    	Namespace where config map will be (default "node-alert-generator")
  -nolabel
    	Dont set labels (default true)
  -port string
    	Port to bind the alert generator server for /healthz endpoint (default "8080")
...<snipping irrelevant options>...

node-alert-generator's People

Contributors

rrs45 avatar aambekar-box avatar

Watchers

 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.