There's something off with your YAML data for sure but what you pasted looks ok.
Can you share it on pastebin (or similar)?
On Tue, Jul 9, 2019 at 2:59 PM Zarah Diarras <
timaza...@gmail.com> wrote:
>
> Hello guys
>
> I am new to prometheus. I am setting up Alert manager to get email notification. the alerts are firing but i am not receiving mails beccause of my alertmanager.yml file.
>
> this is how the file looks like
>
> route:
> group_by: [Alertname]
> receiver: email-me
>
> receivers:
> - name: email-me
> email_configs:
> - to: receiver@.....
> from: sender@...
> smarthost:
mail.domain.net:25
> auth_username: "
sen...@domain.net"
> auth_identity: "
sen...@domain.net"
> auth_password: "mypass"
>
> and this is the error message I get when i check the config.
>
> FAILED: parsing YAML file /etc/alertmanager/alertmanager.yml: yaml: unmarshal er rors:
> line 1: field route not found in type config.plain
> line 5: field receivers not found in type config.plain
>
> alertmanager version is 0.17.0
>
> alertmanager --version
> alertmanager, version 0.17.0 (branch: HEAD, revision: c7551cd75c414dc81df027f691e2eb21d4fd85b2)
> build user: root@932a86a52b76
> build date: 20190503-09:10:07
> go version: go1.12.4
>
> best regards.
>
> --
> 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/bd4c70ca-45c3-4a8c-8168-eaa583358bbb%40googlegroups.com.