Documentation
¶
Index ¶
- Constants
- func Log() *logrus.Logger
- func LogWithEvent(e processors.IPacket) *logrus.Entry
- func NewAgent(conf config.Agent) (*agent, error)
- func NewMemory(location string) *memory
- func NewPacket(message string, fields map[string]interface{}) processors.IPacket
- func Pipelines() map[int]*Pipeline
- func RegisterProcessor(name string, procFact ProcessorFactory)
- func SetDataLocation(location string)
- func SetLogDebugMode(components []string)
- func SetLogOutputFile(fileLocation string)
- func SetLogVerboseMode(components []string)
- func SetMetrics(s Metrics)
- func SetProcessorLogOutputFile(fileLocation string)
- func Start(addr string)
- func StartPipeline(configPipeline *config.Pipeline, configAgents []config.Agent) (int, error)
- func Stop() error
- func StopPipeline(ID int) error
- type Metrics
- type MetricsVoid
- type Pipeline
- type ProcessorFactory
- type ProcessorFormatter
Constants ¶
View Source
const ( METRIC_PROC_IN = iota + 1 METRIC_PROC_OUT METRIC_PACKET_DROP METRIC_CONNECTION_TRANSIT )
Variables ¶
This section is empty.
Functions ¶
func LogWithEvent ¶
func LogWithEvent(e processors.IPacket) *logrus.Entry
func RegisterProcessor ¶
func RegisterProcessor(name string, procFact ProcessorFactory)
RegisterProcessor is called by the processor loader when the program starts each processor give its name and factory func()
func SetDataLocation ¶
func SetDataLocation(location string)
func SetLogDebugMode ¶
func SetLogDebugMode(components []string)
func SetLogOutputFile ¶
func SetLogOutputFile(fileLocation string)
func SetLogVerboseMode ¶
func SetLogVerboseMode(components []string)
func SetMetrics ¶
func SetMetrics(s Metrics)
func SetProcessorLogOutputFile ¶
func SetProcessorLogOutputFile(fileLocation string)
func StartPipeline ¶
StartPipeline load all agents form a configPipeline and returns pipeline's ID
func StopPipeline ¶
Types ¶
type Metrics ¶
type Metrics interface {
// contains filtered or unexported methods
}
IStats interface to any metric collector
func NewPrometheus ¶
type MetricsVoid ¶
type MetricsVoid struct{}
type ProcessorFactory ¶
type ProcessorFactory func() processors.Processor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.