operator

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultAgentVersion   = "v0.37.2"
	DefaultAgentBaseImage = "grafana/agent"
	DefaultAgentImage     = DefaultAgentBaseImage + ":" + DefaultAgentVersion
)

Supported versions of the Grafana Agent.

View Source
var (
	DefaultConfigReloaderVersion   = "v0.67.1"
	DefaultConfigReloaderBaseImage = "quay.io/prometheus-operator/prometheus-config-reloader"
	DefaultConfigReloaderImage     = DefaultConfigReloaderBaseImage + ":" + DefaultConfigReloaderVersion
)

Defaults for Prometheus Config Reloader.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel            dskit.Level
	LogFormat           string
	Labels              promop.Labels
	Controller          controller.Options
	AgentSelector       string
	KubelsetServiceName string

	// RestConfig used to connect to cluster. One will be generated based on the
	// environment if not set.
	RestConfig *rest.Config
	// contains filtered or unexported fields
}

Config controls the configuration of the Operator.

func NewConfig

func NewConfig(f *flag.FlagSet) (*Config, error)

NewConfig creates a new Config and initializes default values. Flags will be registered against f if it is non-nil.

type Operator added in v0.22.9

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

Operator is the Grafana Agent Operator.

func New

func New(l log.Logger, c *Config) (*Operator, error)

New creates a new Operator.

func (*Operator) Start added in v0.22.9

func (o *Operator) Start(ctx context.Context) error

Start starts the operator. It will run until ctx is canceled.

Directories

Path Synopsis
apis
Package assets contains helper types used for loading in static assets when configuring the Grafana Agent.
Package assets contains helper types used for loading in static assets when configuring the Grafana Agent.
Package config generates Grafana Agent configuration based on Kubernetes resources.
Package config generates Grafana Agent configuration based on Kubernetes resources.
Package hierarchy provides tools to discover a resource hierarchy.
Package hierarchy provides tools to discover a resource hierarchy.
Package logutil implements an adaptor for the go-kit logger, which is used in the Grafana Agent project, and go-logr, which is used in controller-runtime.
Package logutil implements an adaptor for the go-kit logger, which is used in the Grafana Agent project, and go-logr, which is used in controller-runtime.

Jump to

Keyboard shortcuts

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