DataDog / datadog-agent

Main repository for Datadog Agent
https://docs.datadoghq.com/
Apache License 2.0
2.84k stars 1.2k forks source link

Enable system-probe without enabling Network Performance Monitoring. #7126

Open neilharris123 opened 3 years ago

neilharris123 commented 3 years ago

Describe what happened:

In the documentation the suggested method to enable Network Performance Monitoring is to simply enable the system probe.

I have tested this, and this works as suggested.

The problem with this is that users may want to enable the system-probe for other checks/metrics (for example the oom_kill check), but may not want to enable Network Performance Monitoring.

I can find no documented way of disabling Network Performance Monitoring once the system-probe is enabled.

I've tried adding the following configuration which I found in the datadog-agent config template in github, but this does not in any way disable NPM once system-probe is enabled:

network_config:
  enabled: false

Describe what you expected:

I expected there to been a configuration option which would allow users to disable Network Performance Monitoring, without disabling the system-probe.

Steps to reproduce the issue:

Add system-probe.yaml in /etc/datadog with the following configuration:

system_probe_config:
  enabled: true

Additional environment details (Operating System, Cloud provider, etc):

Debian 10.7 datadog-agent v7.21.1

braiamwm commented 3 years ago

We need this exact use case. We're interested in process monitoring and OOM checks, but we want to disable network monitoring.

I also asked this question on the support chat. Ticket #434494

leeavital commented 3 years ago

Hi @neilharris123 and @braiamwm,

As of agent version 7.24.0, you can enable the OOMkill check without network monitoring by omitting the system_probe_config.enabled=true. I'll fix the documentation you linked to reflect this.

alex-candfield commented 1 month ago

@leeavital

Is it possible to get clear instructions on this?