GithubHelp home page GithubHelp logo

alertmanager2's Introduction

Alertmanager2

Alertmanager Webhook with integration AliSms AliVms WxworkRobot ElasticSearchAPI etc.

Build

make

How to use

bin/alertmanager2

API examples

# 发送短信消息 (Prometheus notification)
curl -X POST "http://127.0.0.1:8080/channel/ali/sendsms?phone=手机号码&templatecode=短信模板代码&signname=短信签名&ak=AK密钥&as=AS密钥&tpname=渲染模板名称" -d @alertmanager_webhook_payload_example.json -v

# 发送语音消息 (Prometheus notification)
curl -X POST "http://127.0.0.1:8080/channel/ali/sendvms?phone=手机号码&templatecode=语音模板代码&ak=AK密钥&as=AS密钥&tpname=渲染模板名称" -d @alertmanager_webhook_payload_example.json -v

# 发送短信消息 (normal notification)
curl 'http://127.0.0.1:8080/channel/ali/sendsimplesms?phone=手机号码&templatecode=短信模板代码' -v -d '{"content": "这是一条测试的短信告警消息"}'

# 发送语音消息 (normal notification)
curl 'http://127.0.0.1:8080/channel/ali/sendsimplevms?phone=手机号码&templatecode=语音模板代码' -v -d '{"content": "这是一条测试的语音告警消息"}'

阿里云语音接口默认使用公共模式呼出,如需要指定固定号码呼出,需要额外指定一个查询参数callnumber=xxx

alertmanager2's People

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.