Documentation
¶
Overview ¶
Package constants holds constants
Index ¶
Constants ¶
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 )
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.
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 ¶
var KnownInfraModes = []string{ InfraModeFull, InfraModeBasic, InfraModeEndUserDevice, InfraModeCloudCostOnly, InfraModeNone, }
KnownInfraModes lists every declared value of `infrastructure_mode`.
Functions ¶
func IsKnownInfraMode ¶ added in v0.86.0
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