Skip to content

【求助】PrometheusAlert转发到PrometheusAlert #465

Open
@Echo21bash

Description

@Echo21bash

我想把原来的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] ""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions