docker

package
v1.5.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

This section is empty.

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() discovery.DiscovererConfig

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements syntax.Validator.

type Filter

type Filter struct {
	Name   string   `alloy:"name,attr"`
	Values []string `alloy:"values,attr"`
}

Filter is used to limit the discovery process to a subset of available resources.

func (Filter) Convert

func (f Filter) Convert() moby.Filter

Convert converts a Filter to the upstream Prometheus SD type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL