-
Notifications
You must be signed in to change notification settings - Fork 12
/
marathon.json.conf
32 lines (32 loc) · 910 Bytes
/
marathon.json.conf
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
{
"id": "{{ .DEPLOY_ENV }}.malerts",
"cpus": 0.1,
"mem": 64.0,
"instances": 1,
"backoffSeconds": 1,
"backoffFactor": 1.01,
"maxLaunchDelaySeconds": 30,
"ports": [],
"cmd": "chmod +x marathon-alerts-linux-amd64 && ./marathon-alerts-linux-amd64 --uri ${MARATHON_URI} --slack-webhook ${SLACK_WEBHOOK} --pid PID",
"uris": [
"https://github.com/ashwanthkumar/marathon-alerts/releases/download/v0.3.5/marathon-alerts-linux-amd64"
],
"upgradeStrategy": {
"minimumHealthCapacity": 0.9,
"maximumOverCapacity": 0.1
},
"env": {
"MARATHON_URI": "{{ .Env.MARATHON_URI }}",
"SLACK_WEBHOOK": "{{ .Env.SLACK_WEBHOOK }}"
},
"healthChecks": [
{
"protocol": "COMMAND",
"command": { "value": "ps -p $(cat PID) > /dev/null" },
"gracePeriodSeconds": 240,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"timeoutSeconds": 20
}
]
}