|
|
@ -4,6 +4,9 @@ RunMode = "release"
|
|
|
|
# my cluster name
|
|
|
|
# my cluster name
|
|
|
|
ClusterName = "Default"
|
|
|
|
ClusterName = "Default"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sleep x seconds, then start judge engine
|
|
|
|
|
|
|
|
EngineDelay = 120
|
|
|
|
|
|
|
|
|
|
|
|
[Log]
|
|
|
|
[Log]
|
|
|
|
# log write dir
|
|
|
|
# log write dir
|
|
|
|
Dir = "logs"
|
|
|
|
Dir = "logs"
|
|
|
@ -51,16 +54,40 @@ IP = ""
|
|
|
|
# unit ms
|
|
|
|
# unit ms
|
|
|
|
Interval = 1000
|
|
|
|
Interval = 1000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[SMTP]
|
|
|
|
|
|
|
|
Host = "smtp.163.com"
|
|
|
|
|
|
|
|
Port = 994
|
|
|
|
|
|
|
|
User = "username"
|
|
|
|
|
|
|
|
Pass = "password"
|
|
|
|
|
|
|
|
From = "username@163.com"
|
|
|
|
|
|
|
|
InsecureSkipVerify = true
|
|
|
|
|
|
|
|
Batch = 5
|
|
|
|
|
|
|
|
|
|
|
|
[Alerting]
|
|
|
|
[Alerting]
|
|
|
|
NotifyScriptPath = "./etc/script/notify.py"
|
|
|
|
|
|
|
|
NotifyConcurrency = 100
|
|
|
|
|
|
|
|
TemplatesDir = "./etc/template"
|
|
|
|
TemplatesDir = "./etc/template"
|
|
|
|
|
|
|
|
NotifyConcurrency = 10
|
|
|
|
|
|
|
|
# use builtin go code notify by default
|
|
|
|
|
|
|
|
NotifyBuiltinEnable = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Alerting.CallScript]
|
|
|
|
|
|
|
|
# built in sending capability in go code
|
|
|
|
|
|
|
|
# so, no need enable script sender
|
|
|
|
|
|
|
|
Enable = false
|
|
|
|
|
|
|
|
ScriptPath = "./etc/script/notify.py"
|
|
|
|
|
|
|
|
|
|
|
|
[Alerting.RedisPub]
|
|
|
|
[Alerting.RedisPub]
|
|
|
|
Enable = false
|
|
|
|
Enable = false
|
|
|
|
# complete redis key: ${ChannelPrefix} + ${Cluster}
|
|
|
|
# complete redis key: ${ChannelPrefix} + ${Cluster}
|
|
|
|
ChannelPrefix = "/alerts/"
|
|
|
|
ChannelPrefix = "/alerts/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Alerting.Webhook]
|
|
|
|
|
|
|
|
Enable = false
|
|
|
|
|
|
|
|
Url = "http://a.com/n9e/callback"
|
|
|
|
|
|
|
|
BasicAuthUser = ""
|
|
|
|
|
|
|
|
BasicAuthPass = ""
|
|
|
|
|
|
|
|
Timeout = "5s"
|
|
|
|
|
|
|
|
Headers = ["Content-Type", "application/json", "X-From", "N9E"]
|
|
|
|
|
|
|
|
|
|
|
|
[NoData]
|
|
|
|
[NoData]
|
|
|
|
Metric = "target_up"
|
|
|
|
Metric = "target_up"
|
|
|
|
# unit: second
|
|
|
|
# unit: second
|
|
|
|