// plugin bootstrap
func main() {
	plugin.Start(
		elasticsearch.Meta(),
		elasticsearch.NewElasticsearchCollector(),
		os.Args[1],
	)
}
// plugin bootstrap
func main() {
	plugin.Start(
		psutil.Meta(),
		psutil.NewPsutilCollector(), // 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],
	)
}
// 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],
	)
}
Example #5
0
func main() {
	// Define metadata about Plugin
	meta := hostedtsdb.Meta()

	// Start a collector
	plugin.Start(meta, new(hostedtsdb.HostedtsdbPublisher), os.Args[1])
}
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(
		mesos.Meta(),
		mesos.NewMesosCollector(),
		os.Args[1],
	)
}
// plugin bootstrap
func main() {
	plugin.Start(
		facter.Meta(),
		facter.NewFacterCollector(),
		os.Args[1],
	)
}
Example #9
0
func main() {
	// Define metadata about Plugin
	meta := gitstats.Meta()

	// Start a collector
	plugin.Start(meta, new(gitstats.Gitstats), 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(
		perfevents.Meta(),
		perfevents.NewPerfeventsCollector(),
		os.Args[1],
	)
}
func main() {

	plugin.Start(
		smart.Meta(),
		smart.NewSmartCollector(),
		os.Args[1],
	)
}
func main() {

	plugin.Start(
		etplugin.Meta(),
		etplugin.NewNetCollector(),
		os.Args[1],
	)
}
func main() {
	plg := collector.New()

	plugin.Start(
		collector.Meta(),
		plg,
		os.Args[1],
	)
}
func main() {

	plugin.Start(
		// TODO - CHANGE TO YOUR PACKAGE NAME
		pkgname.Meta(),
		pkgname.NewCollector(),
		os.Args[1],
	)
}
// 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],
	)
}
// plugin bootstrap
func main() {
	p, err := pcm.NewPCMCollector()
	if err != nil {
		panic(err)
	}
	plugin.Start(
		pcm.Meta(),
		p,
		os.Args[1],
	)
}
Example #18
0
func main() {
	// Provided:
	//   the definition of the plugin metadata
	//   the implementation satisfying plugin.CollectorPlugin

	// Define metadata about Plugin
	meta := mock.Meta()
	meta.RPCType = plugin.NativeRPC
	// Start a collector
	plugin.Start(meta, new(mock.Mock), os.Args[1])
}
Example #19
0
func main() {
	// Provided:
	//   the definition of the plugin metadata
	//   the implementation satisfying plugin.CollectorPlugin

	// Define metadata about Plugin
	meta := anothermock.Meta()

	// Start a collector
	plugin.Start(meta, new(anothermock.AnotherMock), os.Args[1])
}
func main() {
	// Provided:
	//   the definition of the plugin metadata
	//   the implementation satfiying plugin.CollectorPlugin

	// Define metadata about Plugin
	meta := nfsclient.Meta()
	// meta.RPCType = plugin.JSONRPC

	// Start a collector
	plugin.Start(meta, nfsclient.NewNFSCollector(nfsclient.New()), os.Args[1])
}
func main() {
	// Three things are provided:
	// - The definition of the plugin metadata
	// - The implementation satisfying plugin.PublisherPlugin
	// - The publisher config policy satisfying plugin.ConfigRules

	// Define metadata about the plugin
	meta := riemann.Meta()

	// Start a publisher
	plugin.Start(meta, riemann.NewRiemannPublisher(), os.Args[1])
}
func main() {
	// Three things provided:
	//   the definition of the plugin metadata
	//   the implementation satfiying plugin.CollectorPlugin
	//   the collector configuration policy satifying plugin.ConfigRules

	// Define metadata about Plugin
	meta := kafka.Meta()

	// Start a collector
	plugin.Start(meta, kafka.NewKafkaPublisher(), os.Args[1])
}
Example #23
0
func main() {
	// Provided:
	//   the definition of the plugin metadata
	//   the implementation satfiying plugin.CollectorPlugin

	// Define metadata about Plugin
	meta := mock.Meta()
	meta.RPCType = plugin.JSONRPC
	meta.CacheTTL = time.Duration(time.Millisecond * 100)

	// Start a collector
	plugin.Start(meta, new(mock.Mock), os.Args[1])
}
// 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],
	)

}
func main() {
	meta := influxdb.Meta()
	plugin.Start(meta, influxdb.NewInfluxPublisher(), os.Args[1])
}
func main() {
	meta := novaplugin.Meta()
	plugin.Start(meta, novaplugin.New(), os.Args[1])
}
Example #28
0
func main() {
	meta := file.Meta()
	plugin.Start(meta, file.NewFilePublisher(), os.Args[1])
}
func main() {
	meta := mysql.Meta()
	plugin.Start(meta, mysql.NewMySQLPublisher(), os.Args[1])
}
func main() {
	meta := apache.Meta()
	plugin.Start(meta, &apache.Apache{}, os.Args[1])
}