YAML 구성을 datadog.yaml에 추가하거나 적절한 환경 변수를 사용하여 Agent를 실행할 수 있습니다.
YAML 구성
Agent 버전이 6.17 이상 또는 7.17 이상이어야 합니다.
datadog.yaml에서:
additional_endpoints:"https://app.":- apikey2- apikey3"https://app.<DD_SITE>": # Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).- apikey4
환경 변수 구성
Agent 버전이 6.18 이상 또는 7.18 이상이어야 합니다.
DD_ADDITIONAL_ENDPOINTS='{\"https://app.\": [\"apikey2\", \"apikey3\"], \"https://app.<DD_SITE>\": [\"apikey4\"]}'# Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).
APM
YAML 구성
에이전트 버전 >= 6.7.0을 요청합니다.
datadog.yaml에서:
apm_config:[...]additional_endpoints:"https://trace.agent.":- apikey2- apikey3"https://trace.agent.<DD_SITE>": # Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).- apikey4
환경 변수 구성
Agent 버전이 6.19 이상 또는 7.19 이상이어야 합니다.
DD_APM_ADDITIONAL_ENDPOINTS='{\"https://trace.agent.\": [\"apikey2\", \"apikey3\"], \"https://trace.agent.<DD_SITE>\": [\"apikey4\"]}'# Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).
Continuous Profiler
YAML 구성
에이전트 버전 >= 6.7.0을 요청합니다.
datadog.yaml에서:
apm_config:[...]profiling_additional_endpoints:"https://intake.profile./api/v2/profile":- apikey2- apikey3"https://intake.profile.<DD_SITE>/api/v2/profile": # Replace "<DD_SITE>" with your Datadog site parameter (for example, datadoghq.eu).- apikey4
환경 변수 구성
Agent 버전이 6.19 이상 또는 7.19 이상이어야 합니다.
DD_APM_PROFILING_ADDITIONAL_ENDPOINTS='{\"https://intake.profile./api/v2/profile\": [\"apikey2\", \"apikey3\"], \"https://intake.profile.<DD_SITE>/api/v2/profile\": [\"apikey4\"]}'# Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).
참고: Continuous Profiler 제품에 대한 추가 엔드포인트로의 업로드는 가능한 범위 내에서 전송됩니다.
메인 엔드포인트의 우선순위가 가장 높습니다. 추가 엔드포인트로의 업로드는 메인 엔드포인트로의 업로드가 성공적으로 완료된 후에만 처리됩니다.
추가 엔드포인트의 응답은 프로파일러로 다시 전달되지 않습니다. 추가 엔드포인트로 전달하는 동안 발생하는 모든 오류는 Agent 오류 로그에 기록됩니다.
Live Processes
YAML 구성
Agent 버전이 6.4.0 이상이어야 합니다.
datadog.yaml에서:
process_config:[...]additional_endpoints:"https://process.":- apikey2- apikey3"https://process.<DD_SITE>": # Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).- apikey4
환경 변수 구성
Agent 버전이 6.20 이상 또는 7.20 이상이어야 합니다.
DD_PROCESS_ADDITIONAL_ENDPOINTS='{\"https://process.\": [\"apikey2\", \"apikey3\"], \"https://process.<DD_SITE>\": [\"apikey4\"]}'# Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).
Cluster Agent 메트릭
Kubernetes State Metrics Core와 같은 Cluster Agent 메트릭을 추가 엔드포인트로 보내도록 Agent를 구성하세요.
자동 크기 조정이 장애 발생 시에도 안정적으로 작동하도록 하려면 이중 전송된 데이터를 사용하여 여러 Datadog 리전에 대해 HPA용 메트릭 쿼리를 실행하도록 Cluster Agent를 구성하세요. 여러 엔드포인트를 사용하여 Datadog Cluster Agent 매니페스트를 구성하세요.
agents:customAgentConfig:process_config:additional_endpoints:"https://process.":- apikey2orchestrator_explorer:orchestrator_additional_endpoints:"https://orchestrator.":- apikey3clusterAgent:...datadog_cluster_yaml:orchestrator_explorer:orchestrator_additional_endpoints:"https://orchestrator.<DD_SITE>": # Replace <DD_SITE> with your Datadog site parameter (for example, ddog-gov.com).- apikey4
환경 변수 구성
DD_ORCHESTRATOR_EXPLORER_ORCHESTRATOR_ADDITIONAL_ENDPOINTS='{\"https://orchestrator.\": [\"apikey2\", \"apikey3\"], \"https://orchestrator.<DD_SITE>\": [\"apikey4\"]}'# Replace <DD_SITE> with your Datadog site parameter (for example, ddog-gov.com).
CI Visibility
YAML 구성
Agent 버전이 6.38 이상 또는 7.38 이상이어야 합니다.
datadog.yaml에서:
evp_proxy_config:[...]additional_endpoints:"https://<VERSION>-app.agent.":- apikey2- apikey3"https://<VERSION>-app.agent.<DD_SITE>": # Replace <VERSION> and <DD_SITE> with your Agent version and Datadog site parameter (for example, 7-38-0 and datadoghq.eu).- apikey4
환경 변수 구성
DD_EVP_PROXY_CONFIG_ADDITIONAL_ENDPOINTS='{\"https://<VERSION>-app.agent.\": [\"apikey2\", \"apikey3\"], \"https://<VERSION>-app.agent.<DD_SITE>\": [\"apikey4\"]}'# Replace <VERSION> and <DD_SITE> with your Agent version and Datadog site parameter (for example, 7-38-0 and datadoghq.eu).
로그
여러 Datadog 조직으로 로그를 이중 전송하려면 Agent를 사용하세요. 로그를 Datadog 및 외부 대상으로 보내려면 Observability Pipelines를 사용하세요.
TCP는 Agent 버전이 6.6 이상이어야 합니다. HTTPS는 Agent 버전이 6.13 이상이어야 합니다.
When setting up additional endpoints, you must explicitly set use_http to tell the Agent which transport to use. The same transport configuration is shared among all additional endpoints.
The is_reliable setting (First available in Agent 7.34.0) tells the Agent to treat this endpoint with the same priority as the primary endpoint. The primary endpoint is always reliable. This ensures that data is not missed if a destination becomes unavailable.
For example, if you’re sending data to the main endpoint and an additional endpoint with is_reliable: true, and one endpoint becomes unavailable, data continues to flow to the other endpoint. If both endpoints become unavailable, the Agent stops reading and sending data until at least one endpoint recovers. This ensures all data makes it to at least one reliable endpoint.
The is_reliable setting defaults to true in Agent 7.37.0+. Unreliable endpoints only send data if at least one reliable endpoint is available. You may define multiple additional endpoints with a mixed usage of is_reliable values. Datadog recommends that you use the default is_reliable setting.
You can add the YAML configuration to your datadog.yaml or launch the Agent with the appropriate environment variables.
When setting up additional endpoints, you must explicitly set use_http to tell the Agent which transport to use. The same transport configuration is shared among all additional endpoints.
The is_reliable setting (First available in Agent 7.34.0) tells the Agent to treat this endpoint with the same priority as the primary endpoint. The primary endpoint is always reliable. This ensures that data is not missed if a destination becomes unavailable.
For example, if you’re sending data to the main endpoint and an additional endpoint with is_reliable: true, and one endpoint becomes unavailable, data continues to flow to the other endpoint. If both endpoints become unavailable, the Agent stops reading and sending data until at least one endpoint recovers. This ensures all data makes it to at least one reliable endpoint.
The is_reliable setting defaults to true in Agent 7.37.0+. Unreliable endpoints only send data if at least one reliable endpoint is available. You may define multiple additional endpoints with a mixed usage of is_reliable values. Datadog recommends that you use the default is_reliable setting.
You can add the YAML configuration to your datadog.yaml or launch the Agent with the appropriate environment variables.
When setting up additional endpoints, you must explicitly set use_http to tell the Agent which transport to use. The same transport configuration is shared among all additional endpoints.
The is_reliable setting (First available in Agent 7.34.0) tells the Agent to treat this endpoint with the same priority as the primary endpoint. The primary endpoint is always reliable. This ensures that data is not missed if a destination becomes unavailable.
For example, if you’re sending data to the main endpoint and an additional endpoint with is_reliable: true, and one endpoint becomes unavailable, data continues to flow to the other endpoint. If both endpoints become unavailable, the Agent stops reading and sending data until at least one endpoint recovers. This ensures all data makes it to at least one reliable endpoint.
The is_reliable setting defaults to true in Agent 7.37.0+. Unreliable endpoints only send data if at least one reliable endpoint is available. You may define multiple additional endpoints with a mixed usage of is_reliable values. Datadog recommends that you use the default is_reliable setting.
You can add the YAML configuration to your datadog.yaml or launch the Agent with the appropriate environment variables.
When setting up additional endpoints, you must explicitly set use_http to tell the Agent which transport to use. The same transport configuration is shared among all additional endpoints.
The is_reliable setting (First available in Agent 7.34.0) tells the Agent to treat this endpoint with the same priority as the primary endpoint. The primary endpoint is always reliable. This ensures that data is not missed if a destination becomes unavailable.
For example, if you’re sending data to the main endpoint and an additional endpoint with is_reliable: true, and one endpoint becomes unavailable, data continues to flow to the other endpoint. If both endpoints become unavailable, the Agent stops reading and sending data until at least one endpoint recovers. This ensures all data makes it to at least one reliable endpoint.
The is_reliable setting defaults to true in Agent 7.37.0+. Unreliable endpoints only send data if at least one reliable endpoint is available. You may define multiple additional endpoints with a mixed usage of is_reliable values. Datadog recommends that you use the default is_reliable setting.
You can add the YAML configuration to your datadog.yaml or launch the Agent with the appropriate environment variables.
When setting up additional endpoints, you must explicitly set use_http to tell the Agent which transport to use. The same transport configuration is shared among all additional endpoints.
The is_reliable setting (First available in Agent 7.34.0) tells the Agent to treat this endpoint with the same priority as the primary endpoint. The primary endpoint is always reliable. This ensures that data is not missed if a destination becomes unavailable.
For example, if you’re sending data to the main endpoint and an additional endpoint with is_reliable: true, and one endpoint becomes unavailable, data continues to flow to the other endpoint. If both endpoints become unavailable, the Agent stops reading and sending data until at least one endpoint recovers. This ensures all data makes it to at least one reliable endpoint.
The is_reliable setting defaults to true in Agent 7.37.0+. Unreliable endpoints only send data if at least one reliable endpoint is available. You may define multiple additional endpoints with a mixed usage of is_reliable values. Datadog recommends that you use the default is_reliable setting.
You can add the YAML configuration to your datadog.yaml or launch the Agent with the appropriate environment variables.
When setting up additional endpoints, you must explicitly set use_http to tell the Agent which transport to use. The same transport configuration is shared among all additional endpoints.
The is_reliable setting (First available in Agent 7.34.0) tells the Agent to treat this endpoint with the same priority as the primary endpoint. The primary endpoint is always reliable. This ensures that data is not missed if a destination becomes unavailable.
For example, if you’re sending data to the main endpoint and an additional endpoint with is_reliable: true, and one endpoint becomes unavailable, data continues to flow to the other endpoint. If both endpoints become unavailable, the Agent stops reading and sending data until at least one endpoint recovers. This ensures all data makes it to at least one reliable endpoint.
The is_reliable setting defaults to true in Agent 7.37.0+. Unreliable endpoints only send data if at least one reliable endpoint is available. You may define multiple additional endpoints with a mixed usage of is_reliable values. Datadog recommends that you use the default is_reliable setting.
You can add the YAML configuration to your datadog.yaml or launch the Agent with the appropriate environment variables.
Kubernetes에서의 이중 전송
Datadog Agent Helm 차트를 사용하는 경우, configmap으로 이러한 설정을 구성할 수 있습니다. values.yaml에서 useConfigMap: true를 설정하고
customAgentConfig에 관련 설정을 추가합니다.
# agents.useConfigMap -- Configures a configmap to provide the agent configuration. Use this in combination with the `agents.customAgentConfig` parameter.useConfigMap:true# agents.customAgentConfig -- Specify custom contents for the datadog agent config (datadog.yaml)## ref: https://docs.datadoghq.com/agent/configuration/agent-configuration-files/?tab=agentv6## ref: https://github.com/DataDog/datadog-agent/tree/main/pkg/config/example## Note the `agents.useConfigMap` needs to be set to `true` for this parameter to be taken into account.customAgentConfig:additional_endpoints:"https://app.<DD_SITE>": # Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.com).- apikey2- apikey3"https://app.<DD_SITE>": # Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).- apikey4logs_config:force_use_http:trueadditional_endpoints:- api_key:"apiKey2"Host:"agent-http-intake.logs.<DD_SITE>"# Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.com).Port:443is_reliable:true
ConfigMap 내부에 API 키가 일반 텍스트로 노출되는 것을 방지하려면 환경 변수 구성을 사용하고 Kubernetes 시크릿을 참조할 수도 있습니다. 다음은 추가 리전으로 메트릭을 전송하는 예입니다.
이 가이드의 환경 변수 구성 값을 사용하여 Kubernetes 시크릿을 생성합니다.
kubectl create -n <DATADOG AGENT NAMESPACE> secret generic dual-shipping --from-literal metrics='{"https://app.<DD_SITE>": ["apikey4"]}'# Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).
Helm 차트 파라미터datadog.env 또는 datadog.envFrom을 사용하여 구성에서 이 시크릿을 참조합니다.
Datadog Agent operator를 사용하는 경우, [key].customConfigurations.[key].configDataoverride 키를 설정하여 이러한 설정을 지정할 수 있습니다. 아래 예시는 노드 Agent의 datadog.yaml 구성 파일을 대체하여 메트릭과 로그를 추가 리전으로 전송합니다.
apiVersion:datadoghq.com/v2alpha1kind:DatadogAgentmetadata:name:datadogspec:override:nodeAgent:customConfigurations:datadog.yaml:## Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.com (US1) for `apikey2` and `apikey3`, and datadoghq.eu (EU) for `apikey4`).configData:|- additional_endpoints:
"https://app.<DD_SITE>":
- apikey2
- apikey3
"https://app.<DD_SITE>":
- apikey4
logs_config:
force_use_http: true
additional_endpoints:
- api_key: "apiKey2"
Host: "agent-http-intake.logs.<DD_SITE>"
Port: 443
is_reliable: true
ConfigMap 내부에 API 키가 일반 텍스트로 노출되는 것을 방지하려면 환경 변수 구성을 사용하고 Kubernetes 시크릿을 참조할 수도 있습니다. 다음은 추가 리전으로 메트릭을 전송하는 예입니다.
이 가이드의 환경 변수 구성 값을 사용하여 Kubernetes 시크릿을 생성합니다.
kubectl create -n <DATADOG AGENT NAMESPACE> secret generic dual-shipping --from-literal metrics='{"https://app.<DD_SITE>": ["apikey4"]}'# Replace <DD_SITE> with your Datadog site parameter (for example, datadoghq.eu).