metrics

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager shares one upstream metrics stream across all viewers of the same workload. Samples are held in memory only and are discarded when the stream has no viewers.

func NewManager

func NewManager(factory provider.Factory) *Manager

func (*Manager) InvalidateSnapshot

func (m *Manager) InvalidateSnapshot(connectionID string)

func (*Manager) Snapshot

func (m *Manager) Snapshot(ctx context.Context, connection model.Connection, maxAge time.Duration) ([]model.WorkloadMetric, error)

func (*Manager) Subscribe

func (m *Manager) Subscribe(ctx context.Context, connection model.Connection, request model.MetricRequest) (<-chan model.WorkloadMetric, func(), error)

Jump to

Keyboard shortcuts

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