Tags Flashcards
What does Datadog use to observe aggregate data points?
Tags
What are the reserved tags in Datadog?
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.
What level does Datadog recommend looking at containers, VMs, and cloud infrastructure (what tag is used)?
service
Are tags required to start with a letter?
Yes, tags must start with a letter
A tag must start with a letter but after that may contain what type of characters (there are 6)?
- Alphanumerics
- Underscores
- Minuses
- Colons
- Periods
- Slashes
What is the max number of characters for a tag?
200 characters
Are tags converted to lowercase?
Yes, tags are converted to lowercase
What will infinitely increase the number of metrics for your organization and impact your billing when tagging?
Originating tags from unbounded sources, such as epoch timestamps, user IDs, or request IDs
What are the 4 methods for assigning tags?
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.
What tag does the agent automatically assign in a non-containerized environment?
The host tag
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?
Autodiscovery
What happens to tagging in a containerized environment when Autodiscovery is not in use?
The Agent automatically assigns the host tag and inherits tags from integrations the same as within a non-containerized environments.
How long does the hostname remain in the Datadog UI if you modify it with tags set on the agent configuration?
2 hours
How do you graph metrics using an old and new hostname?
Use arithmetic between two metrics
What is the most efficient method for assigning tags?
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.
What does Datadog do to CamelCase tags?
Converts them to underscores. eg. TestTag –> test_tag
How can you set your host tags after installing the containerized Datadog Agent?
Using the environment variable DD_TAGS in your Agents main configuration file
Datadog automatically collects common tags from Docker, Kubernetes, ECS, Swarm, Mesos, Nomad, and Rancher. What options extract even more tags (there are 5)?
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)
Can you use wildcards in the format when using DD_KUBERNETES_POD_LABELS_AS_TAGS?
Yes
hat do you need to do when using the DD_CONTAINER_LABELS_AS_TAGS variable within a Docker Swarm docker-compose.yaml file?
Remove the apostrophes
Where should you place labels if the container needs to be labeled outside of the docker-compose.yaml file?
Place the labels: keyword inside the services: section not inside the deploy: section
When is the only time you should place the labels: keyword inside the deploy: section?
Only when the service needs to be labeled. The Datadog Agent does not have any labels to extract from the containers without this placement.
What are the two environment variables that set tag cardinality?
DD_CHECKS_TAG_CARDINALITY
DD_DOGSTATSD_TAG_CARDINALITY
Why is the DD_DOGSTATSD_TAG_CARDINALITY setting separated for finer configuration than the DD_CHECKS_TAG_CARDINALITY?
DogStatsD is priced differently
What are the values for the DD_CHECKS_TAG_CARDINALITY and DD_DOGSTATSD_TAG_CARDINALITY variables and what is their default?
Low, orchestrator, or high. They both default to low, which pulls in host-level tags.
What does setting the DD_DOGSTATSD_TAG_CARDINALITY variable to orchestrator do for ECS and Fargate?
Adds the task_arn tag