act

package
v1.17.0-pre.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 19 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
	Service   service.ServiceManager
}) *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