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 `alloy:"host,attr"` Port int `alloy:"port,attr,optional"` HostNetworkingHost string `alloy:"host_networking_host,attr,optional"` RefreshInterval time.Duration `alloy:"refresh_interval,attr,optional"` Filters []Filter `alloy:"filter,block,optional"` HTTPClientConfig config.HTTPClientConfig `alloy:",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 ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
Click to show internal directories.
Click to hide internal directories.