kerven88

Results 10 comments of kerven88

查看target Pod状态为PodFitsHostPorts kubectl describe pod日志 Status: Failed Reason: PodFitsHostPorts Message: Pod Predicate PodFitsHostPorts failed

> The problem is that the forked pod ran to COMPLETE status instead of RUNNING. > > How many containers in the target Pod? The problem is that the pod...

> @kerven88 > Yes, of course the goal is to find the reason of the CrashLoopBackOff state. > > However, the strategy `kubectl-debug` take is to fork a Pod and...

> @kerven88 This requires modification of code, hopefully I will submit a PR this weekend, or I can give some guidance if you are willing to work on this. Tks!...

## Customizable templates path templates: - contrib/templates/legacy/template.tmpl 我这样配置模板,reload时候提示格式问题。 是要按照你上面方式配置吗? template: dingtalk-message.tmpl

另外,在prometheus-webhook-dingtalk里面配置了tmpl模板之后,是会覆盖掉alertmanager配置的模板吗?

模板dingtalk.tmpl [root@prometheus prometheus-webhook-dingtalk]# cat dingtalk.tmpl {{ define "__subject" }}[{{ .Annotations.summary }}]{{ end }} {{ define "__text_list" }}{{ range . }} {{ range .Alerts }} 实例: {{ .Labels.instance }} 信息: {{...

重新拉取代码编译后,启动有报错: ![image](https://user-images.githubusercontent.com/51351006/84223843-8c994180-ab0d-11ea-9897-9e9c08ea216d.png) Jun 10 11:27:33 prometheus prometheus-webhook-dingtalk[467]: level=error ts=2020-06-10T03:27:33.160Z caller=dingtalk.go:90 component=web target=webhook msg="Failed to build notification" err="template: :1:12: executing \"\" at : template \"ding.link.title\" not defined" 配置还是沿用之前版本的配置,之前版本启动正常。

加了这行配置,还是报错: Jun 10 11:45:33 prometheus prometheus-webhook-dingtalk[1736]: level=error ts=2020-06-10T03:45:33.154Z caller=dingtalk.go:90 component=web target=webhook msg="Failed to build notification" err="template: :1:12: executing \"\" at : template \"ding.link.title\" not defined" Jun 10 11:45:33 prometheus prometheus-webhook-dingtalk[1736]:...

用了你这个tmpl,还是一样的报错: Jun 10 12:28:03 prometheus prometheus-webhook-dingtalk[5906]: level=error ts=2020-06-10T04:28:03.240Z caller=dingtalk.go:90 component=web target=webhook msg="Failed to build notification" err="template: :1:12: executing \"\" at : template \"ding.link.title\" not defined" Jun 10 12:28:03 prometheus prometheus-webhook-dingtalk[5906]:...