prometheus

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrometheusService is the service name for prometheus app
	PrometheusOperatorService     = "prometheus-operator"
	PrometheusOperatorServicePort = "http"

	PrometheusBeatService     = "prometheus-beat"
	PrometheusBeatServicePort = "http"
	PrometheusBeatConfigmap   = "prometheus-beat-config"
	PrometheusBeatConfigFile  = "prometheusbeat.yml"

	// PrometheusService is the service name for prometheus app
	PrometheusService = "prometheus"
	// PrometheusServicePort is the port name for prometheus service
	PrometheusServicePort = "http"
	PrometheusCRDName     = "k8s"

	PrometheusRuleAlert = "prometheus-alerts"

	// AlertManagerService defines the service for alert manager app
	AlertManagerService = "alertmanager"
	// AlertManagerWorkLoad defines the app name for alert manager
	AlertManagerWorkLoad = "alertmanager"
	// AlertManagerConfigMap defines the configmap name which stores the alertmanager config rules
	AlertManagerConfigMap = "alertmanager-config"
	// AlertManagerConfigName defines the entry name of the configmap which saves the alertmanager rules
	AlertManagerConfigName = "alertmanager.yml"
)

Variables

This section is empty.

Functions

func DeleteMetricPrometheusStatusFail

func DeleteMetricPrometheusStatusFail(tenantID string, clusterName string, prometheusName string)

func UpdateMetricPrometheusStatusFail

func UpdateMetricPrometheusStatusFail(tenantID string, clusterName string, prometheusName string, failed bool)

Types

type Controller

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

Controller is responsible for performing actions dependent upon a prometheus phase.

func NewController

func NewController(client clientset.Interface, platformClient platformv1client.PlatformV1Interface, prometheusInformer monitorv1informer.PrometheusInformer, resyncPeriod time.Duration, remoteAddress []string, remoteType string) *Controller

NewController creates a new Controller object.

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{}) error

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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