# alert **Repository Path**: mingtian66/alert ## Basic Information - **Project Name**: alert - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-06 - **Last Updated**: 2025-04-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 架构图 ```mermaid flowchart LR id1(alertmanger)-.->id2(webhook)-.->id3(mongodb) id5(amis) <-.-> id4(magic-api) <-.-> id3 style id1 fill:#f9f,stroke:#333,stroke-width:2px style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 style id3 fill:#c9c,stroke:#f66,stroke-width:2px style id4 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 style id5 fill:#f9f,stroke:#333,stroke-width:2px ``` 目录结构 ```bash . ├── config # docker-compose 启动配置文件 │ ├── alertmanager.yml │ └── application.yml ├── doc # 文档 │ ├── amis-demo.png │ └── magic-api.png ├── docker-compose.yml ├── README.md ├── src │ ├── amis # amis │ │ └── Dockerfile │ └── webhook # webhook │ ├── code │ │ ├── go.mod │ │ ├── go.sum │ │ └── main.go │ └── Dockerfile └── test.sh ``` 启动 ```bash docker-compose up --build -d ``` 测试告警 ```bash bash test.sh ``` 使用magic-api 暴露mongo数据 在线ide地址 http://127.0.0.1:9999/magic/web
![alt text](doc/magic-api.png) api地址 http://127.0.0.1:9999/monitor/alert 打开amis编辑器http://127.0.0.1:8000/ ![alt text](doc/amis-demo.png)