使用示例
detector服务器信息:
listen_host = 0.0.0.0
listen_port = 8080
部署的启动流程如下:
[database]
storage_duration = 12H # 数据存储时间长度,默认12小时
database_dir = ./data # 数据存储目录
[security]
tls = False
ca = ./certificate/ca/ca.crt
server_key = ./certificate/server/server.key
agent_key = ./certificate/agent/agent.key
[server]
host = 10.90.110.131
listen_host = 0.0.0.0
listen_port = 8080
white_host = 10.90.110.130
white_port = 8000
[agent]
source_timer_interval = 10S
db_host = 10.90.110.130
db_port = 8080
db_type = single
[forecast]
forecast_alg = auto_arima
[log]
log_dir = ./log
服务启动与停止
启动本地agent服务:
停止本地agent服务:
python main.py stop --role agent
python main.py start --role collector
停止本地collector服务:
启动本地monitor服务:
python main.py stop --role monitor