update docker-compose configs

This commit is contained in:
Ulric Qin 2022-03-01 17:04:10 +08:00
parent fed9b9a19d
commit 1f4e8e752e
2 changed files with 53 additions and 4 deletions

View File

@ -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

View File

@ -10,19 +10,39 @@ AdminRole = "Admin"
# metrics descriptions # metrics descriptions
MetricsYamlFile = "./etc/metrics.yaml" MetricsYamlFile = "./etc/metrics.yaml"
# Linkage with notify.py script [[NotifyChannels]]
NotifyChannels = [ "email", "dingtalk", "wecom", "feishu" ] Label = "邮箱"
# do not change Key
Key = "email"
[[NotifyChannels]]
Label = "钉钉机器人"
# do not change Key
Key = "dingtalk"
[[NotifyChannels]]
Label = "企微机器人"
# do not change Key
Key = "wecom"
[[NotifyChannels]]
Label = "飞书机器人"
# do not change Key
Key = "feishu"
[[ContactKeys]] [[ContactKeys]]
Label = "Wecom Robot Token" Label = "Wecom Robot Token"
# do not change Key
Key = "wecom_robot_token" Key = "wecom_robot_token"
[[ContactKeys]] [[ContactKeys]]
Label = "Dingtalk Robot Token" Label = "Dingtalk Robot Token"
# do not change Key
Key = "dingtalk_robot_token" Key = "dingtalk_robot_token"
[[ContactKeys]] [[ContactKeys]]
Label = "Feishu Robot Token" Label = "Feishu Robot Token"
# do not change Key
Key = "feishu_robot_token" Key = "feishu_robot_token"
[Log] [Log]
@ -93,6 +113,8 @@ AuthFilter = "(&(uid=%s))"
CoverAttributes = true CoverAttributes = true
TLS = false TLS = false
StartTLS = true StartTLS = true
# ldap user default roles
DefaultRoles = ["Standard"]
[LDAP.Attributes] [LDAP.Attributes]
Nickname = "cn" Nickname = "cn"