bougou / alertmanager-webhook-adapter Goto Github PK
View Code? Open in Web Editor NEWA general webhook server for receiving Prometheus Alertmanager's notifications and send them through different channel types.
License: Apache License 2.0
A general webhook server for receiving Prometheus Alertmanager's notifications and send them through different channel types.
License: Apache License 2.0
2022/08/06 10:14:30 start listening, 0.0.0.0:8090
ExecuteTemplate failed, err: template: prom:4:7: executing "__subject" at <eq (index .Alerts 0).Labels.severity "ok">: error calling eq: incompatible types for comparison
ExecuteTemplate failed, err: template: prom:32:7: executing "__alert_list" at <eq .Labels.severity "ok">: error calling eq: incompatible types for comparison
ExecuteTemplate failed, err: template: prom:32:7: executing "__alert_list" at <eq .Labels.severity "ok">: error calling eq: incompatible types for comparison
大佬,可以介绍下1.1.7版本更新了什么吗?我看你的dockerhub上已经有1.1.7的镜像了,github上没有1.1.7的release
altermanager 发送数据了,但是altermanager-webhook-adapter 没有日志显示,不明白哪里出问题了。
altermanager 日志如下
ts=2022-08-06T06:25:14.579Z caller=dispatch.go:517 level=debug component=dispatcher aggrGroup="{}:{alertname="node_down"}" msg=flushing alerts="[node_down[1a9a0f5][active] node_down[8cae908][active]]"
ts=2022-08-06T06:25:14.738Z caller=notify.go:743 level=debug component=dispatcher receiver=admin integration=webhook[0] msg="Notify success" attempts=1
ts=2022-08-06T06:25:35.502Z caller=dispatch.go:165 level=debug component=dispatcher msg="Received alert" alert=ProcessDown[b0f4dbd][resolved]
ts=2022-08-06T06:25:35.503Z caller=dispatch.go:517 level=debug component=dispatcher aggrGroup="{}:{alertname="ProcessDown"}" msg=flushing alerts=[ProcessDown[b0f4dbd][resolved]]
ts=2022-08-06T06:25:35.556Z caller=notify.go:743 level=debug component=dispatcher receiver=admin integration=webhook[0] msg="Notify success" attempts=1
ts=2022-08-06T06:26:14.580Z caller=dispatch.go:517 level=debug component=dispatcher aggrGroup="{}:{alertname="node_down"}" msg=flushing alerts="[node_down[1a9a0f5][active] node_down[8cae908][active]]"
ts=2022-08-06T06:26:29.578Z caller=dispatch.go:165 level=debug component=dispatcher msg="Received alert" alert=node_down[1a9a0f5][active]
ts=2022-08-06T06:26:29.578Z caller=dispatch.go:165 level=debug component=dispatcher msg="Received alert" alert=node_down[8cae908][active]
ts=2022-08-06T06:26:50.504Z caller=dispatch.go:165 level=debug component=dispatcher msg="Received alert" alert=ProcessDown[b0f4dbd][resolved]
ts=2022-08-06T06:26:50.504Z caller=dispatch.go:517 level=debug component=dispatcher aggrGroup="{}:{alertname="ProcessDown"}" msg=flushing alerts=[ProcessDown[b0f4dbd][resolved]]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.