# prometheus_alert **Repository Path**: michaelsky/prometheus_alert ## Basic Information - **Project Name**: prometheus_alert - **Description**: prometheus alertmanager 的告警接收与处理 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-12-01 - **Last Updated**: 2023-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 说明 本脚本主要用于接收 prometheus 发送过来的告警,自定义告警内容格式后,调用不同的工具发送到特定的软件中,目前已完成的软件组件有: * 飞书告警 * 邮件告警 * 华为电话告警 # 使用 ## 1. 下载代码 ```shell script git clone https://github.com/michael-liumh/prometheus_alert.git ``` ## 2、安装依赖 ```shell script apt-get install -y make cmake gcc g++ libncurses5-dev openssl libssl-dev pkg-config ``` ## 3、安装python软件包 ```shell script pip3 install colorlog python-dateutil requests flask gevent ``` ## 4. 复制配置文件并修改 ```shell script cp alert_settings_example.py alert_settings.py ``` ## 5. 运行 ```shell script python3 main.py ```