thanos

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultThanosVersion = "v0.10.1"
)

Variables

This section is empty.

Functions

func ListOptions

func ListOptions(name string) metav1.ListOptions

func NewThanosRulerCollector

func NewThanosRulerCollector(s cache.Store) *thanosRulerCollector

NewThanosRulerCollector creates a thanosRulerCollector initialized with the given cache store

func ThanosRulerStatus

func ThanosRulerStatus(kclient kubernetes.Interface, tr *monitoringv1.ThanosRuler) (*monitoringv1.ThanosRulerStatus, []v1.Pod, error)

ThanosRulerStatus evaluates the current status of a ThanosRuler deployment with respect to its specified resource object. It return the status and a list of pods that are not updated.

Types

type Config

type Config struct {
	Host                   string
	TLSInsecure            bool
	TLSConfig              rest.TLSClientConfig
	ConfigReloaderImage    string
	ConfigReloaderCPU      string
	ConfigReloaderMemory   string
	ThanosDefaultBaseImage string
	Namespaces             prometheusoperator.Namespaces
	Labels                 prometheusoperator.Labels
	CrdKinds               monitoringv1.CrdKinds
	EnableValidation       bool
	LocalHost              string
	LogLevel               string
	LogFormat              string
	ManageCRDs             bool
	ThanosRulerSelector    string
}

Config defines configuration parameters for the Operator.

type Operator

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

Operator manages life cycle of Thanos deployments and monitoring configurations.

func New

New creates a new controller.

func (*Operator) Run

func (o *Operator) Run(stopc <-chan struct{}) error

Run the controller.

Jump to

Keyboard shortcuts

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