nightingale1/etc/server.yml

122 lines
2.5 KiB
YAML
Raw Normal View History

2021-04-13 11:38:40 +08:00
logger:
dir: logs
level: DEBUG
# # rotate by time
# keepHours: 4
# rotate by size
rotatenum: 3
rotatesize: 256 # unit: MB
2021-04-13 11:38:40 +08:00
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
2021-04-13 11:38:40 +08:00
rpc:
listen: 0.0.0.0:9000
2021-04-13 11:38:40 +08:00
mysql:
addr: "root:1234@tcp(127.0.0.1:3306)/n9e?charset=utf8&parseTime=True&loc=Asia%2FShanghai"
max: 128
idle: 16
debug: false
2021-04-13 11:38:40 +08:00
# i18n:
# # zh | en
# lang: zh
# dictPath: etc/i18n.json
2021-04-13 11:38:40 +08:00
# heartbeat:
# # auto detect if blank
# ip: ""
# # unit: ms
# interval: 1000
2021-04-13 11:38:40 +08:00
# 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
2021-04-13 11:38:40 +08:00
# judge:
# readBatch: 2000
# connTimeout: 2000
# callTimeout: 5000
# writerNum: 256
# connMax: 2560
# connIdle: 256
2021-04-13 11:38:40 +08:00
# alert:
# notifyScriptPath: ./etc/script/notify.py
# notifyConcurrency: 200
# mutedAlertPersist: true
2021-04-13 11:38:40 +08:00
trans:
2021-04-13 11:38:40 +08:00
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
remoteWrite:
# m3db的配置
#- name: m3db01
# url: http://localhost:7201/api/v1/prom/remote/write
# remoteTimeoutSecond: 5
2021-04-20 19:10:25 +08:00
# prometheus的配置
- name: prome01
url: http://localhost:9090/api/v1/write
remoteTimeoutSecond: 5
remoteRead:
- name: prome01
url: http://localhost:9090/api/v1/read
remoteTimeoutSecond: 5
2021-04-13 11:38:40 +08:00
contactKeys:
- label: "Wecom Robot Token"
key: wecom_robot_token
- label: "Dingtalk Robot Token"
key: dingtalk_robot_token
2021-04-19 16:44:07 +08:00
notifyChannels:
- email
- sms
- voice
- dingtalk
- wecom