e2ethanos

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanScenario added in v0.14.0

func CleanScenario(t *testing.T, s *e2e.Scenario) func()

func DefaultAlertmanagerImage

func DefaultAlertmanagerImage() string

func DefaultImage

func DefaultImage() string

DefaultImage returns the local docker image to use to run Thanos.

func DefaultPrometheusImage

func DefaultPrometheusImage() string

TODO(bwplotka): Run against multiple?

func NewAlertmanager

func NewAlertmanager(sharedDir string, name string) (*e2e.HTTPService, error)

func NewCompactor

func NewCompactor(sharedDir string, name string, bucketConfig client.BucketConfig, relabelConfig []relabel.Config, extArgs ...string) (*e2e.HTTPService, error)

func NewMemcached added in v0.16.0

func NewMemcached(name string) *e2e.ConcreteService

func NewPrometheus

func NewPrometheus(sharedDir string, name string, config, promImage string) (*e2e.HTTPService, string, error)

func NewQueryFrontend added in v0.15.0

func NewQueryFrontend(name string, downstreamURL string, cacheConfig queryfrontend.CacheProviderConfig) (*e2e.HTTPService, error)

func NewSingleHostReverseProxy added in v0.15.0

func NewSingleHostReverseProxy(target *url.URL, externalPrefix string) *httputil.ReverseProxy

NewSingleHostReverseProxy is almost same as httputil.NewSingleHostReverseProxy but it performs a url path rewrite.

func RemoteWriteEndpoint

func RemoteWriteEndpoint(addr string) string

Types

type Service

type Service struct {
	*e2e.HTTPService
	// contains filtered or unexported fields
}

func NewPrometheusWithSidecar

func NewPrometheusWithSidecar(sharedDir string, netName string, name string, config, promImage string) (*e2e.HTTPService, *Service, error)

func NewQuerier

func NewQuerier(sharedDir, name string, storeAddresses, fileSDStoreAddresses, ruleAddresses []string, routePrefix, externalPrefix string) (*Service, error)

func NewReceiver

func NewReceiver(sharedDir string, networkName string, name string, replicationFactor int, hashring ...receive.HashringConfig) (*Service, error)

func NewRuler

func NewRuler(sharedDir string, name string, ruleSubDir string, amCfg []alert.AlertmanagerConfig, queryCfg []query.Config) (*Service, error)

func NewService

func NewService(
	name string,
	image string,
	command *e2e.Command,
	readiness *e2e.HTTPReadinessProbe,
	http, grpc int,
	otherPorts ...int,
) *Service

func NewStoreGW

func NewStoreGW(sharedDir string, name string, bucketConfig client.BucketConfig, relabelConfig ...relabel.Config) (*Service, error)

func (*Service) GRPCEndpoint

func (s *Service) GRPCEndpoint() string

func (*Service) GRPCNetworkEndpoint

func (s *Service) GRPCNetworkEndpoint() string

func (*Service) GRPCNetworkEndpointFor

func (s *Service) GRPCNetworkEndpointFor(networkName string) string

Jump to

Keyboard shortcuts

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