@@ -11,7 +11,7 @@ import (
1111type Config struct {
1212 // TargetHost is the host name or IP of the target Flow collector
1313 TargetHost string `env:"FLOWS_TARGET_HOST,notEmpty"`
14- // TargetHost is the port the target Flow collector
14+ // TargetPort is the port the target Flow collector
1515 TargetPort int `env:"FLOWS_TARGET_PORT,notEmpty"`
1616 // Interfaces contains the interface names from where flows will be collected. If empty, the agent
1717 // will fetch all the interfaces in the system, excepting the ones listed in ExcludeInterfaces.
@@ -27,15 +27,15 @@ type Config struct {
2727 // stages
2828 BuffersLength int `env:"BUFFERS_LENGTH" envDefault:"50"`
2929 // CacheMaxFlows specifies how many flows can be accumulated in the accounting cache before
30- // being flushing the cache for its later export
30+ // being flushed for its later export
3131 CacheMaxFlows int `env:"CACHE_MAX_FLOWS" envDefault:"1000"`
32- // CacheActiveTimeout specifies the maximum duration in which a flow is kept in the accounting
32+ // CacheActiveTimeout specifies the maximum duration that flows are kept in the accounting
3333 // cache before being flushed for its later export
3434 CacheActiveTimeout time.Duration `env:"CACHE_ACTIVE_TIMEOUT" envDefault:"5s"`
3535 // Logger level. From more to less verbose: trace, debug, info, warn, error, fatal, panic.
3636 LogLevel string `env:"LOG_LEVEL" envDefault:"info"`
3737 // Sampling holds the rate at which packets should be sampled and sent to the target collector.
38- // E.g. if set to 100, one out of 100 packets, on average, will be sent to each target collector.
38+ // E.g. if set to 100, one out of 100 packets, on average, will be sent to the target collector.
3939 Sampling uint32 `env:"SAMPLING" envDefault:"0"`
4040}
4141
0 commit comments