Code Monkey home page Code Monkey logo

kube-prometheus-msteams-alert's Introduction

kube-prometheus-msteams-alert

Forwarding application that forwards requests from Prometheus alertmanager into Microsoft Teams

Use Case

  • You are running a Kubernetes cluster
  • You monitor your environment using Prometheus
  • You have Prometheus Alert Manager running in your cluster and configured to generate alerts
  • You would like to have alerts sent to Microsoft Teams

What does it do ?

This app runs inside Kubernetes and listens on a port for Prometheus Alertmanager messages.
When alert comes in, the application will parse the alert and send it on the the configured receiver

It translates alert manager messages into JSON format that MS Teams will understand

Usage

Build it!

Build the docker image and push it to your registry!

cd src
docker build . -t alertmanager-msteams

docker push alertmanager-msteams

Edit your values !

Go to the values file at the root of this repo and fill out your values. Key values are:

  • image : Your docker image and registry
  • Your MS Teams webhook URL under configmap section

Deploy it !

Check your kubectl is configured to point to your cluster
Deploy using helm

helm install alertmanager-msteams -f values.yaml

Test

Simply POST json data to the /alert endpoint of this application. The json format needs to represent Prometheus structure described here

Your Prometheus Alertmanager needs to be configured to push alerts to external web hook:

<webhook_config>
The webhook receiver allows configuring a generic receiver.

Configuring your Prometheus Alert Manager to push to this endpoint will allow this app to forward convert the alert manager json into MS teams friendly JSON and pass it onto MS Teams webhook endpoint

kube-prometheus-msteams-alert's People

Contributors

marcel-dempers avatar marceldempers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.