telemetry

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TCP_ESTABLISHED = uint32(1)
	TCP_CLOSTED     = uint32(7)

	MSG_LEN = 112
)

Variables

This section is empty.

Functions

func DeleteServiceMetric

func DeleteServiceMetric(serviceName string)

func DeleteWorkloadMetric

func DeleteWorkloadMetric(workload *workloadapi.Workload)

func OutputAccesslog

func OutputAccesslog(data requestMetric, accesslog logInfo)

func RunPrometheusClient

func RunPrometheusClient(ctx context.Context)

Types

type MetricController

type MetricController struct {
	EnableAccesslog atomic.Bool
	// contains filtered or unexported fields
}

func NewMetric

func NewMetric(workloadCache cache.WorkloadCache, enableAccesslog bool) *MetricController

func (*MetricController) Run

func (m *MetricController) Run(ctx context.Context, mapOfTcpInfo *ebpf.Map)

Jump to

Keyboard shortcuts

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