---
title: Tag Control Processor
description: Learn how to use the Tag Control processor for metrics.
breadcrumbs: >-
  Docs > Observability Pipelines > Processors > Tag Control > Tag Control
  Processor
---

# Tag Control Processor

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site). ().
{% /alert %}

{% /callout %}

## Overview{% #overview %}

Use this processor to include or exclude specific tags in your metrics. Tags that are excluded or not included are dropped and may reduce your outbound metrics tag volume.

The following tags can't be dropped because they provide specific platform functionality:

- `host`
- `service`
- `ddsource`
- `function_arn`
- `datadog_`
- `_dd.*`

## Setup{% #setup %}

To set up the processor:

Click **Add tag rule**.

- If you haven't added any rules yet, enter the rule details as described in the Add a tag rule section to create a rule.
- If you have already added rules, you can:
  - Click on a rule in the table to edit or delete it.
  - Use the search bar to find a specific rule by rule query, tag rule type, or tags applied and then select the metric to edit or delete it.
  - Click **New Tag Rule** to add a rule.

### Add a tag rule{% #add-a-tag-rule %}

{% image
   source="https://datadog-docs.imgix.net/images/observability_pipelines/processors/tag_control_settings.e18ecdf87209bb0f165e7512083b99e8.png?auto=format"
   alt="The tag control settings panel" /%}

1. Define a filter query. Only matching metrics are processed by this processor, but all metrics continue to the next step in the pipeline. See [Search Syntax](https://docs.datadoghq.com/observability_pipelines/search_syntax/metrics/) for more information.
1. In the **Configure tags** section, choose whether to **Include tags** or **Exclude tags**.
1. Optionally, input a sample tags object to help you select the tags you want to include or exclude in the next step.
   - The supported input formats are `{"key1":"value1", "key2":"value2"}`.
   - See [Define Tags](https://docs.datadoghq.com/may/op-metrics-pipelines-components/getting_started/tagging/#define-tags) for more information about the `key:value` format.
1. If you provided a tag array in the previous step, select the tag keys you want to configure in the dropdown menu. You can also manually add tag keys.
   - Note: You can select up to 15 tags.
1. Click **Save**.
