使用示例

    detector服务器信息:

    1. listen_host = 0.0.0.0
    2. listen_port = 8080

    部署的启动流程如下:

    1. [database]
    2. storage_duration = 12H # 数据存储时间长度,默认12小时
    3. database_dir = ./data # 数据存储目录
    4. [security]
    5. tls = False
    6. ca = ./certificate/ca/ca.crt
    7. server_key = ./certificate/server/server.key
    8. agent_key = ./certificate/agent/agent.key
    9. [server]
    10. host = 10.90.110.131
    11. listen_host = 0.0.0.0
    12. listen_port = 8080
    13. white_host = 10.90.110.130
    14. white_port = 8000
    15. [agent]
    16. source_timer_interval = 10S
    17. db_host = 10.90.110.130
    18. db_port = 8080
    19. db_type = single
    20. [forecast]
    21. forecast_alg = auto_arima
    22. [log]
    23. log_dir = ./log

    服务启动与停止

    启动本地agent服务:

    停止本地agent服务:

    1. python main.py stop --role agent
    1. python main.py start --role collector

    停止本地collector服务:

    启动本地monitor服务:

      1. python main.py stop --role monitor