Resolved by removing bullet • in the code and launched the container. It works now.
On Wed, 13 Jan 2021, 10:13 pm Mohan, <[email protected]> wrote: > I m trying in centos8.2 system is it something wrong in my yml file? I > can't find the cause. So any help will be appreciated. > > On Mon, 11 Jan 2021, 4:52 pm Mohan.S, <[email protected]> wrote: > >> Hello Team, >> I am trying to configure the promethues alert-manager notification to >> slack. i have copied the content from >> >> >> https://github.com/shazforiot/Prometheusalertmanager/blob/main/slack_alertmanager.yml >> >> But my container on start fails with below error. >> >> alertmanager | level=error ts=2021-01-11T10:30:35.129Z >> caller=coordinator.go:124 component=configuration msg="Loading >> configuration file failed" file=/etc/alertmanager/alertmanager.yml >> err="yaml: invalid leading UTF-8 octet" >> >> File saved in notepad++ with encoding UTF-8, however still no success. >> even this link >> >> >> https://grafana.com/blog/2020/02/25/step-by-step-guide-to-setting-up-prometheus-alertmanager-with-slack-pagerduty-and-gmail/ >> also the same problem. YML syntax validated in this >> http://www.yamllint.com/ here no issue at all. >> >> what could be issue? Please provide direction to solve this. >> >> -- >> 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/43432783-ee4b-4e19-8e4f-1204b4e29391n%40googlegroups.com >> <https://groups.google.com/d/msgid/prometheus-users/43432783-ee4b-4e19-8e4f-1204b4e29391n%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/CA%2B4Hw5YTGiUKndGVE_UYCS5X0aCwvqPFLYCP%3D6wrVd399C4_yQ%40mail.gmail.com.

