Debug School

Sivakumar
Sivakumar

Posted on

DataDog Assignment Infra - 17 Jan

Datadog Agent

The Datadog Agent is a software that runs on your hosts that collects events and metrics from hosts and sends them to Datadog (SAAS), where we can analyze the collected monitoring and performance data.

Methods to send data to Datadog

  1. Collector collects host infra data.
  2. DogstatsD collects application metrics on code level.
  3. Both the above collected data will be transferred to forwarder using TCP protocol.
  4. Forwarder send data to DataDog SAAS using http protocol.
  5. For Apache, the metrices will be saved separately which in-turn was fetched by DataDog agent.
  6. From DataDog SAAS, the metrices will be published or fetched in DataDog UI

Top 10 commands of Datadog Agent

datadog-agent health
datadog-agent status
datadog-agent stop
datadog-agent check 
datadog-agent hostname
datadog-agent launch-gui
datadog-agent run
datadog-agent version
datadog-agent config
datadog-agent diagnose
Enter fullscreen mode Exit fullscreen mode

Top 10 Techniques for troubleshooting Datadog Agent

  • Check Datadog Agent Process is running or not
  • Check Datadog Agent Logs for Error
  • Check Datadog Agent Configuration file(datadog.yaml) syntax Error
  • Check Datadog Integration Configuration file(datadog.yaml) syntax Error
  • Check Datadog Agent API Key in datadog.yaml
  • Check ENV variable set for Datadog Agent conflict with datadog.yaml
  • Print the runtime configuration of a running agent
  • Print all configurations loaded & resolved of a running agent
  • Execute some connectivity diagnosis on your system
  • Print the current agent health
  • Print basic statistics on the metrics processed by DogStatsD

Top 10 Metrices of Linux Servers

system.cpu.idle
system.cpu.iowait
system.cpu.num_cores
system.cpu.system
system.cpu.user
system.disk.free
system.disk.in_use
system.disk.total
system.disk.used
system.mem.total
system.mem.usable
system.mem.used

Steps to enable apache integration in DataDog

  1. Install datadog-agent in the host.
  2. Install Apache in the host and configure variables.
  3. Click on “Install Integration” in apache tile on integration tab
  4. Enable mod_status & ExtendedStatus in Apache
  5. Enable Datadog Apache Integration configuration to start collecting your Apache metrics.
  6. Verify the Apache Metrics on Datadog Console

Top 10 Metrices of Windows Servers

system.cpu.idle
system.cpu.system
system.cpu.user
system.disk.free
system.disk.total
system.disk.used
system.disk.write_time
system.mem.free
system.mem.total
system.mem.usable
system.mem.used

Top 5 Metrices of Apache

apache.net.bytes_per_s
apache.net.request_per_s
apache.performance.cpu_load
apache.performance.idle_workers
apache.performance.max_workers

Top comments (0)