Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【求助】PrometheusAlert转发到PrometheusAlert #465

Open
Echo21bash opened this issue Dec 2, 2024 · 0 comments
Open

【求助】PrometheusAlert转发到PrometheusAlert #465

Echo21bash opened this issue Dec 2, 2024 · 0 comments

Comments

@Echo21bash
Copy link

我想把原来的json文件通过webhook转发到另外一个PrometheusAler。模板内容{{ . }},并没有提到预期。怎么可以实现这个需求
image
日志如下

2024/12/02 08:30:23.904 [I] [prometheusalert.go:478]  [1733128223813439228] [Webhook] "自定义模板接口参数异常!"
2024/12/02 08:30:23.905 [I] [prometheusalert.go:478]  [1733128223813439228] [Webhook] map[alerts:[map[annotations:map[message:/: Space utilization:80.01 % value:80.01 %] endsAt:0001-01-01T00:00:00Z generatorURL:http://172.16.12.83/zabbix/history.php?action=showgraph&itemids%5B%5D=34271 labels:map[alertname:/: Disk space is low (used > 80%) eventId:1243942 instance:172.16.12.77 project:太原测试中心 severity:Warning source:zabbix triggerId:18055 trigger_hostgroup:ITP] startsAt:2024.11.30 00:30:11 status:firing]] externalURL:http://172.16.12.83/zabbix/tr_events.php?triggerid=18055&eventid=1243942 receiver:zabbix-webhook status:firing]
2024/12/02 08:30:23.993 [I] [prometheusalert.go:478]  [1733128223813439228] [Webhook] ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant