To send an email with a CC: in alertmanager, it is not sufficient to add a CC: header.
receivers: - name: my-receiver email_configs: - to: 'o...@foo.com' headers: subject: 'my subject' CC: 't...@bar.com' You also need to add the CC: address to the to: field and explicitely add a to: field. receivers: - name: my-receiver email_configs: - to: 'o...@foo.com,t...@bar.com' headers: subject: 'my subject' To: 'o...@foo.com' CC: 't...@bar.com' To send a mail in BCC:, overwrite the To: header and add the BCC addresses to the to: field: receivers: - name: my-receiver email_configs: - to: 'o...@foo.com,th...@foo.com' headers: subject: 'my subject' To: 'o...@foo.com' On 20 Jan 14:28, Julius Volz wrote: > Hi Prashant, > > Looking at the email implementation in Alertmanager, "to" should be treated > exactly as "cc" internally (just optionally supplied through a dedicated > YAML field). It's just another header: > https://github.com/prometheus/alertmanager/blob/f59460bfd4bf883ca66f4391e7094c0c1794d158/notify/email/email.go#L53-L70 > > So I would be surprised if the problem is in Alertmanager itself, rather > than something in the email pipeline after it. > > Kind regards, > Julius > > On Fri, Jan 20, 2023 at 1:38 PM Prashant Singh <prashantnit...@gmail.com> > wrote: > > > Dear team, > > > > prometheus alertmanager CC is not working even as add TO_ and CC_ . > > > > TO: it is working > > CC: it is not working. > > > > > > - name: 'MoniDashboard' > > email_configs: > > - send_resolved: true > > to: 'vinoth.sundaram > > headers: > > cc: 'PrashantKumar.Singh1' > > require_tls: no > > > > thanks > > Prashant > > > > -- > > 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-users+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/prometheus-users/9987573c-ed69-4fb2-94aa-4c37870c540dn%40googlegroups.com > > <https://groups.google.com/d/msgid/prometheus-users/9987573c-ed69-4fb2-94aa-4c37870c540dn%40googlegroups.com?utm_medium=email&utm_source=footer> > > . > > > > > -- > Julius Volz > PromLabs - promlabs.com > > -- > 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-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/CAObpH5wv7WVme5ysp720Cj815fJdwATria-%2B0yDW0sG46_82XA%40mail.gmail.com. -- Julien Pivotto @roidelapluie -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/Y8qYcNgIfCtud8tl%40nixos.