telemetry

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func NewMetrics(adapter string) *Metrics

NewMetrics returns metrics for one adapter (for example "proxy"), with Go runtime and process collectors registered.

func (*Metrics) AdminHandler

func (m *Metrics) AdminHandler(ready func() bool) http.Handler

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

func (m *Metrics) ObserveVerdict(v pipeline.Verdict)

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

func (m *Metrics) WatchAdmission(p *pipeline.Admission)

WatchAdmission exports evaluation slot usage, so saturation (and with it, shed requests) is visible before it happens.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL