Documentation
¶
Overview ¶
Package telemetry exposes engine metrics in the Prometheus format and the admin endpoints (/metrics, /healthz, /readyz).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics records verdicts. It implements pipeline.Observer.
func NewMetrics ¶
NewMetrics returns metrics for one adapter (for example "proxy"), with Go runtime and process collectors registered.
func (*Metrics) AdminHandler ¶
AdminHandler serves /metrics, /healthz (the process is alive) and /readyz (the engine has loaded its rules and can serve; ready is called per probe).
func (*Metrics) ObserveVerdict ¶
ObserveVerdict records one verdict.
func (*Metrics) Register ¶
func (m *Metrics) Register(cs ...prometheus.Collector)
Register adds collectors, such as the bundle agent's, to the engine's metrics.
func (*Metrics) WatchAdmission ¶
WatchAdmission exports evaluation slot usage, so saturation (and with it, shed requests) is visible before it happens.