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:",squash"` }
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) SetToDefault ¶ added in v0.35.0
func (args *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
Click to show internal directories.
Click to hide internal directories.