Giter VIP home page Giter VIP logo

notifier's Introduction

notifier fire alarm

What does this project do:

the aim of this project is to send alarm notification from grafana alert manager via kavenegar api.

state:

In testing stage

How to:

Grafana

For running this project you can use docker and should set ADMIN_PASS enviroment variable for sending sms.

docker image build -t notifier .
docker run -d -e ADMIN_PASS=${admin_pass} -e KAVENEGAR_API_KEY=${kavenevgar_api_key} notifier

for test the project you can use this example

curl -X GET notifier:5000/api/v1/notifier

should gave you the below response

{"status" : "ok"}

In the notification channel you should set method in POST and admin user in 'admin' and password with your pass in ADMIN_PASS set in environment.

notifier

for config alert rule in dashboard in getting sms you need config this two tags: tags

in receptor tags you can config the mobile number you want to receive the alert. you should seperated number with comma ','.

AlertManager

For using with Alertmanager you should set labels and annotations in alerts rule.

sample alert rule config:

{
  "receiver": "team-sms",
  "status": "firing",
  "alerts": [
    {
      "status": "firing",
      "labels": {
        "alertname": "test-123",
        "sms": "true",
        "receptor": "09xxxxxxxxx,09xxxxxxxxx"
      },
      "annotation": {
        "summary": "sample message"
      }
    }
  ],
  "commonLabels": {
    "key": "value"
  }
}

notifier's People

Contributors

root-ali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pmahdavii

notifier's Issues

writting test for project

I should Write proper tests for my project .
in this state, the notifier project doesn't have any test and this is bad

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.