prometheus

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricsPortName = intstr.FromString("metrics")

MetricsPortName returns the default port name for metrics endpoints.

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

func (*ServiceMonitorBuilder) Enabled

func (b *ServiceMonitorBuilder) Enabled() bool

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