monitor

package
v6.4.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2017 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionMergeTags

func OptionMergeTags(tags []string) func(*Config)

OptionMergeTags provides a way to add merge tags to be used with New().

func OptionMonitorCNI

func OptionMonitorCNI(
	opts ...func(*cnimonitor.Config),
) func(*Config)

OptionMonitorCNI provides a way to add a cni monitor and related configuration to be used with New().

func OptionMonitorDocker

func OptionMonitorDocker(opts ...func(*dockermonitor.Config)) func(*Config)

OptionMonitorDocker provides a way to add a docker monitor and related configuration to be used with New().

func OptionMonitorLinuxHost

func OptionMonitorLinuxHost(
	opts ...func(*linuxmonitor.Config),
) func(*Config)

OptionMonitorLinuxHost provides a way to add a linux host monitor and related configuration to be used with New().

func OptionMonitorLinuxProcess

func OptionMonitorLinuxProcess(
	opts ...func(*linuxmonitor.Config),
) func(*Config)

OptionMonitorLinuxProcess provides a way to add a linux process monitor and related configuration to be used with New().

func OptionMonitorUID

func OptionMonitorUID(
	opts ...func(*uidmonitor.Config),
) func(*Config)

OptionMonitorUID provides a way to add a UID monitor and related configuration to be used with New().

func OptionSynchronizationHandler

func OptionSynchronizationHandler(
	s processor.SynchronizationHandler,
) func(*Config)

OptionSynchronizationHandler provides options related to processor configuration to be used with New().

func SubOptionMonitorCNIExtractor

func SubOptionMonitorCNIExtractor(extractor events.EventMetadataExtractor) func(*cnimonitor.Config)

SubOptionMonitorCNIExtractor provides a way to specify metadata extractor for CNI monitors.

func SubOptionMonitorDockerExtractor

func SubOptionMonitorDockerExtractor(extractor dockermonitor.MetadataExtractor) func(*dockermonitor.Config)

SubOptionMonitorDockerExtractor provides a way to specify metadata extractor for docker.

func SubOptionMonitorDockerFlags

func SubOptionMonitorDockerFlags(syncAtStart, killContainerOnPolicyError bool) func(*dockermonitor.Config)

SubOptionMonitorDockerFlags provides a way to specify configuration flags info for docker.

func SubOptionMonitorDockerSocket

func SubOptionMonitorDockerSocket(socketType, socketAddress string) func(*dockermonitor.Config)

SubOptionMonitorDockerSocket provides a way to specify socket info for docker.

func SubOptionMonitorLinuxExtractor

func SubOptionMonitorLinuxExtractor(extractor events.EventMetadataExtractor) func(*linuxmonitor.Config)

SubOptionMonitorLinuxExtractor provides a way to specify metadata extractor for linux monitors.

func SubOptionMonitorUIDExtractor

func SubOptionMonitorUIDExtractor(extractor events.EventMetadataExtractor) func(*uidmonitor.Config)

SubOptionMonitorUIDExtractor provides a way to specify metadata extractor for UID monitors.

Types

type Config

type Config struct {
	MergeTags []string
	// contains filtered or unexported fields
}

Config specifies the configs for monitors.

func New

func New(opts ...Option) *Config

New provides a configuration for monitors.

func (*Config) String

func (c *Config) String() string

type Monitor

type Monitor interface {

	// Start starts the monitor.
	Start() error

	// Stop Stops the monitor.
	Stop() error
}

A Monitor is an interface implmented to start/stop monitors.

func NewMonitors

func NewMonitors(collector collector.EventCollector, puhandler processor.ProcessingUnitsHandler, c *Config) (Monitor, error)

NewMonitors instantiates all/any combination of monitors supported.

type Option

type Option func(*Config)

Option is provided using functional arguments.

type Type

type Type int

Type specifies the type of monitors supported.

const (
	CNI Type = iota + 1
	Docker
	LinuxProcess
	LinuxHost
	UID
)

Types supported.

Directories

Path Synopsis
cni
mock
Package mockinstance is a generated GoMock package.
Package mockinstance is a generated GoMock package.
uid
Package mockmonitor is a generated GoMock package.
Package mockmonitor is a generated GoMock package.
rpc
processor/mock
Package mockprocessor is a generated GoMock package.
Package mockprocessor is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL