|
|
|
@@ -4,6 +4,9 @@ RunMode = "release" |
|
|
|
# my cluster name |
|
|
|
ClusterName = "Default" |
|
|
|
|
|
|
|
# sleep x seconds, then start judge engine |
|
|
|
EngineDelay = 120 |
|
|
|
|
|
|
|
[Log] |
|
|
|
# log write dir |
|
|
|
Dir = "logs" |
|
|
|
@@ -51,16 +54,40 @@ IP = "" |
|
|
|
# unit ms |
|
|
|
Interval = 1000 |
|
|
|
|
|
|
|
[SMTP] |
|
|
|
Host = "smtp.163.com" |
|
|
|
Port = 994 |
|
|
|
User = "username" |
|
|
|
Pass = "password" |
|
|
|
From = "username@163.com" |
|
|
|
InsecureSkipVerify = true |
|
|
|
Batch = 5 |
|
|
|
|
|
|
|
[Alerting] |
|
|
|
NotifyScriptPath = "./etc/script/notify.py" |
|
|
|
NotifyConcurrency = 100 |
|
|
|
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] |
|
|
|
Enable = false |
|
|
|
# complete redis key: ${ChannelPrefix} + ${Cluster} |
|
|
|
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] |
|
|
|
Metric = "target_up" |
|
|
|
# unit: second |
|
|
|
|