本文整理汇总了Golang中github.com/intelsdi-x/snap/control/plugin.Start函数的典型用法代码示例。如果您正苦于以下问题:Golang Start函数的具体用法?Golang Start怎么用?Golang Start使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Start函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: main
// plugin bootstrap
func main() {
plugin.Start(
elasticsearch.Meta(),
elasticsearch.NewElasticsearchCollector(),
os.Args[1],
)
}
示例2: main
// plugin bootstrap
func main() {
plugin.Start(
psutil.Meta(),
psutil.NewPsutilCollector(), // CollectorPlugin interface
os.Args[1],
)
}
示例3: main
// plugin bootstrap
func main() {
plugin.Start(
plugin.NewPluginMeta(name, version, pluginType, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)),
ceph.New(),
os.Args[1],
)
}
示例4: main
// plugin bootstrap
func main() {
plugin.Start(
plugin.NewPluginMeta(osv.Name, osv.Version, osv.Type, []string{}, []string{plugin.SnapGOBContentType}),
&osv.Osv{}, // CollectorPlugin interface
os.Args[1],
)
}
示例5: main
func main() {
// Define metadata about Plugin
meta := hostedtsdb.Meta()
// Start a collector
plugin.Start(meta, new(hostedtsdb.HostedtsdbPublisher), os.Args[1])
}
示例6: main
func main() {
plugin.Start(
plugin.NewPluginMeta(dbi.Name, dbi.Version, dbi.Type, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)),
dbi.New(),
os.Args[1],
)
}
示例7: main
// plugin bootstrap
func main() {
plugin.Start(
mesos.Meta(),
mesos.NewMesosCollector(),
os.Args[1],
)
}
示例8: main
// plugin bootstrap
func main() {
plugin.Start(
facter.Meta(),
facter.NewFacterCollector(),
os.Args[1],
)
}
示例9: main
// plugin bootstrap
func main() {
plugin.Start(
plugin.NewPluginMeta(libvirt.Name, libvirt.Version, libvirt.Type, []string{}, []string{plugin.SnapGOBContentType}),
&libvirt.Libvirt{}, // CollectorPlugin interface
os.Args[1],
)
}
示例10: main
// plugin bootstrap
func main() {
plugin.Start(
perfevents.Meta(),
perfevents.NewPerfeventsCollector(),
os.Args[1],
)
}
示例11: main
func main() {
plugin.Start(
smart.Meta(),
smart.NewSmartCollector(),
os.Args[1],
)
}
示例12: main
func main() {
plugin.Start(
etplugin.Meta(),
etplugin.NewNetCollector(),
os.Args[1],
)
}
示例13: main
func main() {
plg := collector.New()
plugin.Start(
collector.Meta(),
plg,
os.Args[1],
)
}
示例14: main
func main() {
plugin.Start(
// TODO - CHANGE TO YOUR PACKAGE NAME
pkgname.Meta(),
pkgname.NewCollector(),
os.Args[1],
)
}
示例15: main
// plugin bootstrap
func main() {
p, err := iostat.New()
if err != nil {
panic(err)
}
plugin.Start(
plugin.NewPluginMeta(iostat.Name, iostat.Version, iostat.Type, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)),
p,
os.Args[1],
)
}