constants

package module
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 9 modules, 7 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

Overview

Package constants holds constants

Index

Constants

View Source
const (
	// DefaultEBPFLessProbeAddr defines the default ebpfless probe address
	DefaultEBPFLessProbeAddr = "localhost:5678"
	// ClusterIDCacheKey is the key name for the orchestrator cluster id in the agent in-mem cache
	ClusterIDCacheKey = "orchestratorClusterID"
	// NodeKubeDistributionKey is the key name for the node kube distribution in the agent in-mem cache
	NodeKubeDistributionKey = "nodeKubeDistribution"
	// ECSClusterMetaCacheKey is the key name for the ecs cluster meta in the agent in-mem cache
	ECSClusterMetaCacheKey = "ecsOrchestratorClusterMeta"
	// DefaultNumWorkers default number of workers for our check runner
	DefaultNumWorkers = 4
	// MaxNumWorkers maximum number of workers for our check runner
	MaxNumWorkers = 25
	// DefaultProcessCmdPort is the default port used by process-agent to run a runtime settings server
	DefaultProcessCmdPort = 6162
)
View Source
const (
	DefaultAPIKeyValidationInterval               = 60
	DefaultAuditorTTL                             = 23
	DefaultBatchMaxConcurrentSend                 = 0
	DefaultBatchMaxContentSize                    = 5000000
	DefaultBatchMaxSize                           = 1000
	DefaultBatchWait                              = 5.0
	DefaultCompressorKind                         = "zstd"
	DefaultForwarderRecoveryInterval              = 2
	DefaultInputChanSize                          = 100
	DefaultLogCompressionKind                     = "zstd"
	DefaultLogsSenderBackoffBase                  = 1.0
	DefaultLogsSenderBackoffFactor                = 2.0
	DefaultLogsSenderBackoffMax                   = 120.0
	DefaultMaxMessageSizeBytes                    = 900000
	DefaultNetworkPathMaxTTL                      = 30
	DefaultNetworkPathStaticPathE2eQueries        = 50
	DefaultNetworkPathStaticPathTracerouteQueries = 3
	DefaultNetworkPathTimeout                     = 1000
	DefaultSecurityAgentCmdPort                   = 5010
	DefaultSite                                   = "datadoghq.com"
	DefaultZstdCompressionLevel                   = 1
)

Constants generated from settings tagged with a `generate_const:<name>` label. Each constant's value is the default of its associated setting.

View Source
const (
	// InfraModeFull is the default server and host monitoring behavior.
	InfraModeFull = "full"
	// InfraModeBasic collects host-level metrics only.
	InfraModeBasic = "basic"
	// InfraModeEndUserDevice is tuned for end-user-device laptops and desktops.
	InfraModeEndUserDevice = "end_user_device"
	// InfraModeCloudCostOnly serves a customer who pays for Cloud Cost Management only.
	InfraModeCloudCostOnly = "cloud_cost_only"
	// InfraModeNone disables infrastructure checks.
	InfraModeNone = "none"
)

Values accepted by the `infrastructure_mode` setting. They mirror the enum documented on the setting in the core schema.

Variables

KnownInfraModes lists every declared value of `infrastructure_mode`.

Functions

func IsKnownInfraMode added in v0.86.0

func IsKnownInfraMode(mode string) bool

IsKnownInfraMode reports whether mode is a declared `infrastructure_mode` value. An empty value is not a mode: callers treat it as unset and fall back to InfraModeFull without reporting it.

Types

type ConfigurationProviders

type ConfigurationProviders struct {
	Name                    string `mapstructure:"name"`
	Polling                 bool   `mapstructure:"polling"`
	PollInterval            string `mapstructure:"poll_interval"`
	TemplateURL             string `mapstructure:"template_url"`
	TemplateDir             string `mapstructure:"template_dir"`
	Username                string `mapstructure:"username"`
	Password                string `mapstructure:"password"`
	CAFile                  string `mapstructure:"ca_file"`
	CAPath                  string `mapstructure:"ca_path"`
	CertFile                string `mapstructure:"cert_file"`
	KeyFile                 string `mapstructure:"key_file"`
	Token                   string `mapstructure:"token"`
	GraceTimeSeconds        int    `mapstructure:"grace_time_seconds"`
	DegradedDeadlineMinutes int    `mapstructure:"degraded_deadline_minutes"`
}

ConfigurationProviders helps unmarshalling `config_providers` config param

Jump to

Keyboard shortcuts

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