Try to format time zones from minitor
This commit is contained in:
parent
32b5e420bc
commit
05c367e531
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user