refactor: change default interval of reporter

This commit is contained in:
moonrailgun 2023-11-21 23:01:25 +08:00
parent 82ec40db1e
commit 8c83908f98

View File

@ -26,7 +26,7 @@ var (
Url = flag.String("url", "", "The http url of tianji, for example: https://tianji.msgbyte.com") Url = flag.String("url", "", "The http url of tianji, for example: https://tianji.msgbyte.com")
WorkspaceId = flag.String("workspace", "", "The workspace id for tianji, this should be a uuid") WorkspaceId = flag.String("workspace", "", "The workspace id for tianji, this should be a uuid")
Name = flag.String("name", "", "The identification name for this machine") Name = flag.String("name", "", "The identification name for this machine")
Interval = flag.Int("interval", 10.0, "Input the INTERVAL, seconed") Interval = flag.Int("interval", 5.0, "Input the INTERVAL, seconed")
IsVnstat = flag.Bool("vnstat", false, "Use vnstat for traffic statistics, linux only") IsVnstat = flag.Bool("vnstat", false, "Use vnstat for traffic statistics, linux only")
) )