prometheus

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPrometheusVersion = "v2.3.1"
	DefaultThanosVersion     = "v0.1.0-rc.2"
)

Variables

View Source
var (
	CompatibilityMatrix = []string{
		"v1.4.0",
		"v1.4.1",
		"v1.5.0",
		"v1.5.1",
		"v1.5.2",
		"v1.5.3",
		"v1.6.0",
		"v1.6.1",
		"v1.6.2",
		"v1.6.3",
		"v1.7.0",
		"v1.7.1",
		"v1.7.2",
		"v1.8.0",
		"v2.0.0",
		"v2.2.1",
	}
)

Functions

func CMToRule added in v0.20.0

func CMToRule(cm *v1.ConfigMap) ([]monitoringv1.PrometheusRule, error)

CMToRule takes a rule config map and transforms it to possibly multiple rule file crds. It is used in `cmd/po-rule-cm-to-rule-file-crds`. Thereby it needs to be public.

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
}

type Config

type Config struct {
	Host                         string
	KubeletObject                string
	TLSInsecure                  bool
	TLSConfig                    rest.TLSClientConfig
	ConfigReloaderImage          string
	PrometheusConfigReloader     string
	AlertmanagerDefaultBaseImage string
	PrometheusDefaultBaseImage   string
	ThanosDefaultBaseImage       string
	Namespace                    string
	Labels                       Labels
	CrdGroup                     string
	CrdKinds                     monitoringv1.CrdKinds
	EnableValidation             bool
	DisableAutoUserGroup         bool
	LogLevel                     string
	ManageCRDs                   bool
}

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 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

Implement the flag.Set interface

func (*Labels) String added in v0.14.0

func (labels *Labels) String() string

Implement the flag.Value interface

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