dockerswarm

package
v1.46.0-cluster Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabels

func GetLabels(sdc *SDConfig, baseDir string) ([]map[string]string, error)

GetLabels returns dockerswarm labels according to sdc.

Types

type SDConfig

type SDConfig struct {
	Host string `yaml:"host"`
	// TODO: add support for proxy_url
	TLSConfig *promauth.TLSConfig `yaml:"tls_config"`
	Role      string              `yaml:"role"`
	Port      int                 `yaml:"port"`
	// refresh_interval is obtained from `-promscrape.dockerswarmSDCheckInterval` command-line option
	BasicAuth       *promauth.BasicAuthConfig `yaml:"basic_auth"`
	BearerToken     string                    `yaml:"bearer_token"`
	BearerTokenFile string                    `yaml:"bearer_token_file"`
}

SDConfig represents docker swarm service discovery configuration

See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dockerswarm_sd_config

Jump to

Keyboard shortcuts

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