Giter Site home page Giter Site logo

dongshengjun / webhook-dingtalk-dispatcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xxd763795151/webhook-dingtalk-dispatcher

0.0 1.0 0.0 1.26 MB

可视化自定义配置分发不同的告警信息给不同的钉钉群助手

License: Apache License 2.0

Shell 2.61% JavaScript 7.91% Java 52.06% HTML 1.31% Vue 36.11%

webhook-dingtalk-dispatcher's Introduction

webhook-dingtalk-dispatcher

介绍

prometheus + alert-manager + webhook-dingtalk 向钉钉告警,如果想要不同的告警发给不同的钉钉群机器人, 配置太麻烦了,这里开发个可视化工具,很容易的配置,可以针对告警信息里包含的关键字发给不同的群助手。

打个比方,监控mq的告警,不同的项目用的是不同的topic,各自项目只想接收自己topic的监控告警信息,就可以通过 这个很容易配置。

下载

点击下载:webhook-dingtalk-dispatcher.zip

安装

将安装包下载下来并解压开,配置文件:config/application.yml

# 启动
sh bin/start.sh
# 停止
sh bin/shutdown.sh

使用方式

  1. 安装并配置prometheus: https://prometheus.io/docs/prometheus/latest/installation/
  2. 安装并配置alert manager: https://prometheus.io/docs/alerting/latest/configuration/
  3. 安装prometheus-webhook-dingtalk: https://github.com/timonwong/prometheus-webhook-dingtalk
  4. 安装并启动webhook-dingtalk-dispathcer,就是这个工具

前面这4个都安装完成后,修改prometheus-webhook-dingtalk的配置:

targets:
  webhook1:
    url: http://localhost:7006/dispatcher?access_token=1234567890

将本来指向钉钉webhook的地址,设置为webhook-dingtalk-dispatcher的地址,最后的access_token就是webhook-dingtalk-dispatcher的配置文件里配置的access-token属性

# 设置一个access-token,算是增加一点安全性
access-token: 1234567890

webhook-dingtalk-dispatcher's People

Contributors

xxd763795151 avatar

Watchers

James Cloos 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.