package metrics
import "k8s.io/apiserver/pkg/cel/metrics"
Index ¶
Variables ¶
var Metrics = newCelMetrics()
Metrics provides access to CEL metrics.
Types ¶
type CelMetrics ¶
type CelMetrics struct {
// contains filtered or unexported fields
}
func (*CelMetrics) ObserveCompilation ¶
func (m *CelMetrics) ObserveCompilation(elapsed time.Duration)
ObserveCompilation records a CEL compilation with the time the compilation took.
func (*CelMetrics) ObserveEvaluation ¶
func (m *CelMetrics) ObserveEvaluation(elapsed time.Duration)
ObserveEvaluation records a CEL evaluation with the time the evaluation took.
Source Files ¶
metrics.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.