Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder knows how to measure the metrics of the library using Prometheus as the backend for the measurements.
func NewRecorder ¶
func NewRecorder(config RecorderConfig) (*Recorder, error)
NewRecorder returns a new Prometheus metrics recorder.
func (Recorder) MeasureMutatingWebhookReviewOp ¶
func (r Recorder) MeasureMutatingWebhookReviewOp(_ context.Context, data webhook.MeasureMutatingOpData)
MeasureMutatingWebhookReviewOp measures a mutating webhook review operation on Prometheus.
func (Recorder) MeasureValidatingWebhookReviewOp ¶
func (r Recorder) MeasureValidatingWebhookReviewOp(_ context.Context, data webhook.MeasureValidatingOpData)
MeasureValidatingWebhookReviewOp measures a validating webhook review operation on Prometheus.
type RecorderConfig ¶
type RecorderConfig struct { Registry prometheus.Registerer ReviewOpBuckets []float64 }
RecorderConfig is the configuration of the recorder.
Click to show internal directories.
Click to hide internal directories.