Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToScheme ¶
AddToScheme adds monitoring types to the scheme.
func NewInstrumentedReconciler ¶
func NewInstrumentedReconciler(rec reconcile.Reconciler, gvk schema.GroupVersionKind) reconcile.Reconciler
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer is a helper type to time functions. Use NewTimer to create new instances.
func (*Timer) ObserveDurationInSeconds ¶
func (t *Timer) ObserveDurationInSeconds(o prometheus.Observer) time.Duration
ObserveDurationInSeconds records the duration passed since the Timer was created with NewTimer. It calls the Observe method of the provided Observer. The observed duration is also returned.
Click to show internal directories.
Click to hide internal directories.