Try to format time zones from minitor

This commit is contained in:
IamTheFij 2023-08-18 12:14:09 -07:00
parent 32b5e420bc
commit 05c367e531
2 changed files with 6 additions and 2 deletions

View File

@ -66,7 +66,7 @@ alerts:
-F subject="ALERT! {{.MonitorName}} is Down"
-F from="Minitor <minitor@iamthefij.com>"
-F to=ian@iamthefij.com
-F text=$'{{.MonitorName}} has failed {{.FailureCount}} checks. Alert count: {{.AlertCount}}. Last success was {{RFC1123Z (InTZ .LastSuccess "America/Los_Angeles")}}.\n\n-Nomad Minitor'
-F text=$'{{.MonitorName}} has failed {{.FailureCount}} checks. Alert count: {{.AlertCount}}. Last success was {{RFC1123Z .LastSuccess}}.\n\n-Nomad Minitor'
https://api.mailgun.net/v3/mg.iamthefij.com/messages
-u "api:$MAILGUN_API_KEY"

View File

@ -2,11 +2,15 @@ module "minitor" {
source = "./service"
name = "minitor"
image = "iamthefij/minitor-go:1.4"
image = "iamthefij/minitor-go:1.4.1"
args = ["-metrics", "-config=$${NOMAD_TASK_DIR}/config.yml"]
service_port = 8080
prometheus = true
env = {
TZ = "America/Los_Angeles",
}
templates = [
{
data = <<EOF