Hi all !

I have a problem to send alerts to slack via webhook. I have a traefik 
proxy and alertmanager which run in docker swarm.
So the communication between prometheus and alert is done by docker network 
service (alermanager:9093).

Traefik generates certficates with acme let's encrypt and working well but 
when alertmanager push an alert to slack, i get this error: "Post 
<redacted>: x509: certificate signed by unknown authority"
I don't know if something has changed with let s encrypt certificate or 
slack webhook or alertmanager version (v0.19) but it worked before.

My alertmanager configuration:

route:
  group_by: [alertname, job]
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 4h
  # If an alert isn't caught by a route, send it slack.
  receiver: slack_general
  routes:
  # Send severity=slack alerts to slack.
  - match:
      severity: info|warning|critical
    receiver: slack_general
receivers:
- name: slack_general
  slack_configs:
  - api_url: *****
    channel: '****
    username: "****"
    send_resolved: true
    color: '{{ if eq .Status "firing" }}danger{{ else }}good{{ end }}'
    title: '{{ template "custom.title" . }}'
    title_link: '{{ template "slack.default.titlelink" . }}'
    pretext: '{{ .CommonAnnotations.summary }}'
    text: |-
      {{ range .Alerts }}
        *Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}`
        *Description:* {{ .Annotations.description }}
        *Details:*
        {{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
        {{ end }}
      {{ end }}
    fallback: '{{ template "slack.default.fallback" . }}'
    icon_url: '{{ template "slack.default.iconurl" . }}'
templates:
- /etc/alertmanager/templates/notification.tmpl

I have no tls configuration in alertmanager but I think I don't need it 
because it's traefik that encrypt the alert and send it to slack. Am I 
wrong ?

Thanks for your time.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/10f2a06c-8ceb-41d2-8993-b93d14c44f7e%40googlegroups.com.

Reply via email to