Skip to main content

metrics_output_series

Creates, updates, deletes, gets or lists a metrics_output_series resource.

Overview

Namemetrics_output_series
TypeResource
Iddatadog.metrics.metrics_output_series

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe metric name for this resource. (example: test.metric.latency)
attributesobjectObject containing the definition of a metric estimate attribute.
typestringThe metric estimate resource type. (default: metric_cardinality_estimate, example: metric_cardinality_estimate)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
estimate_metrics_output_seriesselectmetric_name, regionfilter[groups], filter[hours_ago], filter[num_aggregations], filter[pct], filter[timespan_h]Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
metric_namestringThe name of the metric. (example: dist.http.endpoint.request)
regionstring(default: datadoghq.com)
filter[groups]stringFiltered tag keys that the metric is configured to query with. (example: app,host)
filter[hours_ago]integer (int32)The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours. (example: 49)
filter[num_aggregations]integer (int32)Deprecated. Number of aggregations has no impact on volume. (example: 1)
filter[pct]booleanA boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators. (example: true)
filter[timespan_h]integer (int32)A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour. (example: 6)

SELECT examples

Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.

SELECT
id,
attributes,
type
FROM datadog.metrics.metrics_output_series
WHERE metric_name = '{{ metric_name }}' -- required
AND region = '{{ region }}' -- required
AND filter[groups] = '{{ filter[groups] }}'
AND filter[hours_ago] = '{{ filter[hours_ago] }}'
AND filter[num_aggregations] = '{{ filter[num_aggregations] }}'
AND filter[pct] = '{{ filter[pct] }}'
AND filter[timespan_h] = '{{ filter[timespan_h] }}'
;