I didn't verify but I miss to tell you something about docker image. I have
build my own one like this. If the alertmanager image contains CA, I think
it didn't copy automatically to my new image.
I'm not an expert with multi stating docker image but it could be my
problem. I have to be carefull ...
ARG ALERT_TAG=latest
FROM prom/alertmanager:${ALERT_TAG} as build
FROM alpine:3.10.2
RUN apk add gettext
COPY --from=build /bin/alertmanager /bin/alertmanager
Le samedi 7 mars 2020 18:01:26 UTC+1, BDT a écrit :
>
> 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/3671bade-04a9-4767-b844-5c4e52e062ab%40googlegroups.com.