-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--source=和--sink=后面怎么一次性加多个源? #247
Comments
i also want‘t to know |
sink应该是数组,亲测多个sink好使 |
可以看下初始化这一段代码: kube-eventer/eventer.go var (
argFrequency = flag.Duration("frequency", 30*time.Second, "The resolution at which Eventer pushes events to sinks")
argMaxProcs = flag.Int("max_procs", 0, "max number of CPUs that can be used simultaneously. Less than 1 for default (number of cores)")
argSources flags.Uris
argSinks flags.Uris
argVersion bool
argEventMetrics bool
argHealthzIP = flag.String("healthz-ip", "0.0.0.0", "ip eventer health check service uses")
argHealthzPort = flag.Uint("healthz-port", 8084, "port eventer health check listens on")
)
flag.Var(&argSources, "source", "source(s) to read events from")
flag.Var(&argSinks, "sink", "external sink(s) that receive events")
flag.BoolVar(&argVersion, "version", false, "print version info and exit")
flag.BoolVar(&argEventMetrics, "event-metrics", true, "whether to collect and export event metrics")
flag.Parse() uri都是slice,所以是可以添加多个source和sinks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.e.g,dingtalk sink demo
--source=和--sink=后面怎么一次性加多个源?
The text was updated successfully, but these errors were encountered: