Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory should be called to create a factory with default values.
Types ¶
type Config ¶
type Config struct { // The URL of the docker server. Default is "unix:///var/run/docker.sock" Endpoint string `mapstructure:"endpoint"` // The maximum amount of time to wait for docker API responses. Default is 5s Timeout time.Duration `mapstructure:"timeout"` // A list of filters whose matching images are to be excluded. Supports literals, globs, and regex. ExcludedImages []string `mapstructure:"excluded_images"` // If true, the "Config.Hostname" field (if present) of the docker // container will be used as the discovered host that is used to configure // receivers. If false or if no hostname is configured, the field // `NetworkSettings.IPAddress` is used instead. UseHostnameIfPresent bool `mapstructure:"use_hostname_if_present"` // If true, the observer will configure receivers for matching container endpoints // using the host bound ip and port. This is useful if containers exist that are not // accessible to an instance of the agent running outside of the docker network stack. // If UseHostnameIfPresent and this config are both enabled, this setting will take precedence. UseHostBindings bool `mapstructure:"use_host_bindings"` // If true, the observer will ignore discovered container endpoints that are not bound // to host ports. This is useful if containers exist that are not accessible // to an instance of the agent running outside of the docker network stack. IgnoreNonHostBindings bool `mapstructure:"ignore_non_host_bindings"` // The time to wait before resyncing the list of containers the observer maintains // through the docker event listener example: cache_sync_interval: "20m" // Default: "60m" CacheSyncInterval time.Duration `mapstructure:"cache_sync_interval"` // Docker client API version. Default is 1.22 DockerAPIVersion string `mapstructure:"api_version"` }
Config defines configuration for docker observer
Click to show internal directories.
Click to hide internal directories.