prometheus

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name represents Prometheus Operator component name as it should be referenced in function calls
	// and in configuration.
	Name = "prometheus-operator"
)

Variables

This section is empty.

Functions

func NewConfig added in v0.6.0

func NewConfig() *component

NewConfig returns new Prometheus Operator component configuration with default values set.

Types

type CoreDNS

type CoreDNS struct {
	Selector map[string]string `hcl:"selector,optional"`
}

CoreDNS holds information about how CoreDNS should be scraped.

type Grafana

type Grafana struct {
	AdminPassword string            `hcl:"admin_password,optional"`
	SecretEnv     map[string]string `hcl:"secret_env,optional"`
	Ingress       *types.Ingress    `hcl:"ingress,block"`
}

Grafana object collects sub component grafana related information.

type Monitor

type Monitor struct {
	Etcd                  bool `hcl:"etcd,optional"`
	KubeControllerManager bool `hcl:"kube_controller_manager,optional"`
	KubeScheduler         bool `hcl:"kube_scheduler,optional"`
	KubeProxy             bool `hcl:"kube_proxy,optional"`
	Kubelet               bool `hcl:"kubelet,optional"`
}

Monitor holds information about which Kubernetes components should be monitored with the default Prometheus instance.

type Prometheus added in v0.3.0

type Prometheus struct {
	MetricsRetention            string            `hcl:"metrics_retention,optional"`
	NodeSelector                map[string]string `hcl:"node_selector,optional"`
	StorageSize                 string            `hcl:"storage_size,optional"`
	WatchLabeledServiceMonitors bool              `hcl:"watch_labeled_service_monitors,optional"`
	WatchLabeledPrometheusRules bool              `hcl:"watch_labeled_prometheus_rules,optional"`
	Ingress                     *types.Ingress    `hcl:"ingress,block"`
	ExternalLabels              map[string]string `hcl:"external_labels,optional"`
	ExternalURL                 string            `hcl:"external_url,optional"`
}

Prometheus object collects sub component Prometheus related information.

Jump to

Keyboard shortcuts

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