Can we add DataDog agent for NPM to our cluster

Hi Team, I would love to ask if there’s a way we can get this set up in our k8s environment. This will allow us to set up Network Performance Monitoring to view network health metrics for service communication.

1 Like

Hi @adefemi171 , from our guide on how to install Datadog on your Kubernetes cluster, you can see that we are using Helm. From the Datadog Helm documentation, you can enable NPM like this in your values.yaml.

The system-probe agent only runs in a dedicated container environment. Update your datadog-values.yaml file with the NPM collection configuration:

datadog:
  # (...)
  networkMonitoring:
    # (...)
    enabled: true

# (...)

Keep reading :point_down:

Hello guys,

I have an issue at the final step of the 3rd item of your guide.

When I run this command it fails

helm install datadog-agent -n datadog --create-namespace -f datadog/values.yaml --set datadog.apiKey='MY_API_KEY' datadog/datadog
Error: INSTALLATION FAILED: Kubernetes cluster unreachable: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

helm version
version.BuildInfo{Version:"v3.9.0", GitCommit:"7ceeda6c585217a19a1131663d8cd1f7d641b2a7", GitTreeState:"clean", GoVersion:"go1.18.2"}
kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.6", GitCommit:"ad3338546da947756e8a88aa6822e9c11e7eac22", GitTreeState:"clean", BuildDate:"2022-04-14T08:49:13Z", GoVersion:"go1.17.9", Compiler:"gc", Platform:"darwin/arm64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.12-eks-a64ea69", GitCommit:"d4336843ba36120e9ed1491fddff5f2fec33eb77", GitTreeState:"clean", BuildDate:"2022-05-12T18:29:27Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}

Asking this here because some issues propose to update eks cluster to make it works.

Any idea ?

Thanks a lot :pray:


EDIT: Fix by updating config yaml

apiVersion: client.authentication.k8s.io/v1beta1

instead of

apiVersion: client.authentication.k8s.io/v1alpha1
1 Like

Well done @whatelse , and thank you for sharing your answer :+1:

1 Like