Tags Flashcards

1
Q

What does Datadog use to observe aggregate data points?

A

Tags

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

What are the reserved tags in Datadog?

A

host: Correlation between metrics, traces, processes, and logs.
device: Segregation of metrics, traces, processes, and logs by device or disk.
source: Span filtering and automated pipeline creation for Log Management.
service: Scoping of application specific data across metrics, traces, and logs.
env: Scoping of application specific data across metrics, traces, and logs.
version: Scoping of application specific data across metrics, traces, and logs.

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

What level does Datadog recommend looking at containers, VMs, and cloud infrastructure (what tag is used)?

A

service

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

Are tags required to start with a letter?

A

Yes, tags must start with a letter

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

A tag must start with a letter but after that may contain what type of characters (there are 6)?

A
  • Alphanumerics
  • Underscores
  • Minuses
  • Colons
  • Periods
  • Slashes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the max number of characters for a tag?

A

200 characters

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

Are tags converted to lowercase?

A

Yes, tags are converted to lowercase

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

What will infinitely increase the number of metrics for your organization and impact your billing when tagging?

A

Originating tags from unbounded sources, such as epoch timestamps, user IDs, or request IDs

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

What are the 4 methods for assigning tags?

A

Configuration Files: Manually in your main Agent or integration configuration files.
UI: In the Datadog site.
API: When using Datadog’s API.
DogStatsD: When submitting metrics with DogStatsD.

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

What tag does the agent automatically assign in a non-containerized environment?

A

The host tag

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

What allows the Datadog Agent automatically identifies which services are running on this new container, looks for corresponding monitoring configuration, and starts to collect metrics?

A

Autodiscovery

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

What happens to tagging in a containerized environment when Autodiscovery is not in use?

A

The Agent automatically assigns the host tag and inherits tags from integrations the same as within a non-containerized environments.

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

How long does the hostname remain in the Datadog UI if you modify it with tags set on the agent configuration?

A

2 hours

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

How do you graph metrics using an old and new hostname?

A

Use arithmetic between two metrics

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

What is the most efficient method for assigning tags?

A

Rely on integration inheritance. eg. Tags you assign to your AWS instances, Chef recipes, and other integrations are automatically inherited by hosts and metrics you send to Datadog.

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

What does Datadog do to CamelCase tags?

A

Converts them to underscores. eg. TestTag –> test_tag

17
Q

How can you set your host tags after installing the containerized Datadog Agent?

A

Using the environment variable DD_TAGS in your Agents main configuration file

18
Q

Datadog automatically collects common tags from Docker, Kubernetes, ECS, Swarm, Mesos, Nomad, and Rancher. What options extract even more tags (there are 5)?

A

DD_CONTAINER_LABELS_AS_TAGS: Extract container labels. This env is equivalent to the old DD_DOCKER_LABELS_AS_TAGS env.
DD_CONTAINER_ENV_AS_TAGS: Extract container environment variables. This env is equivalent to the old DD_DOCKER_ENV_AS_TAGS env.
DD_KUBERNETES_POD_LABELS_AS_TAGS: Extract pod labels
DD_CHECKS_TAG_CARDINALITY: Add tags to check metrics (low, orchestrator, high)
DD_DOGSTATSD_TAG_CARDINALITY: Add tags to custom metrics (low, orchestrator, high)

19
Q

Can you use wildcards in the format when using DD_KUBERNETES_POD_LABELS_AS_TAGS?

A

Yes

20
Q

hat do you need to do when using the DD_CONTAINER_LABELS_AS_TAGS variable within a Docker Swarm docker-compose.yaml file?

A

Remove the apostrophes

21
Q

Where should you place labels if the container needs to be labeled outside of the docker-compose.yaml file?

A

Place the labels: keyword inside the services: section not inside the deploy: section

22
Q

When is the only time you should place the labels: keyword inside the deploy: section?

A

Only when the service needs to be labeled. The Datadog Agent does not have any labels to extract from the containers without this placement.

23
Q

What are the two environment variables that set tag cardinality?

A

DD_CHECKS_TAG_CARDINALITY
DD_DOGSTATSD_TAG_CARDINALITY

24
Q

Why is the DD_DOGSTATSD_TAG_CARDINALITY setting separated for finer configuration than the DD_CHECKS_TAG_CARDINALITY?

A

DogStatsD is priced differently

25
Q

What are the values for the DD_CHECKS_TAG_CARDINALITY and DD_DOGSTATSD_TAG_CARDINALITY variables and what is their default?

A

Low, orchestrator, or high. They both default to low, which pulls in host-level tags.

26
Q

What does setting the DD_DOGSTATSD_TAG_CARDINALITY variable to orchestrator do for ECS and Fargate?

A

Adds the task_arn tag