observer

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 38 Imported by: 0 modules, 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

Index

Constants

View Source
const (
	// DefaultKubeArmorRelayAddr is the local relay address used by development.
	DefaultKubeArmorRelayAddr = "localhost:32767"
	// DefaultHubbleRelayAddr is the local relay address used by development.
	DefaultHubbleRelayAddr = "localhost:4245"
	// DefaultOTLPTraceGRPCAddr is the OTLP/gRPC trace receiver address.
	DefaultOTLPTraceGRPCAddr = ":4317"
	// DefaultOTLPAppGRPCAddr stays local until network isolation is configured.
	DefaultOTLPAppGRPCAddr = "127.0.0.1:4318"
	// DefaultOTLPTraceMaxMessageSize accommodates measured full input/output exports.
	DefaultOTLPTraceMaxMessageSize = 128 << 20
	// DefaultBatchSize balances COPY throughput with bounded shutdown drain.
	DefaultBatchSize = 500
	// DefaultFlushInterval caps event visibility latency in PostgreSQL.
	DefaultFlushInterval = time.Second
)

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, cfg Config) error

Serve starts the observer and blocks until context cancellation or failure.

Types

type Config

type Config struct {
	PostgresDSN             string
	KubeArmorRelayAddr      string
	HubbleRelayAddr         string
	OTLPTraceGRPCAddr       string
	OTLPAppGRPCAddr         string
	OTLPTraceMaxMessageSize int
	BatchSize               int
	FlushInterval           time.Duration
}

Config describes how the observer consumes telemetry and writes PostgreSQL.

func (Config) Validate

func (c Config) Validate() error

Validate reports invalid observer configuration before any side effects.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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