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
Click to show internal directories.
Click to hide internal directories.