DataDog / helm-charts

Helm charts for Datadog products
Apache License 2.0
337 stars 1.01k forks source link

add language detection apm config #1338

Closed adel121 closed 5 months ago

adel121 commented 6 months ago

What this PR does / why we need it:

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Special notes for your reviewer:

Verification

datadog:
  apiKeyExistingSecret: datadog-secret
  appKeyExistingSecret: datadog-secret
  kubelet:
    tlsVerify: false
  apm:
    instrumentation:
      enabled: true

From cluster agent config:

language_detection:
  enabled: true
  reporting:
    buffer_period: 10s
    enabled: true
    refresh_period: 20m

cluster_agent:
.........
  language_detection:
    cleanup:
      language_ttl: 30m
      period: 10m
    patcher:
      enabled: true

.....

auto_instrumentation:
    container_registry: gcr.io/datadoghq
    enabled: true
    endpoint: /injectlib
    inject_auto_detected_libraries: false

From cluster agent cluster role (patch permission is added):

- apiGroups:
  - apps
  resources:
  - deployments
  - replicasets
  - daemonsets
  - statefulsets
  verbs:
  - list
  - get
  - watch
  - patch

From agent config:

language_detection:
  enabled: true
  reporting:
    buffer_period: 10s
    enabled: true
    refresh_period: 20m

From process agent config:

process_collection:
  enabled: true
datadog:
  apiKeyExistingSecret: datadog-secret
  appKeyExistingSecret: datadog-secret
  kubelet:
    tlsVerify: false
  apm:
    instrumentation:
      enabled: true
      language_detection:
         enabled: false

From cluster agent config:

language_detection:
  enabled: false
  reporting:
    buffer_period: 10s
    enabled: false
    refresh_period: 20m

cluster_agent:
.........
  language_detection:
    cleanup:
      language_ttl: 30m
      period: 10m
    patcher:
      enabled: false

.....

auto_instrumentation:
    container_registry: gcr.io/datadoghq
    enabled: true
    endpoint: /injectlib
    inject_auto_detected_libraries: false

From cluster agent cluster role (patch permission is not added):

- apiGroups:
  - ""
  resources:
  - services
  - endpoints
  - pods
  - nodes
  - namespaces
  - componentstatuses
  verbs:
  - get
  - list
  - watch

From agent config (language detection is disabled):

language_detection:
  enabled: false
  reporting:
    buffer_period: 10s
    enabled: true
    refresh_period: 20m

From process agent config (process collection is disabled):

container_collection:
  enabled: true
process_collection:
  enabled: false

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]