Agent Flashcards

1
Q

Is the Datadog Agent open source?

A

The Datadog Agent is open source and its source code is available on GitHub at DataDog/datadog-agent.

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

Agent v6 and v7 are composed of a main process responsible for collecting infrastructure metrics, logs, and receiving DogStatsD metrics. What are the main components to this process?

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

What are two optional processes that are spawned by the Agent if enabled in the datadog.yaml configuration file?

A
  • The APM Agent is a process to collect traces (enabled by default).
  • The Process Agent is a process to collect live process information. By default, it only collects available containers, otherwise it is disabled.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the three main services (processes) of the Datadog agent on Windows?

A

1) DatadogAgent
2) datadog-trace-agent
3) datadog-process-agent

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

By default the Agent binds 3 ports on Linux and 4 on Windows and OSX; what are they ports and their function?

A

1) 5000: Exposes runtime metrics about the Agent.
2) 5001: Used by the Agent CLI and GUI to send commands and pull information from the running Agent.
3) 5002: Serves the GUI server on Windows and OSX.
4) 8125: Used for the DogStatsD server to receive external metrics.

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

How often does the Datadog collector gather all standard metrics?

A

Every 15 seconds

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

How does the Datadog agent forwarder send metrics to Datadog securely?

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
8
Q

How does the Datadog agent forwarder send metrics to Datadog without affecting metric reporting?

A

Buffering prevents network splits from affecting metric reporting. Metrics are buffered in memory until a limit in size or number of outstanding send requests are reached. Afterwards, the oldest metrics are discarded to keep the forwarder’s memory footprint manageable.

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

How does the Datadog agent forwarder send logs to Datadog securely?

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
10
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
11
Q

How can you modify what port the Datadog Agent runs on?

A

You can configure the port on which the GUI runs in the datadog.yaml file.

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

How do you disable the Datadog agent GUI?

A

To disable the GUI, set the port’s value to -1.

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

What operating systems enable the Datadog agent GUI?

A

Windows and macOSWindows and macOS

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

Is the Datadog agent enabled on Windows by default?

A

Yes

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

Is the Datadog Agent enabled on macOS by default?

A

Yes

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

Is the Datadog Agent enabled on Linux by default?

A

No

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

Is the Datadog Agent supported on 32-bit Windows?

A

No

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

Are cookies required to be enabled in your browser to use the Datadog Agent GUI?

A

Yes, the GUI generates and saves a token in your browser which is used for authenticating all communications with the GUI server.

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

What is a quick and easy way to confirm you have the correct permissions to start the Datadog Agent GUI?

A

If you are able to open datadog.yaml, you are able to use the GUI.

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

What is the only network interface that can be used to access the Datadog Agent GUI?

A

For security reasons, the GUI can only be accessed from the local network interface (localhost/127.0.0.1), therefore you must be on the same host that the Agent is running. That is, you can’t run the Agent on a VM or a container and access it from the host machine.

21
Q

What is the syntax for running a Agent CLI subcommand?

A

<AGENT_BIN_PATH> <SUB_COMMAND> <OPTIONS>
</OPTIONS></SUB_COMMAND></AGENT_BIN_PATH>

22
Q

What is the subcommand to run a specified check?

A

check

23
Q

What is the subcommand to print all configurations loaded & resolved of a running Agent?

A

configcheck

24
Q

What is the subcommand to execute connectivity diagnosis on your system?

A

diagnose

25
Q

What is the subcommand to collect a flare and send it to datadog?

A

flare

26
Q

What is the subcommand to print the current agent health?

A

health

27
Q

What is the subcommand to get help about any command?

A

help

28
Q

What is the subcommand to print the hostname used by the agent?

A

hostname

29
Q

What is the subcommand to import and convert configuration files from previous versions of the agent?

A

import

30
Q

What is the subcommand to start the datadog agent gui?

A

launch-gui

31
Q

What is the subcommand to import the registry settings into datadog.yaml?

A

regimport

32
Q

What is the subcommand to restart the agent?

A

restart

33
Q

What is the subcommand to restart the agent within the service control manager?

A

restart-service

34
Q

What is the subcommand to start the agent?

A

start

35
Q

What is the subcommand to start the agent within the service control manager?

A

start-service

36
Q

What is the subcommand to print the current agent status?

A

status

37
Q

What is the subcommand to stream the logs being processed by a running agent?

A

stream-logs

38
Q

What is the subcommand to stop the agent?

A

stop

39
Q

What is the subcommand to stop the agent within the service control manager?

A

stopservice

40
Q

What is the subcommand to print version info?

A

version

41
Q

What is the CPU consumption of the Datadog Agent with no additional integrations?

A

~ 0.08% of the CPU used on average

42
Q

What is the memory consumption of the Datadog Agent with no additional integrations?

A

~ 130MB of RAM used (RSS memory)

43
Q

What is the network consumption of the Datadog Agent with no additional integrations?

A

~ 140 B/s ▼ | 800 B/s ▲

44
Q

What is the disk consumption of the Datadog Agent with no additional integrations on Linux?

A

Linux 830MB to 880MB depending on the distribution

45
Q

What is the disk consumption of the Datadog Agent with no additional integrations on Windows?

A

870MB

46
Q

What is the CPU consumption of the Datadog Agent when log collection is enabled at the default level (level 6)?

A

~ 1.5% of the CPU used on average

47
Q

What is the memory consumption of the Datadog Agent when log collection is enabled at the default level (level 6)?

A

~ 95MB of RAM used

48
Q

What is the network consumption of the Datadog Agent when log collection is enabled at the default level (level 6)?

A

Network bandwidth: ~ 14 KB/s ▲

49
Q

How do you manually update the Datadog Agent core between two minor versions on a given host?

A

Run the corresponding install command for your platform.