common

package
v1.7.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AgentDeploymentNameLabelKey label key use to link a Resource to a DatadogAgent
	AgentDeploymentNameLabelKey = "agent.datadoghq.com/name"
	// AgentDeploymentComponentLabelKey label key use to know with component is it
	AgentDeploymentComponentLabelKey = "agent.datadoghq.com/component"
	// MD5AgentDeploymentProviderLabelKey label key is used to identify which provider is being used
	MD5AgentDeploymentProviderLabelKey = "agent.datadoghq.com/provider"
	// MD5AgentDeploymentAnnotationKey annotation key used on a Resource in order to identify which AgentDeployment have been used to generate it.
	MD5AgentDeploymentAnnotationKey = "agent.datadoghq.com/agentspechash"
	// MD5ChecksumAnnotationKey annotation key is used to identify customConfig configurations
	MD5ChecksumAnnotationKey = "checksum/%s-custom-config"
	// MD5ChecksumAnnotationKey is part of the key name to identify custom seccomp configurations
	MD5ChecksumSeccompProfileAnnotationName = "%s-seccomp"

	// DefaultAgentResourceSuffix use as suffix for agent resource naming
	DefaultAgentResourceSuffix = "agent"
	// DefaultClusterAgentResourceSuffix use as suffix for cluster-agent resource naming
	DefaultClusterAgentResourceSuffix = "cluster-agent"
	// DefaultClusterChecksRunnerResourceSuffix use as suffix for cluster-checks-runner resource naming
	DefaultClusterChecksRunnerResourceSuffix = "cluster-checks-runner"
	// DefaultMetricsServerResourceSuffix use as suffix for cluster-agent metrics-server resource naming
	DefaultMetricsServerResourceSuffix = "cluster-agent-metrics-server"
	// DefaultAPPKeyKey default app-key key (use in secret for instance).
	DefaultAPPKeyKey = "app_key"
	// DefaultAPIKeyKey default api-key key (use in secret for instance).
	DefaultAPIKeyKey = "api_key"
	// DefaultTokenKey default token key (use in secret for instance).
	DefaultTokenKey = "token"
	// DefaultClusterAgentReplicas default cluster-agent deployment replicas
	DefaultClusterAgentReplicas = 1
	// DefaultClusterAgentServicePort default cluster-agent service port
	DefaultClusterAgentServicePort = 5005
	// DefaultClusterChecksRunnerReplicas default cluster checks runner deployment replicas
	DefaultClusterChecksRunnerReplicas = 1
	// DefaultMetricsServerServicePort default metrics-server port
	DefaultMetricsServerServicePort = 443
	// DefaultMetricsServerTargetPort default metrics-server pod port
	DefaultMetricsServerTargetPort = int(DefaultMetricsProviderPort)
	// DefaultAdmissionControllerServicePort default admission controller service port
	DefaultAdmissionControllerServicePort = 443
	// DefaultAdmissionControllerTargetPort default admission controller pod port
	DefaultAdmissionControllerTargetPort = 8000
	// DefaultAdmissionControllerWebhookName default admission controller webhook name
	DefaultAdmissionControllerWebhookName string = "datadog-webhook"
	// DefaultDogstatsdOriginDetection default Origin Detection
	DefaultDogstatsdOriginDetection = "false"
	// DefaultDogstatsdPort default dogstatsd port
	DefaultDogstatsdPort = 8125
	// DefaultDogstatsdPortName default dogstatsd port name
	DefaultDogstatsdPortName = "dogstatsdport"
	// DefaultApmPort default apm port
	DefaultApmPort = 8126
	// DefaultApmPortName default apm port name
	DefaultApmPortName = "traceport"
	// DefaultMetricsProviderPort default metrics provider port
	DefaultMetricsProviderPort int32 = 8443
	// DefaultKubeStateMetricsCoreConf default ksm core ConfigMap name
	DefaultKubeStateMetricsCoreConf string = "kube-state-metrics-core-config"
	// DefaultOrchestratorExplorerConf default orchestrator explorer ConfigMap name
	DefaultOrchestratorExplorerConf string = "orchestrator-explorer-config"
	// DefaultSystemProbeSocketPath default System Probe socket path
	DefaultSystemProbeSocketPath string = "/var/run/sysprobe/sysprobe.sock"
	// DefaultCSPMConf default CSPM ConfigMap name
	DefaultCSPMConf string = "cspm-config"
	// DefaultCWSConf default CWS ConfigMap name
	DefaultCWSConf string = "cws-config"
	// DefaultHelmCheckConf default Helm Check ConfigMap name
	DefaultHelmCheckConf string = "helm-check-config"

	// Liveness probe default config
	DefaultLivenessProbeInitialDelaySeconds int32 = 15
	DefaultLivenessProbePeriodSeconds       int32 = 15
	DefaultLivenessProbeTimeoutSeconds      int32 = 5
	DefaultLivenessProbeSuccessThreshold    int32 = 1
	DefaultLivenessProbeFailureThreshold    int32 = 6
	DefaultAgentHealthPort                  int32 = 5555
	DefaultLivenessProbeHTTPPath                  = "/live"

	// Readiness probe default config
	DefaultReadinessProbeInitialDelaySeconds int32 = 15
	DefaultReadinessProbePeriodSeconds       int32 = 15
	DefaultReadinessProbeTimeoutSeconds      int32 = 5
	DefaultReadinessProbeSuccessThreshold    int32 = 1
	DefaultReadinessProbeFailureThreshold    int32 = 6
	DefaultReadinessProbeHTTPPath                  = "/ready"

	// Default Image name
	DefaultAgentImageName        string = "agent"
	DefaultClusterAgentImageName string = "cluster-agent"
	DefaultImageRegistry         string = "gcr.io/datadoghq"
	DefaultEuropeImageRegistry   string = "eu.gcr.io/datadoghq"
	DefaultAsiaImageRegistry     string = "asia.gcr.io/datadoghq"
	DefaultGovImageRegistry      string = "public.ecr.aws/datadog"

	// ExtendedDaemonset defaulting
	DefaultRollingUpdateMaxUnavailable                  = "10%"
	DefaultUpdateStrategy                               = appsv1.RollingUpdateDaemonSetStrategyType
	DefaultRollingUpdateMaxPodSchedulerFailure          = "10%"
	DefaultRollingUpdateMaxParallelPodCreation    int32 = 250
	DefaultRollingUpdateSlowStartIntervalDuration       = 1 * time.Minute
	DefaultRollingUpdateSlowStartAdditiveIncrease       = "5"
	DefaultReconcileFrequency                           = 10 * time.Second

	KubeServicesAndEndpointsConfigProviders = "kube_services kube_endpoints"
	KubeServicesAndEndpointsListeners       = "kube_services kube_endpoints"
	EndpointsChecksConfigProvider           = "endpointschecks"
	ClusterAndEndpointsConfigProviders      = "clusterchecks endpointschecks"
)

