【发布时间】:2021-01-11 17:40:10
【问题描述】:
我使用的是 rancher 2.5 提供的监控应用程序,它实际上是在安装 kube-prometheus-stack Helm 图表。我正在尝试使用 webhook 作为接收器发送警报。 webhook 位于自定义服务上,该服务记录了它使用 http 400 响应请求。我的问题是如何查看发送到提供 webhook 的服务器的请求警报管理器。我正在使用log.level=debug 运行 pod,但我看到的唯一日志是:
level=debug ts=2021-01-11T17:22:32.629Z caller=notify.go:685 component=dispatcher receiver=prometheus integration=webhook[0] msg="Notify success" attempts=1
level=debug ts=2021-01-11T17:23:02.591Z caller=dispatch.go:138 component=dispatcher msg="Received alert" alert=Watchdog[7109567][active]
level=debug ts=2021-01-11T17:23:32.594Z caller=dispatch.go:473 component=dispatcher aggrGroup="{}/{severity=~\"^(?:warning|none|critical)$\"}:{}" msg=flushing alerts=[Watchdog[7109567][active]]
这没什么用,我想看看实际的请求和响应。
【问题讨论】:
标签: kubernetes prometheus webhooks prometheus-alertmanager prometheus-operator