提交 fb43b03b 编写于 作者: 7 710leo

refactor: change collect config path

上级 19c9e4eb
sshd
\ No newline at end of file
n9e-transfer
\ No newline at end of file
n9e-judge
\ No newline at end of file
...@@ -62,16 +62,16 @@ func Parse(conf string) error { ...@@ -62,16 +62,16 @@ func Parse(conf string) error {
"enable": true, "enable": true,
"timeout": 1000, "timeout": 1000,
"interval": 10, //采集策略更新时间 "interval": 10, //采集策略更新时间
"portPath": "/home/n9e/etc/port", "portPath": "./etc/port",
"procPath": "/home/n9e/etc/proc", "procPath": "./etc/proc",
"logPath": "/home/n9e/etc/log", "logPath": "./etc/log",
"api": "/api/portal/collects/", "api": "/api/portal/collects/",
}) })
viper.SetDefault("sys", map[string]interface{}{ viper.SetDefault("sys", map[string]interface{}{
"timeout": 1000, //请求超时时间 "timeout": 1000, //请求超时时间
"interval": 10, //基础指标上报周期 "interval": 10, //基础指标上报周期
"plugin": "/home/n9e/plugin", "plugin": "./plugin",
}) })
err = viper.Unmarshal(&Config) err = viper.Unmarshal(&Config)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册