BYOC Logs는 메타데이터와 구성을 PostgreSQL 데이터베이스에 저장합니다. Datadog은 Azure Database for PostgreSQL Flexible Server를 권장합니다. AKS 클러스터에서 해당 서버에 연결할 수 있어야 하며, 가급적 프라이빗 네트워킹을 활성화하는 것이 좋습니다. 자세한 내용은 Postgres 규모에 관한 권장 사항을 참조하세요.
Azure AD 애플리케이션에 Blob Storage 컨테이너에 대한 읽기/쓰기 액세스 권한을 부여해야 합니다. BYOC Logs용 전용 애플리케이션을 등록하고 해당 서비스 주체에 앞서 생성한 Blob Storage 컨테이너에 대한 Contributor 역할을 할당합니다.
kubectl get pods -n nginx-ingress-public -l app.kubernetes.io/component=controller
서비스가 외부 IP를 노출하는지 확인합니다.
kubectl get svc -n nginx-ingress-public -l app.kubernetes.io/component=controller
내부 NGINX Ingress Controller
내부 인그레스를 사용하면 HTTP를 통해 환경 내의 Datadog Agent 및 기타 로그 컬렉터에서 로그를 수집할 수 있습니다. 공용 NGINX Ingress Controller를 생성하려면 다음 nginx-internal.yaml Helm values 파일을 사용합니다.
PostgreSQL 데이터베이스 연결 문자열을 Kubernetes 시크릿으로 저장합니다.
PostgreSQL 연결 세부 정보를 확인하려면 Azure Portal에서 All resources로 이동한 다음 Azure Database for PostgreSQL Flexible Server 인스턴스를 클릭합니다. 마지막으로 Getting started 탭에서 Connect 카드에 있는 View connection strings 링크를 클릭합니다.
기본값을 사용자 지정 구성으로 재정의하려면 datadog-values.yaml 파일을 생성합니다. 이 파일에서 이미지 태그, Azure 테넌트 ID, 서비스 계정, 인그레스 설정, 리소스 요청량 및 제한값 등 환경별 설정을 정의합니다.
datadog-values.yaml에서 명시적으로 재정의되지 않은 파라미터에는 차트의 values.yaml에 정의된 기본값이 적용됩니다.
# Show default values helm show values datadog/cloudprem
다음은 Azure용 재정의 설정이 포함된 datadog-values.yaml 파일의 예시입니다.
datadog-values.yaml
# Datadog configurationdatadog:# The Datadog site (https://docs.datadoghq.com/getting_started/site/) to connect to. Defaults to `datadoghq.com`.# site: datadoghq.com# The name of the existing Secret containing the Datadog API key. The secret key name must be `api-key`.apiKeyExistingSecret:datadog-secretazure:tenantId:<TENANT_ID># requiredclientId:<CLIENT_ID># required when using AD App to authenticate with Blob StorageclientSecretRef:name:<SECRET_NAME>key:<SECRET_KEY>storageAccount:name:<STORAGE_ACCOUNT_NAME># required# If you are using a storage account access key to authenticate with Blob Storage,# comment out the `clientSecretRef` section above,# and uncomment the `storageAccount` section below:# accessKeySecretRef:# name: <SECRET_NAME># key: <SECRET_KEY># Service account configuration# If `serviceAccount.create` is set to `true`, a service account is created with the specified name.# Additional annotations can be added using serviceAccount.extraAnnotations.serviceAccount:create:truename:byoc-logs# BYOC Logs node configurationconfig:# The root URI where index data is stored. This should be an Azure path.# All indexes created in BYOC Logs are stored under this location.default_index_root_uri:azure://<CONTAINER_NAME>/indexes# Internal ingress configuration# The internal ingress NLB is created in private subnets.## Additional annotations can be added to customize the ALB behavior.ingress:# The internal ingress is used by Datadog Agents and other collectors running outside# the Kubernetes cluster to send their logs to BYOC Logs.internal:enabled:trueingressClassName:nginx-internalhost:byoc-logs.acme.internalextraAnnotations:{}# Metastore configuration# The metastore is responsible for storing and managing index metadata.# It requires a PostgreSQL database connection string to be provided by a Kubernetes secret.# The secret should contain a key named `QW_METASTORE_URI` with a value in the format:# postgresql://<username>:<password>@<host>:<port>/<database>## The metastore connection string is mounted into the pods using extraEnvFrom to reference the secret.metastore:extraEnvFrom:- secretRef:name:byoc-logs-metastore-uri# Indexer configuration# The indexer is responsible for processing and indexing incoming data it receives data from various sources (for example, Datadog Agents, log collectors)# and transforms it into searchable files called "splits" stored in S3.## The indexer is horizontally scalable - you can increase `replicaCount` to handle higher indexing throughput.# The `podSize` parameter sets vCPU, memory, and component-specific settings automatically.# See the sizing guide for available tiers and their configurations.indexer:replicaCount:2podSize:xlargepersistentVolume:enabled:truestorage:250GistorageClass:managed-csi# Searcher configuration# The searcher is responsible for executing search queries against the indexed data stored in S3.# It handles search requests from Datadog's query service and returns matching results.## The searcher is horizontally scalable - you can increase `replicaCount` to handle more concurrent searches.# Resource requirements for searchers are highly workload-dependent and should be determined empirically.# Key factors that impact searcher performance include:# - Query complexity (for example, number of terms, use of wildcards or regex)# - Query concurrency (number of simultaneous searches)# - Amount of data scanned per query# - Data access patterns (cache hit rates)## Memory is particularly important for searchers as they cache frequently accessed index data in memory.searcher:replicaCount:2podSize:xlarge