Skip to content

Commit

Permalink
feat(error-tracking): add settings for backend standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaBortoli committed Dec 9, 2024
1 parent 54edc22 commit 876930c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Datadog changelog

## 3.84.0

* Add `agents.coreAgent.enabled` and `datadog.apm.errorTrackingStandalone.enabled` settings to enable Error Tracking backend standalone.

## 3.83.0

* Added the configuration value `datadog.disablePasswdMount` to disable mounting the `/etc/passwd` path from the host filesystem. This option should be used when the underlying OS does not have these files (e.g., Talos OS).
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v1
name: datadog
version: 3.83.0
version: 3.84.0
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
4 changes: 3 additions & 1 deletion charts/datadog/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog

![Version: 3.83.0](https://img.shields.io/badge/Version-3.83.0-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
![Version: 3.84.0](https://img.shields.io/badge/Version-3.84.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 @@ -560,6 +560,7 @@ helm install <RELEASE_NAME> \
| agents.useHostNetwork | bool | `false` | Bind ports on the hostNetwork |
| agents.volumeMounts | list | `[]` | Specify additional volumes to mount in all containers of the agent pod |
| agents.volumes | list | `[]` | Specify additional volumes to mount in the dd-agent container |
| agents.coreAgent.enabled | bool | `true` | Enabled metric data submission (including Custom Metrics) and payloads forwarding to other agents. |
| clusterAgent.additionalLabels | object | `{}` | Adds labels to the Cluster Agent deployment and pods |
| clusterAgent.admissionController.agentSidecarInjection.clusterAgentCommunicationEnabled | bool | `true` | Enable communication between Agent sidecars and the Cluster Agent. |
| clusterAgent.admissionController.agentSidecarInjection.containerRegistry | string | `nil` | Override the default registry for the sidecar Agent. |
Expand Down Expand Up @@ -703,6 +704,7 @@ helm install <RELEASE_NAME> \
| datadog.apm.socketPath | string | `"/var/run/datadog/apm.socket"` | Path to the trace-agent socket |
| datadog.apm.useLocalService | bool | `false` | Enable APM over TCP communication to use the local service only (requires Kubernetes v1.22+) Note: The hostPort 8126 is disabled when this is enabled. |
| datadog.apm.useSocketVolume | bool | `false` | Enable APM over Unix Domain Socket DEPRECATED. Use datadog.apm.socketEnabled instead |
| datadog.apm.errorTrackingStandalone.enabled | bool | `false` | Enable sending only traces for Error Tracking backend standalone. |
| datadog.appKey | string | `nil` | Datadog APP key required to use metricsProvider |
| datadog.appKeyExistingSecret | string | `nil` | Use existing Secret which stores APP key instead of creating a new one. The value should be set with the `app-key` key inside the secret. |
| datadog.asm.iast.enabled | bool | `false` | Enable Application Security Management Interactive Application Security Testing by injecting `DD_IAST_ENABLED=true` environment variable to all pods in the cluster |
Expand Down
8 changes: 8 additions & 0 deletions charts/datadog/templates/_container-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@
{{- else }}
{{- include "containers-cluster-agent-env" . | nindent 4 }}
{{- end }}
{{- if .Values.datadog.apm.errorTrackingStandalone.enabled }}
- name: DD_APM_ERROR_TRACKING_STANDALONE_ENABLED
value: {{ .Values.datadog.apm.errorTrackingStandalone.enabled | quote }}
{{- end }}
{{- if .Values.agents.coreAgent.enabled }}
- name: DD_CORE_AGENT_ENABLED
value: {{ .Values.agents.coreAgent.enabled | quote }}
{{- end }}
- name: DD_APM_ENABLED
value: {{ include "should-enable-trace-agent" . | quote }}
- name: DD_LOGS_ENABLED
Expand Down
10 changes: 10 additions & 0 deletions charts/datadog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ datadog:
# datadog.apm.hostSocketPath -- Host path to the trace-agent socket
hostSocketPath: /var/run/datadog/

# Error Tracking backend standalone
errorTrackingStandalone:
# datadog.apm.errorTrackingStandalone.enabled -- Enable sending only traces for Error Tracking backend standalone.

Check failure on line 515 in charts/datadog/values.yaml

View workflow job for this annotation

GitHub Actions / lint-chart

515:121 [trailing-spaces] trailing spaces
enabled: false

# APM Single Step Instrumentation
# This feature is in beta. It requires Cluster Agent 7.49+.
instrumentation:
Expand Down Expand Up @@ -1519,6 +1524,11 @@ agents:
## get guaranteed delivery of the metrics in Datadog-per-namespace setup!
enabled: true

## Settings for the core agent
coreAgent:
# agents.coreAgent.enabled -- Enabled metric data submission (including Custom Metrics) and payloads forwarding to other agents.
enabled: true

# agents.shareProcessNamespace -- Set the process namespace sharing on the Datadog Daemonset
shareProcessNamespace: false

Expand Down

0 comments on commit 876930c

Please sign in to comment.