Documentation ¶
Overview ¶
Package docker is a Metricbeat module that contains MetricSets.
Index ¶
- Variables
- func AssetDocker() string
- func DeDotLabels(labels map[string]string, dedot bool) common.MapStr
- func ExtractContainerName(names []string) string
- func NewDockerClient(endpoint string, config Config) (*client.Client, error)
- func NewModule(base mb.BaseModule) (mb.Module, error)
- type Config
- type Container
- type Stat
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var HostParser = parse.URLHostParserBuilder{DefaultScheme: "tcp"}.Build()
Functions ¶
func AssetDocker ¶
func AssetDocker() string
AssetDocker returns asset data. This is the base64 encoded gzipped contents of ../metricbeat/module/docker.
func DeDotLabels ¶
DeDotLabels returns a new common.MapStr containing a copy of the labels where the dots have been converted into nested structure, avoiding possible mapping errors
func ExtractContainerName ¶
func NewDockerClient ¶
NewDockerClient initializes and returns a new Docker client
Types ¶
type Container ¶
func NewContainer ¶
NewContainer converts Docker API container to an internal structure, it applies dedot to container labels if dedot is true, or stores them in a nested way if it's false
Click to show internal directories.
Click to hide internal directories.