-
Notifications
You must be signed in to change notification settings - Fork 1
/
alertmanager.nomad
80 lines (62 loc) · 1.51 KB
/
alertmanager.nomad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
job "alertmanager" {
datacenters = ["dc1"]
type = "service"
meta {
auto-backup = true
backup-schedule = "@daily"
backup-target-db = "postgres"
}
group "alerting" {
count = 1
network {
mode = "host"
port "alertmanager_ui" {
static = 9093
to = 9093
}
}
restart {
attempts = 2
interval = "30m"
delay = "15s"
mode = "fail"
}
ephemeral_disk {
size = 300
}
task "alertmanager" {
driver = "raw_exec"
constraint {
attribute = attr.cpu.arch
value = "arm64"
}
artifact {
source = "https://github.com/prometheus/alertmanager/releases/download/v0.22.2/alertmanager-0.22.2.linux-armv6.tar.gz"
destination = "local/"
options {
checksum = "sha256:8d31f59b52f69a77f869bd124e87a5fc9434a9f4fce5325a980d35acd269f71c"
}
}
config {
command = "local/alertmanager-0.22.2.linux-armv6/alertmanager"
args = ["--config.file=local/alertmanager-0.22.2.linux-armv6/alertmanager.yml"]
}
resources {
cpu = 125
memory = 256
}
service {
name = "alertmanager"
tags = ["urlprefix-/alertmanager strip=/alertmanager"]
port = "alertmanager_ui"
check {
name = "alertmanager_ui port alive"
type = "http"
path = "/-/healthy"
interval = "10s"
timeout = "2s"
}
}
}
}
}