Documentation ¶
Index ¶
- func NewRemoteWriteServer(handler *http.HandlerFunc) *httptest.Server
- func SchemaWithBoltDBAndBoltDB(c *Cluster)
- func SchemaWithBoltDBAndTSDB(c *Cluster)
- func SchemaWithTSDB(c *Cluster)
- func SchemaWithTSDBAndTSDB(c *Cluster)
- type Cluster
- type Component
- func (c *Component) AddFlags(flags ...string)
- func (c *Component) ClusterSharedPath() string
- func (c *Component) GRPCURL() string
- func (c *Component) GetTenantLimits(tenant string) validation.Limits
- func (c *Component) HTTPURL() string
- func (c *Component) MergedConfig() ([]byte, error)
- func (c *Component) Restart() error
- func (c *Component) SetTenantLimits(tenant string, limits validation.Limits) error
- func (c *Component) WithExtraConfig(cfg string)
- func (c *Component) WithRulerRemoteWrite(name, url string)
- func (c *Component) WithTenantRules(tenantFilesMap map[string]map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRemoteWriteServer ¶
func NewRemoteWriteServer(handler *http.HandlerFunc) *httptest.Server
func SchemaWithBoltDBAndBoltDB ¶
func SchemaWithBoltDBAndBoltDB(c *Cluster)
func SchemaWithBoltDBAndTSDB ¶
func SchemaWithBoltDBAndTSDB(c *Cluster)
func SchemaWithTSDB ¶
func SchemaWithTSDB(c *Cluster)
func SchemaWithTSDBAndTSDB ¶
func SchemaWithTSDBAndTSDB(c *Cluster)
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func (*Cluster) AddComponent ¶
func (*Cluster) ResetSchemaConfig ¶
func (c *Cluster) ResetSchemaConfig()
func (*Cluster) SetSchemaVer ¶
SetSchemaVer sets a schema version for all the schemas
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) AddFlags ¶
component should be restarted if it's already running for the new flags to take effect
func (*Component) ClusterSharedPath ¶
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) GetTenantLimits ¶
func (c *Component) GetTenantLimits(tenant string) validation.Limits
func (*Component) MergedConfig ¶
MergedConfig merges the base config template with any additional config that has been provided
func (*Component) SetTenantLimits ¶
func (c *Component) SetTenantLimits(tenant string, limits validation.Limits) error
func (*Component) WithExtraConfig ¶
func (*Component) WithRulerRemoteWrite ¶
Click to show internal directories.
Click to hide internal directories.