Documentation
¶
Index ¶
- func ReadTailScanner(scanner *bufio.Scanner, out chan string, t *tomb.Tomb) error
- type ContainerConfig
- type DockerConfiguration
- type DockerSource
- func (d *DockerSource) CanRun() error
- func (d *DockerSource) Configure(yamlConfig []byte, logger *log.Entry, ...) error
- func (d *DockerSource) ConfigureByDSN(dsn string, labels map[string]string, logger *log.Entry, uuid string) error
- func (d *DockerSource) ContainerManager(ctx context.Context, in chan *ContainerConfig, ...) error
- func (d *DockerSource) Dump() any
- func (d *DockerSource) EvalContainer(ctx context.Context, container dockerTypes.Container) *ContainerConfig
- func (d *DockerSource) EvalService(ctx context.Context, service dockerTypesSwarm.Service) *ContainerConfig
- func (d *DockerSource) GetAggregMetrics() []prometheus.Collector
- func (d *DockerSource) GetMetrics() []prometheus.Collector
- func (d *DockerSource) GetMode() string
- func (d *DockerSource) GetName() string
- func (d *DockerSource) GetUuid() string
- func (d *DockerSource) OneShotAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error
- func (d *DockerSource) ServiceManager(ctx context.Context, in chan *ContainerConfig, ...) error
- func (d *DockerSource) StreamingAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error
- func (d *DockerSource) SupportedModes() []string
- func (d *DockerSource) TailContainer(ctx context.Context, container *ContainerConfig, outChan chan types.Event, ...) error
- func (d *DockerSource) TailService(ctx context.Context, service *ContainerConfig, outChan chan types.Event, ...) error
- func (d *DockerSource) UnmarshalConfig(yamlConfig []byte) error
- func (d *DockerSource) Watch(ctx context.Context, containerChan chan *ContainerConfig, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerConfig ¶
type DockerConfiguration ¶
type DockerConfiguration struct { configuration.DataSourceCommonCfg `yaml:",inline"` CheckInterval string `yaml:"check_interval"` FollowStdout bool `yaml:"follow_stdout"` FollowStdErr bool `yaml:"follow_stderr"` Until string `yaml:"until"` Since string `yaml:"since"` DockerHost string `yaml:"docker_host"` ContainerName []string `yaml:"container_name"` ContainerID []string `yaml:"container_id"` ContainerNameRegexp []string `yaml:"container_name_regexp"` ContainerIDRegexp []string `yaml:"container_id_regexp"` ServiceName []string `yaml:"service_name"` ServiceID []string `yaml:"service_id"` ServiceNameRegexp []string `yaml:"service_name_regexp"` ServiceIDRegexp []string `yaml:"service_id_regexp"` UseServiceLabels bool `yaml:"use_service_labels"` UseContainerLabels bool `yaml:"use_container_labels"` }
type DockerSource ¶
type DockerSource struct { Config DockerConfiguration Client client.CommonAPIClient // contains filtered or unexported fields }
func (*DockerSource) CanRun ¶
func (d *DockerSource) CanRun() error
func (*DockerSource) Configure ¶
func (d *DockerSource) Configure(yamlConfig []byte, logger *log.Entry, metricsLevel metrics.AcquisitionMetricsLevel) error
func (*DockerSource) ConfigureByDSN ¶
func (*DockerSource) ContainerManager ¶ added in v1.7.0
func (d *DockerSource) ContainerManager(ctx context.Context, in chan *ContainerConfig, deleteChan chan *ContainerConfig, outChan chan types.Event) error
func (*DockerSource) Dump ¶
func (d *DockerSource) Dump() any
func (*DockerSource) EvalContainer ¶
func (d *DockerSource) EvalContainer(ctx context.Context, container dockerTypes.Container) *ContainerConfig
func (*DockerSource) EvalService ¶ added in v1.7.0
func (d *DockerSource) EvalService(ctx context.Context, service dockerTypesSwarm.Service) *ContainerConfig
func (*DockerSource) GetAggregMetrics ¶
func (d *DockerSource) GetAggregMetrics() []prometheus.Collector
func (*DockerSource) GetMetrics ¶
func (d *DockerSource) GetMetrics() []prometheus.Collector
func (*DockerSource) GetMode ¶
func (d *DockerSource) GetMode() string
func (*DockerSource) GetName ¶
func (d *DockerSource) GetName() string
func (*DockerSource) GetUuid ¶ added in v1.5.0
func (d *DockerSource) GetUuid() string
func (*DockerSource) OneShotAcquisition ¶
func (d *DockerSource) OneShotAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error
OneShotAcquisition reads a set of file and returns when done
func (*DockerSource) ServiceManager ¶ added in v1.7.0
func (d *DockerSource) ServiceManager(ctx context.Context, in chan *ContainerConfig, deleteChan chan *ContainerConfig, outChan chan types.Event) error
func (*DockerSource) StreamingAcquisition ¶
func (*DockerSource) SupportedModes ¶
func (d *DockerSource) SupportedModes() []string
SupportedModes returns the supported modes by the acquisition module
func (*DockerSource) TailContainer ¶ added in v1.7.0
func (d *DockerSource) TailContainer(ctx context.Context, container *ContainerConfig, outChan chan types.Event, deleteChan chan *ContainerConfig) error
func (*DockerSource) TailService ¶ added in v1.7.0
func (d *DockerSource) TailService(ctx context.Context, service *ContainerConfig, outChan chan types.Event, deleteChan chan *ContainerConfig) error
func (*DockerSource) UnmarshalConfig ¶ added in v1.5.0
func (d *DockerSource) UnmarshalConfig(yamlConfig []byte) error
func (*DockerSource) Watch ¶ added in v1.7.0
func (d *DockerSource) Watch(ctx context.Context, containerChan chan *ContainerConfig, containerDeleteChan chan *ContainerConfig, serviceChan chan *ContainerConfig, serviceDeleteChan chan *ContainerConfig) error
Click to show internal directories.
Click to hide internal directories.