From be6d81e8a0c0bfcf06c2dace5beb25d11f65dbc0 Mon Sep 17 00:00:00 2001 From: Anurag Goel Date: Mon, 10 May 2021 17:38:34 -0700 Subject: [PATCH 1/2] Remove kubelet check --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7400cd0..7b974ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM datadog/agent:7 +# disable all Kubernetes checks (they don't work on Render) +RUN rm -rf /etc/datadog-agent/conf.d/kube* + ENV NON_LOCAL_TRAFFIC=true ENV DD_LOGS_STDOUT=yes From 3bb9abbf80592dcd74e91ef0d3248887283132eb Mon Sep 17 00:00:00 2001 From: Anurag Goel Date: Wed, 12 May 2021 16:35:14 -0700 Subject: [PATCH 2/2] Remove Datadog autodiscovery on Render --- Dockerfile | 6 ++++-- README.md | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b974ab..c506097 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ FROM datadog/agent:7 -# disable all Kubernetes checks (they don't work on Render) -RUN rm -rf /etc/datadog-agent/conf.d/kube* +# disable autoconfigured checks; DD container checks +# do not work as-is on Render since there's no access +# to Kubelet/kube-state-metrics. +ENV DD_AUTOCONFIG_FROM_ENVIRONMENT=false ENV NON_LOCAL_TRAFFIC=true ENV DD_LOGS_STDOUT=yes diff --git a/README.md b/README.md index aec1cb7..7f0a73f 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,3 @@ This example deploys Datadog's [Docker agent](https://docs.datadoghq.com/agent/d The URL will look like `datadog-agent-lkyz` with APM available on TCP port `8126` and DogStatsD on UDP port `8125`. > You will need to configure your Datadog API key by setting the `DD_API_KEY` environment variable to your private service. - -Errors of the form `"Unable to detect the kubelet URL automatically: impossible to reach Kubelet with host:` can be safely ignored. The kubelet is part of the Render control plane and inaccessible to user workloads. The DataDog Agent will still be able to capture and send metrics from your applications.