Optional requestFactory: MetricsApiRequestFactoryOptional responseProcessor: MetricsApiResponseProcessorPrivate configurationPrivate requestPrivate responseThe request object
Optional options: ConfigurationCreate and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric.
Optionally, include percentile aggregations on any distribution metric. By setting exclude_tags_mode
to true, the behavior is changed from an allow-list to a deny-list, and tags in the defined list are
not queryable. Can only be used with application keys of users with the Manage Tags for Metrics
permission.
The request object
Optional options: ConfigurationCreate a tag indexing rule for the org. rule_order is assigned server-side as max+1
among existing rules; use the reorder endpoint to change the evaluation order.
Requires the Manage Tags for Metrics permission.
The request object
Optional options: ConfigurationExempt a metric from all tag indexing rules. The response includes the created
exemption resource. Requires the Manage Tags for Metrics permission.
The request object
Optional options: ConfigurationNote: This endpoint is deprecated. Use Tag Indexing Rules (POST /api/v2/metrics/tag-indexing-rules) instead.
Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics.
Metrics are selected by passing a metric name prefix.
Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app.
Can only be used with application keys of users with the Manage Tags for Metrics permission.
The request object
Optional options: ConfigurationDeletes a metric's tag configuration. Can only be used with application
keys from users with the Manage Tags for Metrics permission.
Note: This operation is irreversible.
The request object
Optional options: ConfigurationSoft-delete a tag indexing rule. Idempotent: returns 204 whether the rule existed or was already deleted.
Remaining rules in the org are automatically re-sequenced to keep rule_order dense and 1-based.
Requires the Manage Tags for Metrics permission.
The request object
Optional options: ConfigurationRemove a metric's exemption from tag indexing rules. Idempotent: returns 204 whether or not
an exemption existed. Any associated legacy tag configuration record is also removed.
Requires the Manage Tags for Metrics permission.
The request object
Optional options: ConfigurationReturns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.
The request object
Optional options: ConfigurationReturns the cardinality details of tags for a specific metric.
The request object
Optional options: ConfigurationGet a single tag indexing rule by its UUID.
The request object
Optional options: ConfigurationReturns why a metric is excluded from tag indexing rules.
Returns 200 with kind=exemption when an explicit exemption exists, 200 with
kind=legacy_tag_configuration when the metric has a legacy tag configuration acting as an
implicit exclusion, or 404 when neither applies.
The request object
Optional options: ConfigurationList tags and aggregations that are actively queried on dashboards, notebooks, monitors, the Metrics Explorer, and using the API for a given metric name.
The request object
Optional options: ConfigurationReturns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours.
The request object
Optional options: ConfigurationReturns the tag configuration for the given metric name.
The request object
Optional options: ConfigurationGet a list of actively reporting metrics for your organization. Pagination is optional using the page[cursor] and page[size] query parameters.
Query parameters use bracket notation (for example, filter[tags], filter[queried][window][seconds]). Pass them as standard URL query strings, URL-encoding the brackets if your client does not handle them. For example: GET /api/v2/metrics?filter[tags]=env:prod&window[seconds]=86400&page[size]=500.
The request object
Optional options: ConfigurationProvide a paginated version of listTagConfigurations returning a generator with all the items.
Optional options: ConfigurationList tag indexing rules for an org, sorted by rule_order, with offset/limit pagination.
The request object
Optional options: ConfigurationList the tag indexing rules that apply to a given metric, sorted by rule_order.
Matching is performed server-side using each rule's metric_name_matches glob patterns.
The request object
Optional options: ConfigurationView indexed and ingested tags for a given metric name.
Results are filtered by the window[seconds] parameter, which defaults to 14400 (4 hours).
The request object
Optional options: ConfigurationView hourly average cardinality for the given metric name over the look back period. For Metric Name Pricing customers, view total point volume for the given metric name over the look back period.
The request object
Optional options: ConfigurationQuery scalar values (as seen on Query Value, Table, and Toplist widgets). Multiple data sources are supported with the ability to process the data using formulas and functions.
The request object
Optional options: ConfigurationQuery timeseries data across various data sources and process the data by applying formulas and functions.
The request object
Optional options: ConfigurationAtomically re-sequence the tag indexing rules for an org to match the supplied list of rule UUIDs.
The server assigns rule_order 1, 2, … matching each rule UUID by position in the list.
Requires the Manage Tags for Metrics permission.
The request object
Optional options: ConfigurationThe metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. The maximum payload size is 500 kilobytes (512000 bytes). Compressed payloads must have a decompressed size of less than 5 megabytes (5242880 bytes).
If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect:
Host name is one of the resources in the Resources field.
The request object
Optional options: ConfigurationUpdate the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations
of a count, rate, or gauge metric. By setting exclude_tags_mode to true the behavior is changed
from an allow-list to a deny-list, and tags in the defined list will not be queryable.
Can only be used with application keys from users with the Manage Tags for Metrics permission. This endpoint requires
a tag configuration to be created first.
The request object
Optional options: ConfigurationPartially update a tag indexing rule. Fields omitted from the request body are left unchanged.
Setting rule_order to a value already used by another rule returns 409; use the
reorder endpoint for atomic re-sequencing. Requires the Manage Tags for Metrics permission.
The request object
Optional options: ConfigurationGenerated using TypeDoc
Note: This endpoint is deprecated. Use Tag Indexing Rules (
POST /api/v2/metrics/tag-indexing-rules) instead.Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not expect deterministic ordering of concurrent calls. The
exclude_tags_modevalue will set all metrics that match the prefix to the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric. Can only be used with application keys of users with theManage Tags for Metricspermission.