127 lines
2.9 KiB
YAML
127 lines
2.9 KiB
YAML
logger:
|
||
dir: logs
|
||
level: DEBUG
|
||
# # rotate by time
|
||
# keepHours: 4
|
||
# rotate by size
|
||
rotatenum: 3
|
||
rotatesize: 256 # unit: MB
|
||
|
||
http:
|
||
mode: release
|
||
# whether print access log to DEBUG.log
|
||
access: false
|
||
listen: 0.0.0.0:8000
|
||
pprof: false
|
||
cookieName: n9e
|
||
cookieDomain: ""
|
||
cookieMaxAge: 86400
|
||
cookieSecure: false
|
||
cookieHttpOnly: true
|
||
cookieSecret: 4696709ab8cc3ff2fea17b930158516b
|
||
csrfSecret: 15b8ea164b5d3d9254677053c72a19f1
|
||
|
||
rpc:
|
||
listen: 0.0.0.0:9000
|
||
|
||
mysql:
|
||
addr: "root:1234@tcp(127.0.0.1:3306)/n9e?charset=utf8&parseTime=True&loc=Asia%2FShanghai"
|
||
max: 128
|
||
idle: 16
|
||
debug: false
|
||
|
||
# i18n:
|
||
# # zh | en
|
||
# lang: zh
|
||
# dictPath: etc/i18n.json
|
||
|
||
# heartbeat:
|
||
# # auto detect if blank
|
||
# ip: ""
|
||
# # unit: ms
|
||
# interval: 1000
|
||
|
||
# ldap:
|
||
# enable: false
|
||
# host: ldap.example.org
|
||
# port: 389
|
||
# baseDn: "dc=example,dc=org"
|
||
# # AD: manange@example.org
|
||
# bindUser: "cn=manager,dc=example,dc=org"
|
||
# bindPass: "*******"
|
||
# # openldap: (&(uid=%s))
|
||
# # AD: (&(sAMAccountName=%s))
|
||
# authFilter: "(&(uid=%s))"
|
||
# attributes:
|
||
# nickname: "cn"
|
||
# email: "mail"
|
||
# phone: "mobile"
|
||
# coverAttributes: false
|
||
# autoRegist: true
|
||
# tls: false
|
||
# startTLS: false
|
||
|
||
# judge:
|
||
# readBatch: 2000
|
||
# connTimeout: 2000
|
||
# callTimeout: 5000
|
||
# writerNum: 256
|
||
# connMax: 2560
|
||
# connIdle: 256
|
||
|
||
# alert:
|
||
# notifyScriptPath: ./etc/script/notify.py
|
||
# notifyConcurrency: 200
|
||
# mutedAlertPersist: true
|
||
|
||
trans:
|
||
enable: true
|
||
backend:
|
||
datasource: "prometheus"
|
||
prometheus:
|
||
enable: true
|
||
name: prometheus
|
||
batch: 100000
|
||
maxRetry: 5
|
||
# prometheus 查询返回最大点数query.max-samples
|
||
maxSamples: 50000000
|
||
# prometheus并发的查询 query.max-concurrency
|
||
maxConcurrentQuery: 20
|
||
# prometheus 回查窗口 query.lookback-delta
|
||
lookbackDeltaMinute: 2
|
||
# 查询全量索引时时间窗口限制,降低高基数
|
||
maxFetchAllSeriesLimitMinute: 5
|
||
# 查询接口耗时超过多少秒就打印warning日志记录
|
||
slowLogRecordSecond: 3
|
||
# remote_read时,如果没有查询条件则用这条默认的ql查询
|
||
# 注意! ql匹配series越多,造成的oom或者慢查询可能越大
|
||
defaultFetchSeriesQl: '{__name__=~"system.*"}'
|
||
remoteWrite:
|
||
# m3db的配置
|
||
#- name: m3db01
|
||
# url: http://localhost:7201/api/v1/prom/remote/write
|
||
# remoteTimeoutSecond: 5
|
||
|
||
# prometheus的配置
|
||
- name: prome01
|
||
url: http://localhost:9090/api/v1/write
|
||
remoteTimeoutSecond: 5
|
||
remoteRead:
|
||
- name: prome01
|
||
url: http://localhost:9090/api/v1/read
|
||
remoteTimeoutSecond: 5
|
||
|
||
|
||
contactKeys:
|
||
- label: "Wecom Robot Token"
|
||
key: wecom_robot_token
|
||
- label: "Dingtalk Robot Token"
|
||
key: dingtalk_robot_token
|
||
|
||
notifyChannels:
|
||
- email
|
||
- sms
|
||
- voice
|
||
- dingtalk
|
||
- wecom
|