56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
|
# 可复用变量 dsn
|
|||
|
var:
|
|||
|
db:
|
|||
|
mysql: &mysql yazx:yazx.com@tcp(mysql:3306)/yazx_bizsec?parseTime=true
|
|||
|
ch: &ch tcp://clickhouse:9000?database=yazx_bizsec&username=&password=&compress=1&timezone=Asia/Shanghai
|
|||
|
redis: &redis redis://redis:6379/14
|
|||
|
|
|||
|
|
|||
|
log:
|
|||
|
path: ./logs/
|
|||
|
level: debug
|
|||
|
max_age: 5 # 保留旧文件天数
|
|||
|
max_size: 500 # mb
|
|||
|
max_backups: 3 # 保留每天旧文件个数
|
|||
|
compress: true # 是否归档旧文件
|
|||
|
local_time: true # 是否使用本地时间
|
|||
|
log_in_console: true # 是否打印控制台日志
|
|||
|
|
|||
|
# 文件配置
|
|||
|
file_system:
|
|||
|
root: ./app_data # 数据:file / report 根目录 由 gc 线程维护文件可用性
|
|||
|
|
|||
|
db:
|
|||
|
type: sqlite
|
|||
|
dsn: ./app_data/db.sqlite
|
|||
|
|
|||
|
server:
|
|||
|
address: ":20028"
|
|||
|
pprof: f
|
|||
|
|
|||
|
caller:
|
|||
|
feeder: ./packet-feeder.out
|
|||
|
# feeder 配置
|
|||
|
run:
|
|||
|
log:
|
|||
|
path: ./logs/
|
|||
|
level: info
|
|||
|
max_age: 5 # 保留旧文件天数
|
|||
|
max_size: 500 # mb
|
|||
|
max_backups: 3 # 保留每天旧文件个数
|
|||
|
compress: true # 是否归档旧文件
|
|||
|
local_time: true # 是否使用本地时间
|
|||
|
log_in_console: true # 是否打印控制台日志
|
|||
|
|
|||
|
app:
|
|||
|
metrics_addr: "127.0.0.1:20060"
|
|||
|
pprof: false
|
|||
|
vxlan_svr: "127.0.0.1:4789"
|
|||
|
loop: 100000000
|
|||
|
interval: 0
|
|||
|
flow_data_path:
|
|||
|
normal: "./conf/normal_data.txt"
|
|||
|
defect: "./conf/defect_data.txt"
|
|||
|
sens: "./conf/sens_data.txt"
|
|||
|
|
|||
|
feeder:
|