Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Nightingale
提交
1f4e8e75
N
Nightingale
项目概览
jobily
/
Nightingale
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
Nightingale
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1f4e8e75
编写于
3月 01, 2022
作者:
U
Ulric Qin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docker-compose configs
上级
fed9b9a1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
53 addition
and
4 deletion
+53
-4
docker/n9eetc/server.conf
docker/n9eetc/server.conf
+29
-2
docker/n9eetc/webapi.conf
docker/n9eetc/webapi.conf
+24
-2
未找到文件。
docker/n9eetc/server.conf
浏览文件 @
1f4e8e75
...
...
@@ -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
...
...
docker/n9eetc/webapi.conf
浏览文件 @
1f4e8e75
...
...
@@ -10,19 +10,39 @@ AdminRole = "Admin"
# metrics descriptions
MetricsYamlFile
=
"./etc/metrics.yaml"
# Linkage with notify.py script
NotifyChannels
= [
"email"
,
"dingtalk"
,
"wecom"
,
"feishu"
]
[[
NotifyChannels
]]
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
]]
Label
=
"Wecom Robot Token"
# do not change Key
Key
=
"wecom_robot_token"
[[
ContactKeys
]]
Label
=
"Dingtalk Robot Token"
# do not change Key
Key
=
"dingtalk_robot_token"
[[
ContactKeys
]]
Label
=
"Feishu Robot Token"
# do not change Key
Key
=
"feishu_robot_token"
[
Log
]
...
...
@@ -93,6 +113,8 @@ AuthFilter = "(&(uid=%s))"
CoverAttributes
=
true
TLS
=
false
StartTLS
=
true
# ldap user default roles
DefaultRoles
= [
"Standard"
]
[
LDAP
.
Attributes
]
Nickname
=
"cn"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录