Datadog const value

View Source
const (
	SystemProbeAppArmorAnnotationKey   = "container.apparmor.security.beta.kubernetes.io/system-probe"
	SystemProbeAppArmorAnnotationValue = "unconfined"
)

Annotations

View Source
const (
	ConfdVolumeName                = "confd"
	ConfdVolumePath                = "/conf.d"
	ConfigVolumeName               = "config"
	ConfigVolumePath               = "/etc/datadog-agent"
	KubeStateMetricCoreVolumeName  = "ksm-core-config"
	OrchestratorExplorerVolumeName = "orchestrator-explorer-config"
	ChecksdVolumeName              = "checksd"
	ChecksdVolumePath              = "/checks.d"

	HostRootVolumeName = "hostroot"
	HostRootHostPath   = "/"
	HostRootMountPath  = "/host/root"

	GroupVolumeName = "group"
	GroupHostPath   = "/etc/group"
	GroupMountPath  = "/etc/group"

	PasswdVolumeName = "passwd"
	PasswdHostPath   = "/etc/passwd"
	PasswdMountPath  = "/etc/passwd"

	ProcdirVolumeName = "procdir"
	ProcdirHostPath   = "/proc"
	ProcdirMountPath  = "/host/proc"

	CgroupsVolumeName = "cgroups"
	CgroupsHostPath   = "/sys/fs/cgroup"
	CgroupsMountPath  = "/host/sys/fs/cgroup"

	SystemProbeOSReleaseDirVolumeName = "host-osrelease"
	SystemProbeOSReleaseDirVolumePath = "/etc/os-release"
	SystemProbeOSReleaseDirMountPath  = "/host/etc/os-release"

	ApkDirVolumeName = "host-apk-dir"
	ApkDirVolumePath = "/var/lib/apk"
	ApkDirMountPath  = "/host/var/lib/apk"

	DpkgDirVolumeName = "host-dpkg-dir"
	DpkgDirVolumePath = "/var/lib/dpkg"
	DpkgDirMountPath  = "/host/var/lib/dpkg"

	RpmDirVolumeName = "host-rpm-dir"
	RpmDirVolumePath = "/var/lib/rpm"
	RpmDirMountPath  = "/host/var/lib/rpm"

	RedhatReleaseVolumeName = "etc-redhat-release"
	RedhatReleaseVolumePath = "/etc/redhat-release"
	RedhatReleaseMountPath  = "/host/etc/redhat-release"

	FedoraReleaseVolumeName = "etc-fedora-release"
	FedoraReleaseVolumePath = "/etc/fedora-release"
	FedoraReleaseMountPath  = "/host/etc/fedora-release"

	LsbReleaseVolumeName = "etc-lsb-release"
	LsbReleaseVolumePath = "/etc/lsb-release"
	LsbReleaseMountPath  = "/host/etc/lsb-release"

	SystemReleaseVolumeName = "etc-system-release"
	SystemReleaseVolumePath = "/etc/system-release"
	SystemReleaseMountPath  = "/host/etc/system-release"

	SystemProbeSocketVolumeName = "sysprobe-socket-dir"
	SystemProbeSocketVolumePath = "/var/run/sysprobe"

	DebugfsVolumeName = "debugfs"
	// same path on host and container
	DebugfsPath = "/sys/kernel/debug"

	TracefsVolumeName = "tracefs"
	TracefsPath       = "/sys/kernel/tracing"

	SecurityfsVolumeName = "securityfs"
	SecurityfsVolumePath = "/sys/kernel/security"
	SecurityfsMountPath  = "/host/sys/kernel/security"

	ModulesVolumeName = "modules"
	// same path on host and container
	ModulesVolumePath = "/lib/modules"

	SrcVolumeName = "src"
	// same path on host and container
	SrcVolumePath = "/usr/src"

	AgentCustomConfigVolumePath = "/etc/datadog-agent/datadog.yaml"
	SystemProbeConfigVolumePath = "/etc/datadog-agent/system-probe.yaml"

	LogDatadogVolumeName                             = "logdatadog"
	LogDatadogVolumePath                             = "/var/log/datadog"
	TmpVolumeName                                    = "tmp"
	TmpVolumePath                                    = "/tmp"
	CertificatesVolumeName                           = "certificates"
	CertificatesVolumePath                           = "/etc/datadog-agent/certificates"
	AuthVolumeName                                   = "datadog-agent-auth"
	AuthVolumePath                                   = "/etc/datadog-agent/auth"
	InstallInfoVolumeName                            = "installinfo"
	InstallInfoVolumeSubPath                         = "install_info"
	InstallInfoVolumePath                            = "/etc/datadog-agent/install_info"
	InstallInfoVolumeReadOnly                        = true
	PointerVolumeName                                = "pointerdir"
	PointerVolumePath                                = "/opt/datadog-agent/run"
	LogTempStoragePath                               = "/var/lib/datadog-agent/logs"
	PodLogVolumeName                                 = "logpodpath"
	PodLogVolumePath                                 = "/var/log/pods"
	ContainerLogVolumeName                           = "logcontainerpath"
	ContainerLogVolumePath                           = "/var/lib/docker/containers"
	SymlinkContainerVolumeName                       = "symlinkcontainerpath"
	SymlinkContainerVolumePath                       = "/var/log/containers"
	DogstatsdHostPortName                            = "dogstatsdport"
	DogstatsdHostPortHostPort                        = 8125
	DogstatsdSocketVolumeName                        = "dsdsocket"
	DogstatsdAPMSocketHostPath                       = "/var/run/datadog"
	DogstatsdSocketLocalPath                         = "/var/run/datadog"
	DogstatsdSocketName                              = "dsd.socket"
	SecurityAgentComplianceCustomConfigDirVolumeName = "customcompliancebenchmarks"
	SecurityAgentComplianceConfigDirVolumeName       = "compliancedir"
	SecurityAgentComplianceConfigDirVolumePath       = "/etc/datadog-agent/compliance.d"
	SecurityAgentRuntimeCustomPoliciesVolumeName     = "customruntimepolicies"
	SecurityAgentRuntimeCustomPoliciesVolumePath     = "/etc/datadog-agent-runtime-policies"
	SecurityAgentRuntimePoliciesDirVolumeName        = "runtimepoliciesdir"
	SecurityAgentRuntimePoliciesDirVolumePath        = "/etc/datadog-agent/runtime-security.d"
	HostCriSocketPathPrefix                          = "/host"
	CriSocketVolumeName                              = "runtimesocketdir"
	RuntimeDirVolumePath                             = "/var/run"
	KubeletAgentCAPath                               = "/var/run/host-kubelet-ca.crt"
	KubeletCAVolumeName                              = "kubelet-ca"
	APMHostPortName                                  = "traceport"
	APMHostPortHostPort                              = 8126
	APMSocketVolumeName                              = "apmsocket"
	APMSocketVolumeLocalPath                         = "/var/run/datadog"
	APMSocketName                                    = "apm.socket"
	AdmissionControllerPortName                      = "admissioncontrollerport"
	AdmissionControllerSocketCommunicationMode       = "socket"
	ExternalMetricsPortName                          = "metricsapi"
	ExternalMetricsAPIServiceName                    = "v1beta1.external.metrics.k8s.io"
	OTLPGRPCPortName                                 = "otlpgrpcport"
	OTLPHTTPPortName                                 = "otlphttpport"
	SeccompSecurityVolumeName                        = "datadog-agent-security"
	SeccompSecurityVolumePath                        = "/etc/config"
	SeccompRootVolumeName                            = "seccomp-root"
	SeccompRootVolumePath                            = "/host/var/lib/kubelet/seccomp"
	SeccompRootPath                                  = "/var/lib/kubelet/seccomp"
	SystemProbeSeccompKey                            = "system-probe-seccomp.json"
	SystemProbeAgentSecurityConfigMapSuffixName      = "system-probe-seccomp"
	SystemProbeSeccompProfileName                    = "system-probe"

	AppArmorAnnotationKey = "container.apparmor.security.beta.kubernetes.io"

	AgentCustomConfigVolumeName    = "custom-datadog-yaml"
	AgentCustomConfigVolumeSubPath = "datadog.yaml"

	ClusterAgentCustomConfigVolumeName    = "custom-cluster-agent-yaml"
	ClusterAgentCustomConfigVolumePath    = "/etc/datadog-agent/datadog-cluster.yaml"
	ClusterAgentCustomConfigVolumeSubPath = "datadog-cluster.yaml"

	HelmCheckConfigVolumeName = "helm-check-config"

	FIPSProxyCustomConfigVolumeName = "fips-proxy-cfg"
	FIPSProxyCustomConfigFileName   = "datadog-fips-proxy.cfg"
	FIPSProxyCustomConfigMapName    = "%s-fips-config"
	FIPSProxyCustomConfigMountPath  = "/etc/datadog-fips-proxy/datadog-fips-proxy.cfg"
)

