Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to enable Live Process monitoring in Datadog Agent?

To enable live process monitoring in Datadog Agent, follow these steps:

  1. Log in to Datadog:
  2. Install and Configure the Datadog Agent (if not already done):
    • If you haven’t already installed and configured the Datadog Agent on the host(s) you want to monitor, follow Datadog’s installation guide for your specific environment. The process may vary depending on your operating system and setup.
  3. Edit the Agent Configuration:
    • SSH into the host where the Datadog Agent is installed.
  4. Locate the Agent Configuration File:
    • The Datadog Agent configuration file is usually located in /etc/datadog-agent/datadog.yaml on Unix-like systems. You can use a text editor (e.g., nano or vi) to open this file.
  5. Enable Live Process Monitoring:
    • Inside the datadog.yaml file, locate the section related to process monitoring. It typically looks like this:

######################################

## @param process_config - custom object - optional
## Enter specific configurations for your Process data collection.
## Uncomment this parameter and the one below to enable them.
## See https://docs.datadoghq.com/graphing/infrastructure/process/
#
process_config:

  ## @param process_collection - custom object - optional
  ## Specifies settings for collecting processes.
  process_collection:
    ## @param enabled - boolean - optional - default: false
    ## Enables collection of information about running processes.
    enabled: true

================================================
  1. Save and Close the Configuration File:
    • Save your changes to the datadog.yaml file and exit the text editor.
  2. Restart the Datadog Agent:
    • To apply the changes, you’ll need to restart the Datadog Agent. The command to restart the agent depends on your operating system. For example, on Linux, you can use the following command:bashCopy codesudo systemctl restart datadog-agent
  3. Verify Live Process Monitoring:
    • After restarting the agent, go back to the Datadog web interface.
  4. Access Process List:
    • In the Datadog dashboard, navigate to the “Infrastructure” tab and select “Processes” from the left sidebar. This will allow you to access the live process list.
  5. Explore Process Data:
    • You should now be able to see live process data for the host(s) where you enabled live process monitoring. You can explore running processes, resource usage, and other relevant information.

Enabled Process Monitoring

How to restart Datadog Agent after enabling process check?

$ systemctl start datadog-agent
$ systemctl stop datadog-agent
$ systemctl restart datadog-agent
$ systemctl status datadog-agent

How to check if process monitoring is enabled or not in Linux?

root@ip-172-31-60-221:/home/ubuntu# datadog-agent config | grep process_collection -B 5 -A 5
    enabled: false
    grpc_port: 6262
  log_file: /var/log/datadog/process-agent.log
  max_message_bytes: 1000000
  max_per_message: 100
  process_collection:
    enabled: true
  process_discovery:
    enabled: true
    hint_frequency: 60
    interval: 4h0m0s

How to check if process monitoring is enabled or not in Windows?

How to check if Process Enabled at Datadog?

Rajesh Kumar
Follow me