Hi,
You should be able to access the counts of firing and resolved alerts
separately using "{{ .Alerts.Firing | len }}" and "{{ .Alerts.Resolved |
len }}". So something like:
[{{ .Alerts.Firing | len }} – Firing, {{ .Alerts.Resolved | len }} –
Resolved]
Regards,
Julius
On Sat, Sep 10, 2022 at 3:42 PM Nitya Sree <[email protected]> wrote:
> Hi all,
>
> Currently i added Subject header in receiver configuration as [{{ .Status
> | toUpper }}] and the alerts are firing as [FIRING] and [RESOLVED] in email
> notification subject
> Now we got a requirement as [1 – Firing , 1 – Resolved ]. Can anyone
> please help me out here.
>
> Thanks
>
> --
> 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/6f076888-96a2-4409-8c31-7e40f3992ee5n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/6f076888-96a2-4409-8c31-7e40f3992ee5n%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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CAObpH5zYhxOiPh9h7C7%2BKxL8bag726V6-5Sw9oynb-s7f2ioWg%40mail.gmail.com.