Documentation ¶
Overview ¶
Package docker implements the discovery.docker component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ Port: 80, HostNetworkingHost: "localhost", RefreshInterval: time.Minute, HTTPClientConfig: config.DefaultHTTPClientConfig, }
DefaultArguments holds default values for Arguments.
Functions ¶
Types ¶
type Arguments ¶
type Arguments struct { Host string `river:"host,attr"` Port int `river:"port,attr,optional"` HostNetworkingHost string `river:"host_networking_host,attr,optional"` RefreshInterval time.Duration `river:"refresh_interval,attr,optional"` Filters []Filter `river:"filter,block,optional"` HTTPClientConfig config.HTTPClientConfig `river:"http_client_config,block,optional"` }
Arguments configures the discovery.docker component.
func (Arguments) Convert ¶
func (args Arguments) Convert() moby.DockerSDConfig
Convert converts Arguments to the upstream Prometheus SD type.
func (*Arguments) UnmarshalRiver ¶
UnmarshalRiver implements river.Unmarshaler, applying defaults and validating the provided config.
Click to show internal directories.
Click to hide internal directories.