cluster

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteWriteServer

func NewRemoteWriteServer(handler *http.HandlerFunc) *httptest.Server

func WithAdditionalBoltDBPeriod

func WithAdditionalBoltDBPeriod(c *Cluster)

func WithAdditionalTSDBPeriod

func WithAdditionalTSDBPeriod(c *Cluster)

func WithBoltDBAndTSDBPeriods

func WithBoltDBAndTSDBPeriods(c *Cluster)

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

func New

func New(logLevel level.Value, opts ...func(*Cluster)) *Cluster

func (*Cluster) AddComponent

func (c *Cluster) AddComponent(name string, flags ...string) *Component

func (*Cluster) Cleanup

func (c *Cluster) Cleanup() error

func (*Cluster) Restart

func (c *Cluster) Restart() error

func (*Cluster) Run

func (c *Cluster) Run() error

type Component

type Component struct {
	// contains filtered or unexported fields
}

func (*Component) AddFlags

func (c *Component) AddFlags(flags ...string)

component should be restarted if it's already running for the new flags to take effect

func (*Component) ClusterSharedPath

func (c *Component) ClusterSharedPath() string

ClusterSharedPath returns the path to the shared directory between all components in the cluster. This path will be removed once the cluster is stopped.

func (*Component) GRPCURL

func (c *Component) GRPCURL() string

func (*Component) GetTenantLimits

func (c *Component) GetTenantLimits(tenant string) validation.Limits

func (*Component) HTTPURL

func (c *Component) HTTPURL() string

func (*Component) MergedConfig

func (c *Component) MergedConfig() ([]byte, error)

MergedConfig merges the base config template with any additional config that has been provided

func (*Component) Restart

func (c *Component) Restart() error

func (*Component) SetTenantLimits

func (c *Component) SetTenantLimits(tenant string, limits validation.Limits) error

func (*Component) WithExtraConfig

func (c *Component) WithExtraConfig(cfg string)

func (*Component) WithRulerRemoteWrite

func (c *Component) WithRulerRemoteWrite(name, url string)

func (*Component) WithTenantRules

func (c *Component) WithTenantRules(tenantFilesMap map[string]map[string]string) error

Jump to

Keyboard shortcuts

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