Documentation
¶
Overview ¶
Package docker is a Metricbeat module that contains MetricSets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HostParser = parse.URLHostParserBuilder{DefaultScheme: "tcp"}.Build()
Functions ¶
func DeDotLabels ¶
func DeDotLabels(labels map[string]string) common.MapStr
DeDotLabels returns a new common.MapStr containing a copy of the labels where the dots in each label name have been changed to an underscore.
func ExtractContainerName ¶
func ExtractContainerName(names []string) string
func NewDockerClient ¶
func NewDockerClient(endpoint string, config Config) (*docker.Client, error)
Types ¶
type Container ¶
type Container struct {
ID string
Name string
Labels common.MapStr
}
func NewContainer ¶
func NewContainer(container *docker.APIContainers) *Container
type Stat ¶
type Stat struct {
Container docker.APIContainers
Stats docker.Stats
}
func FetchStats ¶
func FetchStats(client *docker.Client, timeout time.Duration) ([]Stat, error)
FetchStats returns a list of running containers with all related stats inside
Click to show internal directories.
Click to hide internal directories.