operator

package
v0.0.0-...-5af6bcd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateStorage string = "template-storage"
	CtrlManager     string = "ctrl-manager"
	InfoProviders   string = "info-providers"
	Apps            string = "apps"
	Agents          string = "agents"
	Exporters       string = "exporters"
	Capsules        string = "capsules"
	All             string = "all"
)

The various modules that make up Mimir.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Target                 flagext.StringSliceCSV `yaml:"target"`
	EnableGoRuntimeMetrics bool                   `yaml:"enable_go_runtime_metrics" category:"advanced"`
	ShutdownDelay          time.Duration          `yaml:"shutdown_delay" category:"experimental"`
	PrintConfig            bool                   `yaml:"-"`
	ApplicationName        string                 `yaml:"-"`

	Logging logging.Config `yaml:"logging"`
	Manager manager.Config `yaml:"manager"`

	Apps          apps.Config      `yaml:"apps"`
	Exporters     exporters.Config `yaml:"exporters"`
	TemplateStore category.Config  `yaml:"template_store"`
}

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(f *flag.FlagSet)

type Operator

type Operator struct {
	Cfg        Config
	Registerer prometheus.Registerer

	// set during initialization
	ServiceMap    map[string]services.Service
	ModuleManager *modules.Manager

	TemplateStore     provider.CategryTemplateProvider
	ControllerManager manager.CtrlManagerWraper
	InfoProviders     info.Providers

	AppsController      *apps.AppsReconciler
	AgentsController    *agents.AgentsReconciler
	ExportersController *exporters.ExportersReconciler
}

func New

func New(cfg Config, reg prometheus.Registerer) (*Operator, error)

New makes a new Mimir.

func (*Operator) Run

func (op *Operator) Run() error

func (*Operator) SetupModuleManager

func (op *Operator) SetupModuleManager() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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