prometheus

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 43 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

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
}

BasicAuthCredentials represents a username password pair to be used with basic http authentication, see https://tools.ietf.org/html/rfc7617.

type BearerToken added in v0.34.0

type BearerToken string

BearerToken represents a bearer token, see https://tools.ietf.org/html/rfc6750.

type Config

type Config struct {
	Host                          string
	ClusterDomain                 string
	KubeletObject                 string
	ListenAddress                 string
	TLSInsecure                   bool
	TLSConfig                     rest.TLSClientConfig
	ServerTLSConfig               operator.TLSServerConfig
	ConfigReloaderImage           string
	ConfigReloaderCPU             string
	ConfigReloaderMemory          string
	PrometheusConfigReloaderImage string
	AlertmanagerDefaultBaseImage  string
	PrometheusDefaultBaseImage    string
	ThanosDefaultBaseImage        string
	Namespaces                    Namespaces
	Labels                        Labels
	LocalHost                     string
	LogLevel                      string
	LogFormat                     string
	PromSelector                  string
	AlertManagerSelector          string
	ThanosRulerSelector           string
	SecretListWatchSelector       string
}

Config defines configuration parameters for the Operator.

type Labels added in v0.14.0

type Labels struct {
	LabelsString string
	LabelsMap    map[string]string
}

func (*Labels) Merge added in v0.14.0

func (labels *Labels) Merge(otherLabels map[string]string) map[string]string

Merge labels create a new map with labels merged.

func (*Labels) Set added in v0.14.0

func (labels *Labels) Set(value string) error

Set implements the flag.Set interface.

func (*Labels) String added in v0.14.0

func (labels *Labels) String() string

Implement the flag.Value interface

type Namespaces added in v0.34.0

type Namespaces struct {
	// allow list/deny list for common custom resources
	AllowList, DenyList map[string]struct{}
	// allow list for prometheus/alertmanager custom resources
	PrometheusAllowList, AlertmanagerAllowList, ThanosRulerAllowList map[string]struct{}
}

type Operator

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

Operator manages life cycle of Prometheus deployments and monitoring configurations.

func New

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

New creates a new controller.

func (*Operator) Run

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

Run the controller.

type TLSAsset added in v0.34.0

type TLSAsset string

TLSAsset represents any TLS related opaque string, e.g. CA files, client certificates.

Jump to

Keyboard shortcuts

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