Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

prometheus - Alertmanager: Slack Notification - x509: certificate signed by unknown authority

I am trying to configure the Prometheus alert-manager with slack for the notification. But it fails with below error.

alertmanager    | level=warn ts=2021-01-11T05:53:56.925Z caller=notify.go:674 component=dispatcher receiver=slack integration=slack[0] msg="Notify attempt failed, will retry later" attempts=1 err="Post "<redacted>": x509: certificate signed by unknown authority"
alertmanager    | level=error ts=2021-01-11T05:54:06.019Z caller=dispatch.go:309 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="slack/slack[0]: notify retry canceled after 7 attempts: Post "<redacted>": x509: certificate signed by unknown authority"

my alertmanager.yml config file as follows.

global:
  resolve_timeout: 5m

route:
  group_by: ['alertname']
  group_wait: 10s
  group_interval: 10s
  repeat_interval: 1h
  receiver: 'slack'
receivers:
- name: 'slack'
  slack_configs:
  - api_url: "Slack webhook api"
    channel: '#slack channel'
    send_resolved: true

What is the way to resolve this in alertmanager?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The below additional entries helped to get the notification in slack.

  http_config:
    tls_config:
      insecure_skip_verify: true

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...