<commit_before>---
title: Guide to Tagging
kind: guide
listorder: 12
---

## Overview
Tagging is used throughout the Datadog product to make it easier to subset and query the machines and metrics that you have to monitor. Without the ability to assign and filter based on tags, finding the problems that exist in your environment and narrowing them down enough to discover the true causes would be extremely difficult.

## How to assign tags
There are four primary ways to assign tags: inherited from the integration, in the configuration, in the UI, and using the API, though the UI and API only allow you to assign tags at the host level. The recommended method is to rely on the integration or via the configuration files.

### Inheriting tags from an integration

The easiest method for assigning tags is to rely on the integration. Tags assigned to your Amazon Web Services instances, Chef recipes, Docker labels, and more are all automatically assigned to the hosts and metrics when they are brought in to Datadog.

The following integration sources create tags automatically in Datadog:

| Amazon Web Services | Region, Account, Hostname,  Org ID,  AZ, Kernel, Image, Instance Type, Security Group,   Tags assigned in console or via AWS tools |
| AWS SQS | Queue Name |
| Apache | Apache Host and Port |
| Azure | Tenant Name, Status, Tags, Subscription ID and Name |
| BTRFS | Usage & Replication Type |
| Chef | Chef Roles |
| Consul | Previous and Current Consul Leaders and Followers, Consul Datacenter,  Service Name, Service ID |
| CouchDB | Database Name,  Instance Name |
| CouchBase | CouchBase Tags,  Instance Name |
| Docker | Docker Container and Image Name, Container Command, Container Labels |
| Dyn | Zone, Record Type |
| Elasticsearch | Host Name, Port Number  |
| Etcd | State Leader or Follower |
| Fluentd | Host Name, Port Number |
| Google App Engine | Project Name, Version ID, Task Queue |
| Google Cloud Platform | Zone, Instance Type and ID, Automatic Restart, Project Name and ID, Name |
| Go Expvar | Expvar Path |
| Gunicorn | State Idle or Working, App Name |<commit_msg>add the common az tag for azure, gcp<commit_after>---
title: Guide to Tagging
kind: guide
listorder: 12
---

## Overview
Tagging is used throughout the Datadog product to make it easier to subset and query the machines and metrics that you have to monitor. Without the ability to assign and filter based on tags, finding the problems that exist in your environment and narrowing them down enough to discover the true causes would be extremely difficult.

## How to assign tags
There are four primary ways to assign tags: inherited from the integration, in the configuration, in the UI, and using the API, though the UI and API only allow you to assign tags at the host level. The recommended method is to rely on the integration or via the configuration files.

### Inheriting tags from an integration

The easiest method for assigning tags is to rely on the integration. Tags assigned to your Amazon Web Services instances, Chef recipes, Docker labels, and more are all automatically assigned to the hosts and metrics when they are brought in to Datadog.

The following integration sources create tags automatically in Datadog:

| Amazon Web Services | Region, Account, Hostname,  Org ID,  AZ, Kernel, Image, Instance Type, Security Group,   Tags assigned in console or via AWS tools |
| AWS SQS | Queue Name |
| Apache | Apache Host and Port |
| Azure | Tenant Name, Status, Tags, Subscription ID and Name, Availability Zone in common with AWS tag after contacting Datadog support |
| BTRFS | Usage & Replication Type |
| Chef | Chef Roles |
| Consul | Previous and Current Consul Leaders and Followers, Consul Datacenter,  Service Name, Service ID |
| CouchDB | Database Name,  Instance Name |
| CouchBase | CouchBase Tags,  Instance Name |
| Docker | Docker Container and Image Name, Container Command, Container Labels |
| Dyn | Zone, Record Type |
| Elasticsearch | Host Name, Port Number  |
| Etcd | State Leader or Follower |
| Fluentd | Host Name, Port Number |
| Google App Engine | Project Name, Version ID, Task Queue |
| Google Cloud Platform | Zone, Instance Type and ID, Automatic Restart, Project Name and ID, Name, Availability Zone in common with AWS tag after contacting Datadog support |
| Go Expvar | Expvar Path |
| Gunicorn | State Idle or Working, App Name |
{'fraction_non_alphanumeric': 0.05488499202915054, 'fraction_numerical': 0.0009109542245502164, 'mean_word_length': 4.330097087378641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1042042', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1084, 'n_words': 655}