servicemonitor

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name                  string
	Endpoints             []*ConfigEndpoint
	NamespaceSelector     []string
	MonitorMatchingLabels map[string]string
	ServiceMatchingLabels map[string]string
	JobName               string
}

type ConfigEndpoint

type ConfigEndpoint struct {
	Port               string
	TargetPort         string
	Interval           string
	Scheme             string
	Path               string
	BearerTokenFile    string
	MetricsRelabelings []*ConfigMetricRelabeling
	Relabelings        []*ConfigRelabeling
	TLSConfig          *ConfigTLSConfig
	HonorLabels        bool
}

type ConfigMetricRelabeling

type ConfigMetricRelabeling struct {
	Action       string
	Regex        string
	SourceLabels []string
	TargetLabel  string
	Replacement  string
}

type ConfigRelabeling

type ConfigRelabeling struct {
	Action       string
	Regex        string
	SourceLabels []string
	TargetLabel  string
	Replacement  string
}

type ConfigTLSConfig

type ConfigTLSConfig struct {
	CaFile     string
	ServerName string
}

type Endpoint

type Endpoint struct {
	Port               string              `yaml:"port,omitempty"`
	TargetPort         string              `yaml:"targetPort,omitempty"`
	BearerTokenFile    string              `yaml:"bearerTokenFile,omitempty"`
	Interval           string              `yaml:"interval,omitempty"`
	Path               string              `yaml:"path,omitempty"`
	Scheme             string              `yaml:"scheme,omitempty"`
	TLSConfig          *TLSConfig          `yaml:"tlsConfig,omitempty"`
	MetricsRelabelings []*MetricRelabeling `yaml:"metricsRelabelings,omitempty"`
	Relabelings        []*Relabeling       `yaml:"relabelings,omitempty"`
	HonorLabels        bool                `yaml:"honorLabels,omitempty"`
}

type MetricRelabeling

type MetricRelabeling struct {
	Action       string   `yaml:"action,omitempty"`
	Regex        string   `yaml:"regex,omitempty"`
	SourceLabels []string `yaml:"sourceLabels,omitempty"`
	TargetLabel  string   `yaml:"targetLabel,omitempty"`
	Replacement  string   `yaml:"replacement,omitempty"`
}

type NamespaceSelector

type NamespaceSelector struct {
	Any        bool     `yaml:"any"`
	MatchNames []string `yaml:"matchNames"`
}

type Relabeling

type Relabeling struct {
	Action       string   `yaml:"action,omitempty"`
	Regex        string   `yaml:"regex,omitempty"`
	SourceLabels []string `yaml:"sourceLabels,omitempty"`
	TargetLabel  string   `yaml:"targetLabel,omitempty"`
	Replacement  string   `yaml:"replacement,omitempty"`
}

type Selector

type Selector struct {
	MatchLabels map[string]string `yaml:"matchLabels"`
}

type TLSConfig

type TLSConfig struct {
	CaFile             string `yaml:"caFile"`
	CertFile           string `yaml:"certFile"`
	InsecureSkipVerify bool   `yaml:"insecureSkipVerify"`
	KeyFile            string `yaml:"keyFile"`
	ServerName         string `yaml:"serverName"`
}

type Values

type Values struct {
	Name              string             `yaml:"name"`
	AdditionalLabels  map[string]string  `yaml:"additionalLabels"`
	JobLabel          string             `yaml:"jobLabel"`
	TargetLabels      string             `yaml:"targetLabels"`
	Selector          *Selector          `yaml:"selector"`
	NamespaceSelector *NamespaceSelector `yaml:"namespaceSelector"`
	Endpoints         []*Endpoint        `yaml:"endpoints"`
}

func SpecToValues

func SpecToValues(config *Config) *Values

Jump to

Keyboard shortcuts

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