-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing current date / other functions in the Alertmanager Go templates #603
Comments
+1 |
#1178 is related to the second question |
Hi! 👋 I think being able to access the current date/time in an Alertmanager template is a valid use case. Have you considered contributing this change? You can find the functions in |
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 20, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 20, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 20, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 20, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 22, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 22, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 24, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 24, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 24, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Mar 24, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Apr 27, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
May 3, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
May 8, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
May 8, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier
added a commit
to TheMeier/alertmanager
that referenced
this issue
Jun 14, 2024
fixes prometheus#3726 fixes prometheus#3762 fixes prometheus#603 Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We're using AlertManager to send out emails.
Question 1 :
Emails apps like Inbox group emails to create conversations based on the email title. Our current email title is something like "X services failing" so that makes for horrible grouping / conversations.
The requirement would now be to group them per day by including the date in the subject.
However, I'm not able to access the current date in the Go Templates.
Is there another way of doing this ?
Question 2 :
As a general remark , we often get requirements to change the email templates. For example :
These seem to be very difficult to implement using the Go templates as a lot of these functions aren't available (no sorting, no access to date functons / current date, ....)
How should we go about this ?
The text was updated successfully, but these errors were encountered: