operator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrometheusListWatch

func NewPrometheusListWatch(client *rest.RESTClient) *cache.ListWatch

NewPrometheusListWatch returns a new ListWatch on the Prometheus resource.

func NewServiceMonitorListWatch

func NewServiceMonitorListWatch(client *rest.RESTClient) *cache.ListWatch

NewServiceMonitorListWatch returns a new ListWatch on the ServiceMonitor resource.

Types

type Config

type Config struct {
	Host        string
	TLSInsecure bool
	TLSConfig   rest.TLSClientConfig
}

Config defines configuration parameters for the Operator.

type Operator

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

Operator manages lify cycle of Prometheus deployments and monitoring configurations.

func New

func New(c Config) (*Operator, error)

New creates a new controller.

func (*Operator) Run

func (c *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