PrometheusAlert icon indicating copy to clipboard operation
PrometheusAlert copied to clipboard

钉钉修改配置&为%26加签也不成功

Open shiyek opened this issue 1 year ago • 4 comments

image

app.conf: open-dingding-secret=1 ddurl=https://oapi.dingtalk.com/robot/send?access_token=xxxxxxx&secret=SECxxxxxx

alertmanager.yaml: webhook_configs:

  • url: 'http://10.0.20.60:8085/prometheusalert?type=dd&tpl=prometheus-dd&ddurl=https://oapi.dingtalk.com/robot/send?access_token=xxxxxx&secret=SECxxxxxxx'

按提供的方法,修改两处secret前的&为%26后,依然报错: app.conf: ddurl=https://oapi.dingtalk.com/robot/send?access_token=xxxxxxx%26secret=SECxxxxxx alertmanager.yaml: webhook_configs:

  • url: 'http://10.0.20.60:8085/prometheusalert?type=dd&tpl=prometheus-dd&ddurl=https://oapi.dingtalk.com/robot/send?access_token=xxxxxx%26secret=SECxxxxxxx'

image

shiyek avatar Apr 19 '24 08:04 shiyek

我也是同样的问题, 我换成了关键字方式,就可以了。

lose50281 avatar May 07 '24 09:05 lose50281

使用告警组,不用替换 & 字符。

Zhang21 avatar Jun 05 '24 01:06 Zhang21

同样问题

xsunnydong avatar Jun 19 '24 10:06 xsunnydong