func main() {
	plugin.Start(
		plugin.NewPluginMeta(dbi.Name, dbi.Version, dbi.Type, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)),
		dbi.New(),
		os.Args[1],
	)
}
// 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],
	)
}
// 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],
	)
}
// plugin bootstrap
func main() {
	plugin.Start(
		plugin.NewPluginMeta(name, version, pluginType, []string{}, []string{plugin.SnapGOBContentType}, plugin.ConcurrencyCount(1)),
		ceph.New(),
		os.Args[1],
	)
}
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		pluginName,
		pluginVersion,
		pluginType,
		[]string{plugin.SnapGOBContentType},
		[]string{plugin.SnapGOBContentType})
}
//Meta returns meta data for plugin
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		pluginName,
		version,
		pluginType,
		[]string{},
		[]string{plugin.SnapGOBContentType},
		plugin.ConcurrencyCount(1))
}
//TODO - USE Meta FUNCTION TO RETURN COLLECTOR METADATA INSTEAD OF EXPORTING VARIABLES TO MAIN PACKAGE
// Commenting exported items is very important
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		name,
		version,
		plgtype,
		[]string{plugin.SnapGOBContentType},
		[]string{plugin.SnapGOBContentType},
	)
}
Example #8
0
//Meta returns meta data for testing
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		Name,
		Version,
		Type,
		[]string{plugin.SnapGOBContentType},
		[]string{plugin.SnapGOBContentType},
		plugin.CacheTTL(100*time.Millisecond),
	)
}
// Commenting exported items is very important
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		name,
		version,
		plgtype,
		[]string{plugin.SnapGOBContentType},
		[]string{plugin.SnapGOBContentType},
		plugin.RoutingStrategy(plugin.StickyRouting),
	)
}
// 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],
	)
}
Example #11
0
//Meta returns meta data for testing
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		Name,
		Version,
		Type,
		[]string{plugin.SnapGOBContentType},
		[]string{plugin.SnapGOBContentType},
		plugin.Unsecure(true),
		plugin.ConcurrencyCount(1000),
	)
}
// Meta returns a plugin meta data
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		pluginName,
		version,
		pluginType,
		[]string{plugin.SnapGOBContentType},
		[]string{plugin.SnapGOBContentType},
		plugin.RoutingStrategy(plugin.StickyRouting),
		plugin.ConcurrencyCount(1),
	)
}
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(
		Name,
		Version,
		Type,
		[]string{plugin.SnapGOBContentType},
		[]string{plugin.SnapGOBContentType},
		plugin.Unsecure(true),
		plugin.RoutingStrategy(plugin.DefaultRouting),
	)
}
// 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.Exclusive(true),
			plugin.CacheTTL(1*time.Second),
		),
		p,
		os.Args[1],
	)
}
func main() {

	dockerPlg, err := docker.New()
	if err != nil {
		panic(err)
	}

	plugin.Start(
		plugin.NewPluginMeta(
			docker.NS_PLUGIN,
			docker.VERSION,
			plugin.CollectorPluginType,
			[]string{},
			[]string{plugin.SnapGOBContentType},
			plugin.ConcurrencyCount(1)),
		dockerPlg,
		os.Args[1],
	)

}
Example #16
0
func main() {
	plugin.Start(plugin.NewPluginMeta(nodeManagerPlugin.Name, nodeManagerPlugin.Version,
		nodeManagerPlugin.Type, []string{}, []string{plugin.SnapGOBContentType},
		plugin.ConcurrencyCount(1)), nodeManagerPlugin.New(), os.Args[1])
}
Example #17
0
//Meta returns meta data for testing
func Meta() *plugin.PluginMeta {
	return plugin.NewPluginMeta(Name, Version, Type, []string{plugin.SnapGOBContentType}, []string{plugin.SnapGOBContentType}, plugin.Unsecure(true))
}