Agent Flashcards
What’s the DD agent?
It’s a software that runs on your hosts.
It collects events and metrics from hosts and sends them to Datadog, where you can analyze your monitoring and performance data.
Do you need to install the full agent?
It is recommended to fully install the Agent.
However, a standalone DogStatsD package is available for Amazon Linux, CentOS, Debian, Fedora, Red Hat, SUSE, and Ubuntu.
This package is used in containerized environments where DogStatsD runs as a sidecar or environments running a DogStatsD server without full Agent functionality.
What are agent v6 and v7 composed of?
They are composed of a main process responsible for collecting infrastructure metrics, logs, and receiving DogStatsD metrics.
The main components to this process are:
- The Collector is in charge of running checks and collecting metrics.
- The Forwarder sends payloads to Datadog.
The collector gathers metrics every x seconds?
The collector gathers all standard metrics every 15 seconds.
Agent v6 embeds a Python 2.7 interpreter to run integrations and custom checks.
What does the agent forwarder do?
The Agent forwarder send metrics over HTTPS to Datadog.
With the forwarder, how are logs sent to DD?
Logs are sent over an SSL-encrypted TCP connection to Datadog.
What is DogStatsD?
In v6, DogStatsD is a Golang implementation of Etsy’s StatsD metric aggregation daemon.
It is used to receive and roll up arbitrary metrics over UDP or Unix socket, thus allowing custom code to be instrumented without adding latency.
With Agent v6+, what is the command line interface (CLI) based on?
With Agent v6+, the command line interface is based on subcommands. To run a subcommand, first invoke the Agent binary:
What system checks does the IOT agent include?
- System (includes CPU, IO, load, memory, swap, and uptime)
- Disk
- Network
- Systemd
- NTP
The IoT Agent also supports:
- Custom metric collection using an embedded DogStatsD server
- Log collection using tailing files, TCP/UDP, and journald
What doesn’t the IOT agent include/support?
The IoT Agent does not include the Python interpreter and other integrations pre-packaged with the standard Agent.
It also doesn’t support tracing for APM, live process monitoring, or network performance monitoring.
IOT Agent footprint?
CPU: 0.5% (on a VM with 2 Intel Xeon VCPUs)
Memory: 36 MB
Network bandwidth: 237 bps up / 79 bps down
Disk: 63 MB
DD Agent overhead?
Agent Test version: 7.34.0
CPU: ~ 0.08% of the CPU used on average
Memory: ~ 130MB of RAM used (RSS memory)
Network bandwidth: ~ 140 B/s ▼ | 800 B/s ▲
Disk:
Linux 830MB to 880MB depending on the distribution
Windows: 870MB
Which version of the agent is required for logs?
v6.0+.
In K8s how do you enable log collection?
Setting DD_CONTAINER_EXCLUDE_LOGS prevents the Datadog Agent from collecting and sending its own logs. Remove this parameter if you want to collect the Datadog Agent logs.
In Docker how do you enable log collection?
Datadog Agent 6+ collects logs from containers. Two types of installation are available:
Configuring log collection depends on your current environment.