GithubHelp home page GithubHelp logo

poppen / line-notify-gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phurits/line-notify-gateway

0.0 1.0 0.0 20 KB

Line notify gateway for Alertmanager (Prometheus)

Python 70.32% HTML 28.23% Dockerfile 1.45%

line-notify-gateway's Introduction

Line Notification Gateway

Line Notification Gateway for Alertmanager (Promtheus).

This program runs as a web server between Alertmanager and Line by helping to parse the format of JSON to string.

How to set up Line Notify

  • Login to the website https://notify-bot.line.me/th/ with Line Account.
  • Go to My Page then click Generate token.
  • Insert Token name as you want. (For this project use AlertManager)
  • Select the group you want to use Line Notify or use 1-on-1 if for yourself.
  • Click Generate token.
  • Copy your token in the safe place.

Install with Docker

Using docker to run the program

Prerequisite

  • Docker

Run commands below to clone source code that need to have to run program with docker compose.

git clone https://github.com/phurits/line-notify-gateway.git
cd line-notify-gateway
docker compose up -d

Install Manually

This is how to run this program manually without using docker.

Prerequisite

  • python3

Run commands below to install tools that need to have to run the program.

git clone https://github.com/phurits/line-notify-gateway.git
cd line-notify-gateway
pip install -r requirements.txt
python app.py

AlertManager

Set receiver of generic webhook from Alertmanager.

receivers:
  - name: 'line'
    webhook_configs:
      - url: 'http://localhost:5000/webhook'
        send_resolved: true
        http_config:
          bearer_token: '« YOUR_LINE_API_TOKEN »'

line-notify-gateway's People

Contributors

poppen avatar be99inner avatar phurits avatar

Watchers

 avatar

line-notify-gateway's Issues

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.