servicemonitor

package
v2.2.4-rc7+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServicePortsFromEndpoint

func GetServicePortsFromEndpoint(endpoints []monitoringv1.Endpoint) []corev1.ServicePort

func Register

func Register(ctx context.Context, workload *config.UserOnlyContext)

Types

type EndpointSorter

type EndpointSorter []monitoringv1.Endpoint

func (EndpointSorter) Len

func (e EndpointSorter) Len() int

func (EndpointSorter) Less

func (e EndpointSorter) Less(i, j int) bool

func (EndpointSorter) Swap

func (e EndpointSorter) Swap(i, j int)

type MetricsServiceController

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

The MetricsServiceController maintains the relation between workload, service monitor and service. The service monitor will create services that point to workloads or pods with selector. The service monitor owns those service and should delete with the object.

func (*MetricsServiceController) ReconcileServiceMonitor

func (c *MetricsServiceController) ReconcileServiceMonitor(w *util.Workload) error

ReconcileServiceMonitor Workloads to ServiceMonitor

Jump to

Keyboard shortcuts

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