Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Common namespace for application metrics. Namespace = "karpenter" ErrorLabel = "error" ProvisionerLabel = "provisioner" )
Variables ¶
This section is empty.
Functions ¶
func DurationBuckets ¶
func DurationBuckets() []float64
DurationBuckets returns a []float64 of default threshold values for duration histograms. Each returned slice is new and may be modified without impacting other bucket definitions.
func Measure ¶
func Measure(observer prometheus.Observer) func()
Measure returns a deferrable function that observes the duration between the defer statement and the end of the function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.