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 ¶ added in v1.3.1
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, prometheusInformer platformv1informer.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.
Click to show internal directories.
Click to hide internal directories.