Documentation
¶
Index ¶
Constants ¶
View Source
const ( DISTRIBUTOR = "distributor" FRONTEND = "frontend" ALERTMANAGER = "alertmanager" RULER = "ruler" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func NewAuthentication ¶
func NewAuthentication(config *Config) *Authentication
type Config ¶
type Config struct { Server ServerConfig `yaml:"server"` Admin ServerConfig `yaml:"admin"` Tenants []Tenant `yaml:"tenants"` Distributor Upstream `yaml:"distributor"` QueryFrontend Upstream `yaml:"frontend"` Alertmanager Upstream `yaml:"alertmanager"` Ruler Upstream `yaml:"ruler"` }
type CustomTransport ¶
CustomTransport wraps http.Transport and embeds the round-robin load balancer.
type DefaultDNSResolver ¶
type DefaultDNSResolver struct{}
type ServerConfig ¶
type Upstream ¶
type Upstream struct { URL string `yaml:"url"` Paths []string `yaml:"paths"` DNSRefreshInterval time.Duration `yaml:"dns_refresh_interval"` HTTPClientTimeout time.Duration `yaml:"http_client_timeout"` HTTPClientDialerTimeout time.Duration `yaml:"http_client_dialer_timeout"` HTTPClientTLSHandshakeTimeout time.Duration `yaml:"http_client_tls_handshake_timeout"` HTTPClientResponseHeaderTimeout time.Duration `yaml:"http_client_response_header_timeout"` }
Click to show internal directories.
Click to hide internal directories.