defaults

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 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 (
	// DefaultMapRoot is the default path where BPFFS should be mounted
	DefaultMapRoot = "/sys/fs/bpf"

	// DefaultMapPrefix is the default path prefix where Tetragon maps should be pinned
	DefaultMapPrefix = "tetragon"

	// DefaultEventMap is the default name of the Event map
	DefaultEventMap = "tcpmon"

	// DefaultMapRootFallback is the path which is used when /sys/fs/bpf has
	// a mount, but with the other filesystem than BPFFS.
	DefaultMapRootFallback = "/run/cilium/bpffs"

	// DefaultRunDir is the default run directory for runtime
	DefaultRunDir = "/var/run/tetragon/"

	// Default Path to where cgroup2 is mounted (Prefix with /run)
	Cgroup2Dir = "/run/tetragon/cgroup2"

	// DedfaultNetnsDir is the default network namespace directory for runtime
	DefaultNetnsDir = "/var/run/docker/netns/"

	// Default kernel exposed BTF file path
	DefaultBTFFile = "/sys/kernel/btf/vmlinux"

	// Default location for BPF programs and BTF files
	DefaultTetragonLib = "/var/lib/tetragon/"

	// InitInfoFile is the file location for the info file.
	// After initialization, InitInfoFile will contain a json representation of InitInfo
	// Used by both client cli to guess unix socket address and by bugtool
	InitInfoFile = DefaultRunDir + "tetragon-info.json"

	// DefaultUnixSocket is the in-pod IPC socket the agent exposes when the
	// gRPC server is listening on TCP, so co-located tooling can connect
	// without TLS material.
	DefaultUnixSocket = DefaultRunDir + "tetragon.sock"

	// BugtoolExtraFiles is the file location for extra files to include in bugtool archives.
	// Written by the daemon at startup, read by the CLI at bugtool time.
	BugtoolExtraFiles = DefaultRunDir + "tetragon-bugtool-extra-files.json"

	// Default directory from where to load tracing policies.
	DefaultTpDir = "/etc/tetragon/tetragon.tp.d"

	// Default directory in which to persist tracing policies installed over gRPC.
	DefaultGRPCPolicyDir = DefaultRunDir + "grpc-policies"

	// Default secure export logs permissions
	DefaultLogsPermission = "600"

	// Pid file where to write tetragon main PID
	DefaultPidFile = DefaultRunDir + "tetragon.pid"

	// defaults for the event cache
	DefaultEventCacheNumRetries = 15
	DefaultEventCacheRetryDelay = 2

	// defaults for the process cache
	DefaultProcessCacheGCInterval = 30 * time.Second

	// defaults for the {k,u}retprobes lru cache
	DefaultRetprobesCacheSize = 4096

	// DefaultSleepablePreloadSize is the default maximum number of entries in the sleepable preload map.
	DefaultSleepablePreloadSize = 32768

	// DefaultSleepableOffloadSize is the default maximum number of entries in the sleepable offload map.
	DefaultSleepableOffloadSize = 32768

	// DefaultUprobeHeapSize is the default maximum number of entries in the
	// process call heap map used by uprobe/usdt sensors.
	DefaultUprobeHeapSize = 32768

	// DefaultFentryHeapSize is the default maximum number of entries in the
	// process call heap map used by fentry/fexit sensors.
	DefaultFentryHeapSize = 32768

	// DefaultLsmHeapSize is the default maximum number of entries in the
	// process call heap map used by lsm sensors.
	DefaultLsmHeapSize = 32768

	// DefaultMaxGRPCRecvMsgSize is the default maximum gRPC receive message
	// size for the tetra CLI (10MB).
	DefaultMaxGRPCRecvMsgSize = 10 * 1024 * 1024
)

Variables

View Source
var (
	// NetnsDir is the network namespace directory for runtime
	NetnsDir = DefaultNetnsDir
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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