Alertmanager yml - invalid leading UTF-8 octet

718 views
Skip to first unread message

Mohan S

unread,
Jan 11, 2021, 6:22:03 AM1/11/21
to Prometheus Users
Hello Team,
I am trying to configure the promethues alert-manager notification to slack. i have copied the content from


But my container 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


what could be issue? Please provide direction to solve this.

Mohan

unread,
Jan 13, 2021, 11:43:45 AM1/13/21
to Prometheus Users
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, <moha...@gmail.com> wrote:
Hello Team,
I am trying to configure the promethues alert-manager notification to slack. i have copied the content from


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


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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/43432783-ee4b-4e19-8e4f-1204b4e29391n%40googlegroups.com.

Mohan

unread,
Jan 15, 2021, 11:37:02 AM1/15/21
to Prometheus Users
Resolved by removing bullet  in the code and launched the container. It works now.
Reply all
Reply to author
Forward
0 new messages