For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/api/latest/metrics/list-tag-indexing-rule-exemptions.md. A documentation index is available at /llms.txt.
Language
Datadog site

List tag indexing rule exemptions

WARNINGNote: The Tag Indexing Rules feature is currently in Preview. If you have any feedback, contact Datadog support.
GEThttps://api.datadoghq.com/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.us3.datadoghq.com/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.us5.datadoghq.com/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.datadoghq.eu/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.ap1.datadoghq.com/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.ap2.datadoghq.com/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.uk1.datadoghq.com/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.ddog-gov.com/api/v2/metrics/list-tag-indexing-rule-exemptionshttps://api.us2.ddog-gov.com/api/v2/metrics/list-tag-indexing-rule-exemptions

Overview

Returns explicit exemptions and legacy tag configurations that exclude metrics from tag indexing rules. You can filter results by metric name prefix, whether an exemption is safe to remove, or the UUID of a matching tag indexing rule. You can sort results by metric name or by estimated change in indexed volume.

This endpoint requires the metrics_read permission.

OAuth apps require the metrics_read authorization scope to access this endpoint.

Arguments

Query Strings

Name
Type
Description
filter[metric_prefix]
string

Filter exemptions to metrics whose names start with this literal prefix. Matching is case-sensitive. Wildcard characters are treated literally.

filter[safe]
boolean

Filter exemptions by whether they are safe to remove. An exemption is considered safe when a fresh, usable estimate indicates that removing it would not increase indexed volume and would not drop tags used to query the metric in monitors, dashboards, notebooks, or SLOs. Set to true to return safe-to-remove exemptions, or false to return all other exemptions, including those with unavailable or stale estimates.

filter[tag_indexing_rule_id]
string

Filter exemptions to metrics matched by the tag indexing rule with this UUID.

sort
enum

Sort field. Prefix the field with - for descending order. The default is estimated_change_in_volume in ascending order, with the largest reductions (most negative values) first.

Default: estimated_change_in_volume
Allowed enum values: name, -name, estimated_change_in_volume, -estimated_change_in_volume
page[size]
integer

Maximum number of results per page. Defaults to 10000; accepts values from 1 to 10000. If meta.pagination.next_cursor is non-null, request the next page by passing that value as page[cursor]. Continue until next_cursor is null.

Default: 10000
page[cursor]
string

Cursor for pagination. Use page[size] to opt-in to pagination and get the first page; for subsequent pages, use the value from meta.pagination.next_cursor in the response. Pagination is complete when next_cursor is null.

Response

OK

Response containing a page of tag indexing rule exemptions.

Field
Type
Description
data
[object]

Array of tag indexing rule exemption objects.

links
object

Pagination links. Only present if pagination query parameters were provided.

meta
object

Response metadata object.

Code Example

List tag indexing rule exemptions
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/metrics/list-tag-indexing-rule-exemptions" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"