# PrometheusAlert **Repository Path**: devop/prometheus-alert ## Basic Information - **Project Name**: PrometheusAlert - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-24 - **Last Updated**: 2026-03-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PrometheusAlert全家桶改版(本项目使用opencode来实现修改) 默认版本请查看:https://github.com/feiyu563/PrometheusAlert --- **本项目只测试支持alertmanager和webhook方式** ### 1、路由增加阻断功能 ![it](doc/images/block.png) ### 2、支持自定义通知标题 http://localhost:8080/prometheus/alert?title=自定义告警标题 ![it](doc/images/title.png) ### 3、删除帮助菜单 ### 4、支持webhook的json发送飞书标题栏颜色变动,以下为json格式根据status=resolved则标题会绿色 ```json { "alerts": [{ "appName": "{{.app.metadata.name}}", "releaseName": "{{ .app.spec.source.helm.releaseName }}", "project": "{{ .app.spec.project }}", "appStatus": "{{ .app.status.health.status }}", "namespace": "{{.app.spec.destination.namespace}}", "syncStatus": "{{.app.status.sync.status}}", {{if eq .app.status.operationState.phase "Running"}} "state": "pending", "status": "firing"{{end}} {{if eq .app.status.operationState.phase "Succeeded"}} "state": "success", "status": "resolved"{{end}} {{if eq .app.status.operationState.phase "Error"}} "state": "error", "status": "firing"{{end}} {{if eq .app.status.operationState.phase "Failed"}} "state": "fail", "status": "firing"{{end}}, "targetRevision": "{{.app.spec.source.targetRevision}}", "repo": "{{.app.spec.source.repoURL}}", "images": "{{.app.status.summary.images }}", "timeStart": "{{ .app.status.operationState.startedAt }}", "timeEnd": "{{ .app.status.operationState.finishedAt }}", "target_url": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}" }] } ``` ![it](doc/images/webhook.png) ### 5、增加webhook的日志记录,告警日志查询增加模版项 ![it](doc/images/record.png)