Agent Flashcards

1
Q

What’s the DD agent?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Do you need to install the full agent?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are agent v6 and v7 composed of?

A

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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The collector gathers metrics every x seconds?

A

The collector gathers all standard metrics every 15 seconds.
Agent v6 embeds a Python 2.7 interpreter to run integrations and custom checks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the agent forwarder do?

A

The Agent forwarder send metrics over HTTPS to Datadog.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

With the forwarder, how are logs sent to DD?

A

Logs are sent over an SSL-encrypted TCP connection to Datadog.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is DogStatsD?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

With Agent v6+, what is the command line interface (CLI) based on?

A

With Agent v6+, the command line interface is based on subcommands. To run a subcommand, first invoke the Agent binary:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What system checks does the IOT agent include?

A
  • 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What doesn’t the IOT agent include/support?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

IOT Agent footprint?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

DD Agent overhead?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which version of the agent is required for logs?

A

v6.0+.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In K8s how do you enable log collection?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In Docker how do you enable log collection?

A

Datadog Agent 6+ collects logs from containers. Two types of installation are available:

Configuring log collection depends on your current environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In DD agent how do you enable log collection?

A

To enable log collection with an Agent running on your host, change logs_enabled: false to logs_enabled: true in the Agent’s main configuration file (datadog.yaml).

17
Q

Can you collect custom logs with DD agent?

A

Datadog Agent v6 can collect logs and forward them to Datadog from files, the network (TCP or UDP), journald, and Windows channel

18
Q

How can you scrub sensitive data from your logs?

A

If your logs contain sensitive information that need redacting, configure the Datadog Agent to scrub sensitive sequences by using the log_processing_rules parameter in your configuration file with the mask_sequences type.

19
Q

What is the default transport for logs?

A

For Agent v6.19+/v7.19+, the default transport used for your logs is compressed HTTPS instead of TCP for the previous versions.

20
Q

Changes between major agent versions

A

Agent v7 is the latest major version of the Datadog Agent.
The only change from Agent v6 is that this version only includes support for Python 3 for integrations and custom checks.