Giter VIP home page Giter VIP logo

alertmanager-stomp-forwarder's Introduction

alertmanager-stomp-forwarder

Dispatching Panic Across the Organization

Prometheus Alertmanager Webhook Receiver for forwarding alerts to any Stomp receiver. Inspired by https://github.com/DataReply/alertmanager-sns-forwarder.

Compile

As a Docker image:

docker build -t alertmanager-stomp-forwarder:0.1 .

Usage

  1. Build the Docker image.

  2. Deploy, preferably on K8s (yaml provided in folder deploy).

  3. Configure Alertmanager.

Arguments

The app accepts some optional arguments, available as flags or env vars.

Flag Env Variable Default Description
--addr LISTEN_ADDR 0.0.0.0:80 Address on which to listen.
--debug DEBUG false Debug mode
--stomp-addr STOMP_ADDR localhost:61616 Address where the stomp server is listening.
--stomp-user STOMP_USER admin User to connect to the stomp server.
--stomp-pass STOMP_PASS admin Pass to connect to the stomp server.

Endpoints

The app exposes the following HTTP endpoints:

Endpoint Method Description
/alert/<topic> POST Endpoint for posting alerts by Alertmanager
/health GET Endpoint for k8s readiness and liveness probes
/metrics GET Endpoint for Prometheus metrics

Configuring Alertmanager

Alertmanager configuration file:

- name: 'sns-forwarder'
  webhook_configs:
  - send_resolved: True
    url: http://<forwarder_url>/alert/<topic_name>

Replace <forwarder_url> with the correct URL, on K8s using the provided yaml it will be alertmanager-stomp-forwarder-svc.default:9087.

Deploying

In order to deploy the app on K8s the yaml file provided in folder deploy can be used. However, the deploy file requires some additional comments.

alertmanager-stomp-forwarder's People

Watchers

Guillermo Facundo (Willy) 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.