collector

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package collector for agent interface Created by chenguolin 2019-07-12

Package collector entry Created by chenguolin 2019-07-08

Package collector fluentd agent Created by chenguolin 2019-07-08

v1.0 https://docs.fluentd.org/

Index

Constants

View Source
const (
	// FluentdBin fluentd bin
	FluentdBin = "/usr/bin/fluentd"
	// FluentConf fluent conf
	FluentConf = "/etc/fluent/fluent.conf"
	// FluentPlugins fluent plugins
	FluentPlugins = "/etc/fluent/plugins"
	// FluentBuffer fluent buffer
	FluentBuffer = "/var/log/log-collector-fluent/buffer/"
	// FluentConfD fluent conf.d
	FluentConfD = "/etc/fluent/conf.d/"
	// FluentKafkaTopic kafka topic
	FluentKafkaTopic = "fluent.kafka.topic"
)
View Source
const (
	// FluentAgent fluent agent
	FluentAgent = "fluent"
)
View Source
const (
	// LogCollector log-collector
	LogCollector = "log-collector"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector for log collect

func NewCollector

func NewCollector(name string) (*Collector, error)

NewCollector new collector by name

func (*Collector) Run

func (c *Collector) Run() error

Run collector

func (*Collector) Stop

func (c *Collector) Stop() error

Stop collector agent

type Fluent

type Fluent struct {
	// contains filtered or unexported fields
}

Fluent agent

func (*Fluent) DestroyContainer

func (f *Fluent) DestroyContainer(containerID string) error

DestroyContainer container

func (*Fluent) NewContainer

func (f *Fluent) NewContainer(containerID string) error

NewContainer new container generate config

func (*Fluent) Reload

func (f *Fluent) Reload() error

Reload fluentd process

func (*Fluent) Start

func (f *Fluent) Start() error

Start fluentd process

func (*Fluent) Stop

func (f *Fluent) Stop() error

Stop fluentd agent

Jump to

Keyboard shortcuts

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