observatorium

package
v0.0.0-...-dc13b92 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStdTemplateYAML

func NewStdTemplateYAML(resourceName, templateVarPrefix string) *templateYAML

Types

type Observatorium

type Observatorium struct {
	Cluster  string
	Instance string // Instance is the name of the observatorium instance
	// MetricsInstances is the list of metrics instances in the observatorium instance
	// These are the different deployment units to which our tenants are mapped (e.g. default, rhel, telemeter)
	MetricsInstances ObservatoriumMetrics
	API              ObservatoriumAPI
}

func (*Observatorium) Manifests

func (o *Observatorium) Manifests(generator *mimic.Generator)

Manifests generates the manifests for the instance of observatorium.

type ObservatoriumAPI

type ObservatoriumAPI struct {
	Namespace                    string
	Tenants                      []observatoriumapi.Tenant
	ThanosImageTag               string
	APIPremanifestsHook          func(*observatoriumapi.ObservatoriumAPIDeployment)
	CachePremanifestsHook        func(*memcached.MemcachedDeployment)
	GubernatorPremanifestsHook   func(*observatoriumapi.GubernatorDeployment)
	RBAC                         string
	AmsUrl                       string
	UpQueryFrontendOpts          func(*observatoriumup.UpOptions)
	UpQueryFrontendDeploy        func(*observatoriumup.UpDeployment)
	UpQueriesTenant              string
	AvalancheOpts                func(*avalanche.AvalancheOptions)
	AvalancheDeploy              func(*avalanche.AvalancheDeployment)
	ObsCtlReloaderManagedTenants []string
	RuleObjStoreSecret           string
	TemplateParams               []templatev1.Parameter
}

func (*ObservatoriumAPI) Manifests

func (o *ObservatoriumAPI) Manifests(generator *mimic.Generator)

type ObservatoriumMetrics

type ObservatoriumMetrics struct {
	Namespace                          string
	ThanosImageTag                     string
	Instances                          []*ObservatoriumMetricsInstance
	ReceiveLimitsGlobal                receive.GlobalLimitsConfig
	ReceiveLimitsDefault               receive.DefaultLimitsConfig
	ReceiveControllerImageTag          string
	ReceiveRouterPreManifestsHook      func(*receive.Router)
	QueryRulePreManifestsHook          func(*query.QueryDeployment)
	QueryAdhocPreManifestsHook         func(*query.QueryDeployment)
	QueryFrontendPreManifestsHook      func(*queryfrontend.QueryFrontendDeployment)
	QueryFrontendCachePreManifestsHook func(*memcached.MemcachedDeployment)
	AlertManagerOpts                   func(*alertmanager.AlertManagerOptions)
	AlertManagerDeploy                 func(*alertmanager.AlertManagerStatefulSet)
	// contains filtered or unexported fields
}

ObservatoriumMetrics contains the configuration common to all metrics instances in an observatorium instance and a list of ObservatoriumMetricsInstance configuring the individual metrics instances.

func (*ObservatoriumMetrics) Manifests

func (o *ObservatoriumMetrics) Manifests(generator *mimic.Generator)

Manifests generates the manifests for the metrics instance of observatorium.

type ObservatoriumMetricsInstance

type ObservatoriumMetricsInstance struct {
	InstanceName                    string
	ObjStoreSecret                  string
	Tenants                         []Tenants
	StorePreManifestsHook           func(*store.StoreStatefulSet)
	IndexCachePreManifestsHook      func(*memcached.MemcachedDeployment)
	BucketCachePreManifestsHook     func(*memcached.MemcachedDeployment)
	CompactorPreManifestsHook       func(*compactor.CompactorStatefulSet)
	ReceiveIngestorPreManifestsHook func(*receive.Ingestor)
	RulerPreManifestsHook           func(*ruler.RulerStatefulSet)
	RulerOpts                       func(opts *ruler.RulerOptions)
}

ObservatoriumMetricsInstance contains the configuration for a metrics instance in an observatorium instance. It includes all thanos components that are needed for a metrics instance, excluding commons components such as the receive router.

type Tenants

type Tenants struct {
	Name          string
	ID            string
	ReceiveLimits *receive.WriteLimitConfig
}

Tenants contains the configuration for a tenant in a metrics instance.

Jump to

Keyboard shortcuts

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