Help us shape the future of Go! Take the 2026 Go Developer Survey

act

package
v1.18.16 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"act-metrics",
	"Metrics with counts of new and active connections for each service-zone pair",

	metrics.Metric(NewActiveConnectionTrackingMetrics),
	cell.Invoke(NewACT),
)

Functions

This section is empty.

Types

type ACT

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

func NewACT

func NewACT(in struct {
	cell.In

	Conf      act.Config
	Log       *slog.Logger
	Lifecycle cell.Lifecycle
	Jobs      job.Group
	Source    act.ActiveConnectionTrackingMap
	Metrics   ActiveConnectionTrackingMetrics
	LBMaps    lbmaps.LBMaps
	DB        *statedb.DB
	Frontends statedb.Table[*loadbalancer.Frontend]
}) *ACT

func (*ACT) CountFailed4

func (a *ACT) CountFailed4(svc uint16, backend uint32)

CountFailed4 increments a counter of new failed connections for a given (svc, backend) pair.

func (*ACT) CountFailed6

func (a *ACT) CountFailed6(svc uint16, backend uint32)

CountFailed6 increments a counter of new failed connections for a given (svc, backend) pair.

type ActiveConnectionTrackingMetrics

type ActiveConnectionTrackingMetrics struct {
	New, Active, Failed metric.DeletableVec[metric.Gauge]
	ProcessingTime      metric.Histogram
	Errors              metric.Vec[metric.Counter]
}

func NewActiveConnectionTrackingMetrics

func NewActiveConnectionTrackingMetrics() ActiveConnectionTrackingMetrics

Jump to

Keyboard shortcuts

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