kinhelm / WebhookAlertsBot

Webhook for NewRelic to have alert on Telegram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webhook Alert Telegram Bot

This is a webhook to broadcasts alerts to all Telegram active chats.

Requirements

  • Python 3.8 or higher
  • pip

Installation

  1. Clone the repository
  2. Install the dependencies with pip:
pip install -r requirements.txt

Usage

1- Run the Webhook with the following command:

python main.py

2- Run the Bot backend (to register Users) with the following command:

python bot.py

3- Send a POST request to the /push-alert endpoint with the tools you want.

Request body example:

{
    "message": "My alert !"
}

About

Webhook for NewRelic to have alert on Telegram


Languages

Language:Python 100.0%