prometheus

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOptions

func ListOptions(name string) metav1.ListOptions

func NewPrometheusCollector added in v0.10.0

func NewPrometheusCollector(s cache.Store) *prometheusCollector

func PrometheusStatus

func PrometheusStatus(kclient kubernetes.Interface, p *v1alpha1.Prometheus) (*v1alpha1.PrometheusStatus, []v1.Pod, error)

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

Types

type BasicAuthCredentials added in v0.9.0

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

type Config

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

Config defines configuration parameters for the Operator.

type ConfigMapReference added in v0.7.0

type ConfigMapReference struct {
	Key      string `json:"key"`
	Checksum string `json:"checksum"`
}

type ConfigMapReferenceList added in v0.7.0

type ConfigMapReferenceList struct {
	Items []*ConfigMapReference `json:"items"`
}

func (*ConfigMapReferenceList) Len added in v0.9.1

func (l *ConfigMapReferenceList) Len() int

func (*ConfigMapReferenceList) Less added in v0.9.1

func (l *ConfigMapReferenceList) Less(i, j int) bool

func (*ConfigMapReferenceList) Swap added in v0.9.1

func (l *ConfigMapReferenceList) Swap(i, j int)

type Operator

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

Operator manages lify cycle of Prometheus deployments and monitoring configurations.

func New

func New(conf Config, logger log.Logger) (*Operator, error)

New creates a new controller.

func (*Operator) RegisterMetrics added in v0.10.0

func (c *Operator) RegisterMetrics(r prometheus.Registerer)

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