prometheus

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MetricsPortName returns the default port name for metrics endpoints.
	MetricsPortName = intstr.FromString("metrics")
)

Functions

func GetAnnotations

func GetAnnotations(instance *v1beta1.TemporalCluster) map[string]string

GetAnnotations returns prometheus scrape annotations.

func PatchServiceMonitorSpecWithOverride

func PatchServiceMonitorSpecWithOverride(spec *monitoringv1.ServiceMonitorSpec, override *monitoringv1.ServiceMonitorSpec) (*monitoringv1.ServiceMonitorSpec, error)

PatchServiceMonitorSpecWithOverride patches the provided ServiceMonitor spec with the provided ServiceMonitor spec override.

Types

type ServiceMonitorBuilder

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

func NewServiceMonitorBuilder

func NewServiceMonitorBuilder(serviceName string, instance *v1beta1.TemporalCluster, scheme *runtime.Scheme, service *v1beta1.ServiceSpec) *ServiceMonitorBuilder

func (*ServiceMonitorBuilder) Build

func (b *ServiceMonitorBuilder) Build() (client.Object, error)

func (*ServiceMonitorBuilder) Update

func (b *ServiceMonitorBuilder) Update(object client.Object) error

Jump to

Keyboard shortcuts

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