2021
10-28
10-28
go开发alertmanger实现钉钉报警
通过自己的url实现alertmanager的钉钉报警webhook在alertmanger的配置-name:'dingding'webhook_configs:-send_resolved:trueurl:'http://xxxx:8080/Alert'go实现钉钉报警的程序packagemainimport("bytes""encoding/json""fmt""net/http""strings""time""log""github.com/gin-gonic/gin")const(webHook_Alert="https://oapi.dingtalk.com/robot/send?access_token=xxxx")typeMessages...
继续阅读 >