Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "dockerstats"
ModuleName is the name used in config file
Variables ¶
View Source
var ( ErrorPingFailed = errutil.NewFactory("ping docker server failed") ErrorListContainerFailed = errutil.NewFactory("list docker container failed") ErrorListenDockerEventFailed = errutil.NewFactory("listen docker event failed") ErrorContainerLoopRunning1 = errutil.NewFactory("container log loop running: %s") ErrorGetContainerInfoFailed = errutil.NewFactory("get container info failed") )
errors
Functions ¶
func InitHandler ¶
InitHandler initialize the input plugin
Types ¶
type InputConfig ¶
type InputConfig struct { config.InputConfig DockerURL string `json:"dockerurl"` IncludePatterns []string `json:"include_patterns"` ExcludePatterns []string `json:"exclude_patterns"` StatInterval int `json:"stat_interval"` ConnectionRetryInterval int `json:"connection_retry_interval,omitempty"` LogMode Mode `json:"log_mode,omitempty"` // contains filtered or unexported fields }
InputConfig holds the configuration json fields and internal objects
func DefaultInputConfig ¶
func DefaultInputConfig() InputConfig
DefaultInputConfig returns an InputConfig struct with default values
type Mode ¶
type Mode int8
Mode enum for docker stats log mode
func (Mode) MarshalJSON ¶
MarshalJSON return jsonfy []byte of enum
func (*Mode) UnmarshalJSON ¶
UnmarshalJSON decode json data to enum
Click to show internal directories.
Click to hide internal directories.