Debug School

Pooja v
Pooja v

Posted on

Assignment - 17th 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
Collector collects host infra data.
DogstatsD collects application metrics on code level.
Both the above collected data will be transferred to forwarder using TCP protocol.
Forwarder send data to DataDog SAAS using http protocol.
For Apache, the metrices will be saved separately which in-turn was fetched by DataDog agent.
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

Install datadog-agent in the host.
Install Apache in the host and configure variables.
Click on “Install Integration” in apache tile on integration tab
Enable mod_status & ExtendedStatus in Apache
Enable Datadog Apache Integration configuration to start collecting your Apache metrics.
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)