Skip to content

Commit

Permalink
PROF-10073: Add support for datadog.profiling (#1471)
Browse files Browse the repository at this point in the history
* Add support for `datadog.profiling`

* Run `.github/helm-docs.sh`
  • Loading branch information
szegedi authored Sep 12, 2024
1 parent 08d686f commit cdeb57f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
6 changes: 5 additions & 1 deletion charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Datadog changelog

## 3.71.0

* Add `datadog.profiling` section to configure Continuous Profiler. Disabled by default.

## 3.70.7

* Set default `Agent` and `Cluster-Agent` version to `7.56.2`.
Expand Down Expand Up @@ -46,7 +50,7 @@

## 3.69.0

* Add support OTel Agent container. OTel Agent is Datadog's distribution of OTel collector.
* Add support OTel Agent container. OTel Agent is Datadog's distribution of OTel collector.

## 3.68.2

Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 3.70.7
version: 3.71.0
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
3 changes: 2 additions & 1 deletion charts/datadog/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog

![Version: 3.70.7](https://img.shields.io/badge/Version-3.70.7-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
![Version: 3.71.0](https://img.shields.io/badge/Version-3.71.0-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)

[Datadog](https://www.datadoghq.com/) is a hosted infrastructure monitoring platform. This chart adds the Datadog Agent to all nodes in your cluster via a DaemonSet. It also optionally depends on the [kube-state-metrics chart](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics). For more information about monitoring Kubernetes with Datadog, please refer to the [Datadog documentation website](https://docs.datadoghq.com/agent/basic_agent_usage/kubernetes/).

Expand Down Expand Up @@ -788,6 +788,7 @@ helm install <RELEASE_NAME> \
| datadog.processAgent.processDiscovery | bool | `true` | Enables or disables autodiscovery of integrations |
| datadog.processAgent.runInCoreAgent | bool | `false` | Set this to true to run the following features in the core agent: Live Processes, Live Containers, Process Discovery. # This is an experimental feature requiring Agent 7.53.0+ and Linux. Currently not compatible with APM Single Step Instrumentation. |
| datadog.processAgent.stripProcessArguments | bool | `false` | Set this to scrub all arguments from collected processes # Requires datadog.processAgent.processCollection to be set to true to have any effect # ref: https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows#process-arguments-scrubbing |
| datadog.profiling.enabled | string | `nil` | Enable Continuous Profiler by injecting `DD_PROFILING_ENABLED` environment variable with the same value to all pods in the cluster Valid values are: - false: Profiler is turned off and can not be turned on by other means. - null: Profiler is turned off, but can be turned on by other means. - auto: Profiler is turned off, but the library will turn it on if the application is a good candidate for profiling. - true: Profiler is turned on. |
| datadog.prometheusScrape.additionalConfigs | list | `[]` | Allows adding advanced openmetrics check configurations with custom discovery rules. (Requires Agent version 7.27+) |
| datadog.prometheusScrape.enabled | bool | `false` | Enable autodiscovering pods and services exposing prometheus metrics. |
| datadog.prometheusScrape.serviceEndpoints | bool | `false` | Enable generating dedicated checks for service endpoints. |
Expand Down
4 changes: 4 additions & 0 deletions charts/datadog/templates/cluster-agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ spec:
- name: DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_IAST_ENABLED
value: "true"
{{- end }}
{{- if not (eq .Values.datadog.profiling.enabled nil) }}
- name: DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_PROFILING_ENABLED
value: {{ .Values.datadog.profiling.enabled | quote }}
{{- end }}
{{- if .Values.datadog.clusterChecks.enabled }}
- name: DD_CLUSTER_CHECKS_ENABLED
value: {{ .Values.datadog.clusterChecks.enabled | quote }}
Expand Down
20 changes: 20 additions & 0 deletions charts/datadog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,26 @@ datadog:
# datadog.otlp.logs.enabled -- Enable logs support in the OTLP ingest endpoint
enabled: false

## Continuous Profiler configuration
##
## Continuous Profiler is disabled by default and can be enabled by setting the `enabled` field to
## either `auto` or `true` value under the `datadog.profiling` section.
## Manually adding the `DD_PROFILING_ENABLED` variable to a pod will take precedence over the
## value in the Helm chart.
## These will only have an effect on containers that have Datadog client libraries installed,
## either manually or via Single Step Instrumentation (under the `datadog.apm.instrumentation`
## section).
## It requires Datadog Cluster Agent 7.57.0+.
profiling:
# datadog.profiling.enabled -- Enable Continuous Profiler by injecting `DD_PROFILING_ENABLED`
# environment variable with the same value to all pods in the cluster
# Valid values are:
# - false: Profiler is turned off and can not be turned on by other means.
# - null: Profiler is turned off, but can be turned on by other means.
# - auto: Profiler is turned off, but the library will turn it on if the application is a good candidate for profiling.
# - true: Profiler is turned on.
enabled: null

# datadog.envFrom -- Set environment variables for all Agents directly from configMaps and/or secrets

## envFrom to pass configmaps or secrets as environment
Expand Down

0 comments on commit cdeb57f

Please sign in to comment.