dns

package
v1.35.5-cluster Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabels

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

GetLabels returns DNS labels according to sdc.

Types

type SDConfig

type SDConfig struct {
	Names []string `yaml:"names"`
	Type  string   `yaml:"type"`
	Port  *int     `yaml:"port"`
}

SDConfig represents service discovery config for DNS.

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

Jump to

Keyboard shortcuts

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