Hello, Ian thanks for your reply, alertmanager is running inside a container based on SLES 15 SP2, image prometheus-alertmanager 0.16.2 "installed via cephadm" when i run podman exec <id container alertmanager> amtool --version, I read version 0.16.2 and amtool -h is ok but amtool check-config is not recognized I have no log with podman logs <ID container>
When I 've tried the config sent before I see on the prometheus url status page : I'm not a container expert so I don't know where to find other logs Laetitia On Tuesday, July 13, 2021 at 4:32:27 PM UTC+2 [email protected] wrote: > Hello Laetitia, > > It looks like your configuration is *roughly *correct per the > alertmanager receiver documentation > <https://prometheus.io/docs/alerting/latest/configuration/#receiver>. I > always recommend people to check out prometheus' amtool > <https://github.com/prometheus/alertmanager/tree/main/cmd/amtool>, which > allows you to verify your alertmanager configuration locally, and test > <https://manpages.debian.org/testing/prometheus-alertmanager/amtool.1.en.html#config_routes_test_%5B%3Cflags%3E%5D_%5B%3Clabels%3E...%5D> > > which receivers an alert will be routed through. > > If you are saying that you cannot even access the alertmanager URL, that > is a different problem from configuring your alerting rules. > > Please remember when reaching out to this mailing list, the more > information you can provide: logs, screenshots, extra information, the > better that we can help you out. > > Best, > > Ian > > On Mon, Jul 12, 2021 at 11:35 AM Laetitia Gilet <[email protected]> > wrote: > >> >> Hello, >> I use prometheus/alertmanager to monitor a ceph octopus cluster. By >> default alertmanager send alerts to dahboards of three monitor node via a >> webhook integration. >> I want all my alert define in prometheus to be sent by mail and to the >> ceph dashbord so I've simply added a email_configs part to the >> ceph-dashbord receiver as follow : >> >> global: >> resolve_timeout: 5m >> >> route: >> receiver: 'default' >> routes: >> - group_by: ['alertname'] >> group_wait: 10s >> group_interval: 10s >> repeat_interval: 1h >> receiver: 'ceph-dashboard' >> >> receivers: >> - name: 'default' >> webhook_configs: >> - name: 'ceph-dashboard' >> webhook_configs: >> - url: ' >> https://ceph-m01.storage.mydomain.com:8443/api/prometheus_receiver' >> - url: 'https://ceph-m03:8443/api/prometheus_receiver' >> - url: 'https://ceph-m02:8443/api/prometheus_receiver' >> email_configs: >> - send_resolved: false >> - to: [email protected] >> - from: [email protected] >> - auth_username: [email protected] >> - hello: localhost >> - smarthost: smtp.mydomain.com:25 >> - require_tls: false >> >> >> This do not work and I have a "network error" message when i go to >> alertmanager url. >> Could you help me to keep one receiver and two notifications integrations >> please ? >> >> Laetitia >> >> -- >> 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/44c2eee7-ff78-4db9-a515-2b391d265848n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/prometheus-users/44c2eee7-ff78-4db9-a515-2b391d265848n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/f97d6864-064c-4ea2-b2f5-861167566c04n%40googlegroups.com.