Datadog volume names and mount paths

View Source
const (
	// FieldPathSpecNodeName used as FieldPath for selecting the NodeName
	FieldPathSpecNodeName = "spec.nodeName"

	// FieldPathStatusHostIP used as FieldPath to retrieve the host ip
	FieldPathStatusHostIP = "status.hostIP"

	// FieldPathStatusPodIP used as FieldPath to retrieve the pod ip
	FieldPathStatusPodIP = "status.podIP"

	// FieldPathMetaName used as FieldPath to retrieve the pod name
	FieldPathMetaName = "metadata.name"
)
View Source
const (
	DatadogHost                                          = "DATADOG_HOST"
	DDAdmissionControllerAgentSidecarEnabled             = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_ENABLED"
	DDAdmissionControllerAgentSidecarClusterAgentEnabled = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_CLUSTER_AGENT_ENABLED"
	DDAdmissionControllerAgentSidecarProvider            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROVIDER"
	DDAdmissionControllerAgentSidecarRegistry            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_CONTAINER_REGISTRY"
	DDAdmissionControllerAgentSidecarImageName           = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_NAME"
	DDAdmissionControllerAgentSidecarImageTag            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_TAG"
	DDAdmissionControllerAgentSidecarSelectors           = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_SELECTORS"
	DDAdmissionControllerAgentSidecarProfiles            = "DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROFILES"
	DDAdmissionControllerEnabled                         = "DD_ADMISSION_CONTROLLER_ENABLED"
	DDAdmissionControllerInjectConfig                    = "DD_ADMISSION_CONTROLLER_INJECT_CONFIG_ENABLED"
	DDAdmissionControllerInjectConfigMode                = "DD_ADMISSION_CONTROLLER_INJECT_CONFIG_MODE"
	DDAdmissionControllerInjectTags                      = "DD_ADMISSION_CONTROLLER_INJECT_TAGS_ENABLED"
	DDAdmissionControllerLocalServiceName                = "DD_ADMISSION_CONTROLLER_INJECT_CONFIG_LOCAL_SERVICE_NAME"
	DDAdmissionControllerMutateUnlabelled                = "DD_ADMISSION_CONTROLLER_MUTATE_UNLABELLED"
	DDAdmissionControllerServiceName                     = "DD_ADMISSION_CONTROLLER_SERVICE_NAME"
	DDAdmissionControllerFailurePolicy                   = "DD_ADMISSION_CONTROLLER_FAILURE_POLICY"
	DDAdmissionControllerWebhookName                     = "DD_ADMISSION_CONTROLLER_WEBHOOK_NAME"
	DDAdmissionControllerRegistryName                    = "DD_ADMISSION_CONTROLLER_CONTAINER_REGISTRY"
	DDAdmissionControllerCWSInstrumentationEnabled       = "DD_ADMISSION_CONTROLLER_CWS_INSTRUMENTATION_ENABLED"
	DDAdmissionControllerCWSInstrumentationMode          = "DD_ADMISSION_CONTROLLER_CWS_INSTRUMENTATION_MODE"
	DDAdmissionControllerAppsecEnabled                   = "DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_APPSEC_ENABLED"
	DDAdmissionControllerAppsecSCAEnabled                = "DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_APPSEC_SCA_ENABLED"
	DDAdmissionControllerIASTEnabled                     = "DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_IAST_ENABLED"
	DDAPIKey                                             = "DD_API_KEY"
	DDAPMEnabled                                         = "DD_APM_ENABLED"
	DDAPMInstrumentationInstallTime                      = "DD_INSTRUMENTATION_INSTALL_TIME"
	DDAPMInstrumentationInstallId                        = "DD_INSTRUMENTATION_INSTALL_ID"
	DDAPMInstrumentationInstallType                      = "DD_INSTRUMENTATION_INSTALL_TYPE"
	DDAPMNonLocalTraffic                                 = "DD_APM_NON_LOCAL_TRAFFIC"
	DDAPMReceiverPort                                    = "DD_APM_RECEIVER_PORT"
	DDAPMReceiverSocket                                  = "DD_APM_RECEIVER_SOCKET"
	DDAPMInstrumentationEnabled                          = "DD_APM_INSTRUMENTATION_ENABLED"
	DDAPMInstrumentationEnabledNamespaces                = "DD_APM_INSTRUMENTATION_ENABLED_NAMESPACES"
	DDAPMInstrumentationDisabledNamespaces               = "DD_APM_INSTRUMENTATION_DISABLED_NAMESPACES"
	DDAPMInstrumentationLibVersions                      = "DD_APM_INSTRUMENTATION_LIB_VERSIONS"
	DDAppKey                                             = "DD_APP_KEY"
	DDAuthTokenFilePath                                  = "DD_AUTH_TOKEN_FILE_PATH"
	DDClcRunnerEnabled                                   = "DD_CLC_RUNNER_ENABLED"
	DDClcRunnerHost                                      = "DD_CLC_RUNNER_HOST"
	DDClcRunnerID                                        = "DD_CLC_RUNNER_ID"
	DDClusterAgentAuthToken                              = "DD_CLUSTER_AGENT_AUTH_TOKEN"
	DDClusterAgentEnabled                                = "DD_CLUSTER_AGENT_ENABLED"
	DDClusterAgentKubeServiceName                        = "DD_CLUSTER_AGENT_KUBERNETES_SERVICE_NAME"
	DDClusterAgentServiceAccountName                     = "DD_CLUSTER_AGENT_SERVICE_ACCOUNT_NAME"
	DDClusterAgentTokenName                              = "DD_CLUSTER_AGENT_TOKEN_NAME"
	DDClusterChecksEnabled                               = "DD_CLUSTER_CHECKS_ENABLED"
	DDClusterName                                        = "DD_CLUSTER_NAME"
	DDCollectKubernetesEvents                            = "DD_COLLECT_KUBERNETES_EVENTS"
	DDComplianceConfigCheckInterval                      = "DD_COMPLIANCE_CONFIG_CHECK_INTERVAL"
	DDComplianceConfigDir                                = "DD_COMPLIANCE_CONFIG_DIR"
	DDComplianceConfigEnabled                            = "DD_COMPLIANCE_CONFIG_ENABLED"
	DDComplianceHostBenchmarksEnabled                    = "DD_COMPLIANCE_HOST_BENCHMARKS_ENABLED"
	DDContainerCollectionEnabled                         = "DD_PROCESS_CONFIG_CONTAINER_COLLECTION_ENABLED"
	DDCriSocketPath                                      = "DD_CRI_SOCKET_PATH"
	DDddURL                                              = "DD_DD_URL"
	DDDogstatsdEnabled                                   = "DD_USE_DOGSTATSD"
	DDDogstatsdMapperProfiles                            = "DD_DOGSTATSD_MAPPER_PROFILES"
	DDDogstatsdNonLocalTraffic                           = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC"
	DDDogstatsdOriginDetection                           = "DD_DOGSTATSD_ORIGIN_DETECTION"
	DDDogstatsdOriginDetectionClient                     = "DD_DOGSTATSD_ORIGIN_DETECTION_CLIENT"
	DDDogstatsdTagCardinality                            = "DD_DOGSTATSD_TAG_CARDINALITY"
	DDDogstatsdPort                                      = "DD_DOGSTATSD_PORT"
	DDDogstatsdSocket                                    = "DD_DOGSTATSD_SOCKET"
	DDEnableMetadataCollection                           = "DD_ENABLE_METADATA_COLLECTION"
	DDEnableOOMKillEnvVar                                = "DD_SYSTEM_PROBE_CONFIG_ENABLE_OOM_KILL"
	DDEnableTCPQueueLengthEnvVar                         = "DD_SYSTEM_PROBE_CONFIG_ENABLE_TCP_QUEUE_LENGTH"
	DDEnableEBPFCheckEnvVar                              = "DD_EBPF_CHECK_ENABLED"
	DDExternalMetricsProviderAPIKey                      = "DD_EXTERNAL_METRICS_PROVIDER_API_KEY"
	DDExternalMetricsProviderAppKey                      = "DD_EXTERNAL_METRICS_PROVIDER_APP_KEY"
	DDExternalMetricsProviderEndpoint                    = "DD_EXTERNAL_METRICS_PROVIDER_ENDPOINT"
	DDExternalMetricsProviderEnabled                     = "DD_EXTERNAL_METRICS_PROVIDER_ENABLED"
	DDExternalMetricsProviderPort                        = "DD_EXTERNAL_METRICS_PROVIDER_PORT"
	DDExternalMetricsProviderUseDatadogMetric            = "DD_EXTERNAL_METRICS_PROVIDER_USE_DATADOGMETRIC_CRD"
	DDExternalMetricsProviderWPAController               = "DD_EXTERNAL_METRICS_PROVIDER_WPA_CONTROLLER"
	DDExtraConfigProviders                               = "DD_EXTRA_CONFIG_PROVIDERS"
	DDExtraListeners                                     = "DD_EXTRA_LISTENERS"
	DDFIPSEnabled                                        = "DD_FIPS_ENABLED"
	DDFIPSPortRangeStart                                 = "DD_FIPS_PORT_RANGE_START"
	DDFIPSUseHTTPS                                       = "DD_FIPS_HTTPS"
	DDFIPSLocalAddress                                   = "DD_FIPS_LOCAL_ADDRESS"
	DDHealthPort                                         = "DD_HEALTH_PORT"
	DDHostname                                           = "DD_HOSTNAME"
	DDHostRootEnvVar                                     = "HOST_ROOT"
	DDIgnoreAutoConf                                     = "DD_IGNORE_AUTOCONF"
	DDKubeletCAPath                                      = "DD_KUBELET_CLIENT_CA"
	DDKubeletHost                                        = "DD_KUBERNETES_KUBELET_HOST"
	DDKubeletTLSVerify                                   = "DD_KUBELET_TLS_VERIFY"
	DDKubeResourcesNamespace                             = "DD_KUBE_RESOURCES_NAMESPACE"
	DDKubeStateMetricsCoreConfigMap                      = "DD_KUBE_STATE_METRICS_CORE_CONFIGMAP_NAME"
	DDKubeStateMetricsCoreEnabled                        = "DD_KUBE_STATE_METRICS_CORE_ENABLED"
	DDLeaderElection                                     = "DD_LEADER_ELECTION"
	DDLeaderLeaseName                                    = "DD_LEADER_LEASE_NAME"
	DDLogLevel                                           = "DD_LOG_LEVEL"
	DDLogsConfigContainerCollectAll                      = "DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL"
	DDLogsConfigOpenFilesLimit                           = "DD_LOGS_CONFIG_OPEN_FILES_LIMIT"
	DDLogsContainerCollectUsingFiles                     = "DD_LOGS_CONFIG_K8S_CONTAINER_USE_FILE"
	DDLogsEnabled                                        = "DD_LOGS_ENABLED"
	DDNamespaceLabelsAsTags                              = "DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS"
	DDNodeLabelsAsTags                                   = "DD_KUBERNETES_NODE_LABELS_AS_TAGS"
	DDOrchestratorExplorerEnabled                        = "DD_ORCHESTRATOR_EXPLORER_ENABLED"
	DDOrchestratorExplorerExtraTags                      = "DD_ORCHESTRATOR_EXPLORER_EXTRA_TAGS"
	DDOrchestratorExplorerDDUrl                          = "DD_ORCHESTRATOR_EXPLORER_ORCHESTRATOR_DD_URL"
	DDOrchestratorExplorerAdditionalEndpoints            = "DD_ORCHESTRATOR_ADDITIONAL_ENDPOINTS"
	DDOrchestratorExplorerContainerScrubbingEnabled      = "DD_ORCHESTRATOR_EXPLORER_CONTAINER_SCRUBBING_ENABLED"
	DDOriginDetectionUnified                             = "DD_ORIGIN_DETECTION_UNIFIED"
	DDPodAnnotationsAsTags                               = "DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS"
	DDPodLabelsAsTags                                    = "DD_KUBERNETES_POD_LABELS_AS_TAGS"
	DDPodName                                            = "DD_POD_NAME"
	DDPPMReceiverSocket                                  = "DD_APM_RECEIVER_SOCKET"
	DDProcessCollectionEnabled                           = "DD_PROCESS_CONFIG_PROCESS_COLLECTION_ENABLED"
	DDProcessConfigScrubArgs                             = "DD_PROCESS_CONFIG_SCRUB_ARGS"
	DDProcessConfigStripArgs                             = "DD_PROCESS_CONFIG_STRIP_PROC_ARGUMENTS"
	DDProcessDiscoveryEnabled                            = "DD_PROCESS_CONFIG_PROCESS_DISCOVERY_ENABLED"
	DDProcessConfigRunInCoreAgent                        = "DD_PROCESS_CONFIG_RUN_IN_CORE_AGENT_ENABLED"
	DDPrometheusScrapeChecks                             = "DD_PROMETHEUS_SCRAPE_CHECKS"
	DDPrometheusScrapeEnabled                            = "DD_PROMETHEUS_SCRAPE_ENABLED"
	DDPrometheusScrapeServiceEndpoints                   = "DD_PROMETHEUS_SCRAPE_SERVICE_ENDPOINTS"
	DDPrometheusScrapeVersion                            = "DD_PROMETHEUS_SCRAPE_VERSION"
	DDRemoteConfigurationEnabled                         = "DD_REMOTE_CONFIGURATION_ENABLED"
	DDRuntimeSecurityConfigEnabled                       = "DD_RUNTIME_SECURITY_CONFIG_ENABLED"
	DDRuntimeSecurityConfigPoliciesDir                   = "DD_RUNTIME_SECURITY_CONFIG_POLICIES_DIR"
	DDRuntimeSecurityConfigRemoteTaggerEnabled           = "DD_RUNTIME_SECURITY_CONFIG_REMOTE_TAGGER"
	DDRuntimeSecurityConfigSocket                        = "DD_RUNTIME_SECURITY_CONFIG_SOCKET"
	DDRuntimeSecurityConfigSyscallMonitorEnabled         = "DD_RUNTIME_SECURITY_CONFIG_SYSCALL_MONITOR_ENABLED"
	DDRuntimeSecurityConfigNetworkEnabled                = "DD_RUNTIME_SECURITY_CONFIG_NETWORK_ENABLED"
	DDRuntimeSecurityConfigActivityDumpEnabled           = "DD_RUNTIME_SECURITY_CONFIG_ACTIVITY_DUMP_ENABLED"
	DDRuntimeSecurityConfigRemoteConfigurationEnabled    = "DD_RUNTIME_SECURITY_CONFIG_REMOTE_CONFIGURATION_ENABLED"
	DDContainerImageEnabled                              = "DD_CONTAINER_IMAGE_ENABLED"
	DDSBOMEnabled                                        = "DD_SBOM_ENABLED"
	DDSBOMContainerImageEnabled                          = "DD_SBOM_CONTAINER_IMAGE_ENABLED"
	DDSBOMContainerImageAnalyzers                        = "DD_SBOM_CONTAINER_IMAGE_ANALYZERS"
	DDSBOMHostEnabled                                    = "DD_SBOM_HOST_ENABLED"
	DDSBOMHostAnalyzers                                  = "DD_SBOM_HOST_ANALYZERS"
	DDSecretBackendCommand                               = "DD_SECRET_BACKEND_COMMAND"
	DDSite                                               = "DD_SITE"
	DDSystemProbeAgentEnabled                            = "DD_SYSTEM_PROBE_ENABLED"
	DDSystemProbeBPFDebugEnabled                         = DDSystemProbeEnvPrefix + "BPF_DEBUG"
	DDSystemProbeCollectDNSStatsEnabled                  = "DD_COLLECT_DNS_STATS"
	DDSystemProbeConntrackEnabled                        = DDSystemProbeEnvPrefix + "ENABLE_CONNTRACK"
	DDSystemProbeDebugPort                               = DDSystemProbeEnvPrefix + "DEBUG_PORT"
	DDSystemProbeEnabled                                 = "DD_SYSTEM_PROBE_ENABLED"
	DDSystemProbeEnvPrefix                               = "DD_SYSTEM_PROBE_CONFIG_"
	DDSystemProbeExternal                                = "DD_SYSTEM_PROBE_EXTERNAL"
	DDSystemProbeNPMEnabled                              = "DD_SYSTEM_PROBE_NETWORK_ENABLED"
	DDSystemProbeServiceMonitoringEnabled                = "DD_SYSTEM_PROBE_SERVICE_MONITORING_ENABLED"
	DDSystemProbeSocket                                  = "DD_SYSPROBE_SOCKET"
	DDSystemProbeOOMKillEnabled                          = DDSystemProbeEnvPrefix + "ENABLE_OOM_KILL"
	DDSystemProbeTCPQueueLengthEnabled                   = DDSystemProbeEnvPrefix + "ENABLE_TCP_QUEUE_LENGTH"
	DDTags                                               = "DD_TAGS"
	DockerHost                                           = "DOCKER_HOST"

	DDOTLPgRPCEndpoint = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT"
	DDOTLPHTTPEndpoint = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT"

	// KubernetesEnvvarName Env var used by the Datadog Agent container entrypoint
	// to add kubelet config provider and listener
	KubernetesEnvVar = "KUBERNETES"

	ClusterChecksConfigProvider = "clusterchecks"

	EnvVarTrueValue  = "true"
	EnvVarFalseValue = "false"

	// InstallInfoToolVersion is used by the Operator to override the tool
	// version value in the Agent's install info
	InstallInfoToolVersion = "DD_TOOL_VERSION"
)

Datadog env var names

Variables

This section is empty.

Functions

func GetDefaultLivenessProbe

func GetDefaultLivenessProbe() *corev1.Probe

GetDefaultLivenessProbe creates a defaulted LivenessProbe

func GetDefaultReadinessProbe

func GetDefaultReadinessProbe() *corev1.Probe

GetDefaultReadinessProbe creates a defaulted ReadinessProbe

func GetDefaultTraceAgentProbe added in v1.2.1

func GetDefaultTraceAgentProbe() *corev1.Probe

GetDefaultTraceAgentProbe creates a defaulted liveness/readiness probe for the Trace Agent

func GetImage

func GetImage(imageSpec *commonv1.AgentImageConfig, registry *string) string

GetImage builds the image string based on ImageConfig and the registry configuration.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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