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