Datadog/metrics
Datadog Metrics — metric queries, submissions, tag configurations, and metadata
2026.11.06.1
Added: list_tag_configurations gains two optional filter arguments —
filter_metrics_id (map to filter[metrics.id], match a metric name with
optional * wildcard) and filter_historical_metrics (map to
filter[historical_metrics], restrict to metrics with historical ingestion
enabled).
Changed: list_tag_configurations description and its tag_configurations
resource description now read "List all metrics with volumes and query activity"
(previously "Get a list of metrics"). The filter_metric_type argument
description now notes that omitting it returns metrics of all types.
Upgrade note: Additive only — the new filter arguments are optional and no resource schema changed, so stored data continues to validate. No migration required.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiKey | string | Datadog API key (DD-API-KEY). Wire it with ${{ vault.get("datadog", "API_KEY") }}; never pass the literal value. |
| appKey | string | Datadog application key (DD-APPLICATION-KEY). Wire it with ${{ vault.get("datadog", "APP_KEY") }}; never pass the literal value. |
| site? | enum | Datadog site |
| Argument | Type | Description |
|---|---|---|
| filter_configured? | boolean | Only return custom metrics that have been configured (`true`) or not configur... |
| filter_is_configurable? | boolean | Only return metrics that are eligible (`true`) or ineligible (`false`) for co... |
| filter_tags_configured? | string | Only return metrics that have the given tag key(s) in their Metrics Without L... |
| filter_metric_type? | string | Only return metrics of the given metric type. If omitted, metrics of all type... |
| filter_include_percentiles? | boolean | |
| filter_queried? | boolean | Only return metrics that have been queried (true) or not queried (false) in t... |
| filter_queried_window_seconds? | number | The look-back window for `filter[queried]`, in seconds. You must also set `fi... |
| filter_tags? | string | Only return metrics that were submitted with tags matching this expression. Y... |
| filter_related_assets? | boolean | Only return metrics that are used in at least one dashboard, monitor, noteboo... |
| filter_metrics_id? | string | Only return metrics whose name matches this value. A value without `*` matche... |
| filter_historical_metrics? | boolean | Only return metrics that have historical metrics ingestion enabled (`true`) o... |
| include? | string | Include related resources in the response. Set to `metric_volumes` to include... |
| sort? | string | Sort results by metric volume. Prefix a key with `-` for descending order. Su... |
| window_seconds? | number | Only return metrics that have been actively reporting in this window. The def... |
| Argument | Type | Description |
|---|---|---|
| definition | unknown |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| definition | unknown |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| Argument | Type | Description |
|---|---|---|
| search? | string | Substring filter on rule name. |
| Argument | Type | Description |
|---|---|---|
| exclude_tags_mode? | boolean | When true, the rule excludes the listed tags and indexes all others. When fal... |
| ignored_metric_name_matches? | array | Metric name prefixes excluded from the rule's scope. |
| metric_name_matches | array | Metric name prefixes (glob patterns) this rule applies to. |
| name | string | Human-readable name for the rule. |
| options? | unknown | |
| tags? | array | Tag keys managed by this rule. |
| Argument | Type | Description |
|---|---|---|
| rule_ids? | array | Ordered list of tag indexing rule UUIDs. The server assigns rule_order 1, 2, ... |
| Argument | Type | Description |
|---|---|---|
| id | string | ID of the tag indexing rule. |
| Argument | Type | Description |
|---|---|---|
| id | string | ID of the tag indexing rule. |
| exclude_tags_mode? | boolean | When true, the rule excludes the listed tags and indexes all others. |
| ignored_metric_name_matches? | array | Metric name prefixes excluded from the rule's scope. |
| metric_name_matches? | array | Metric name prefixes (glob patterns) this rule applies to. |
| name? | string | Human-readable name for the rule. |
| options? | unknown | |
| rule_order? | number | Desired evaluation order. Returns 409 if the value conflicts with another rul... |
| tags? | array | Tag keys managed by this rule. |
| Argument | Type | Description |
|---|---|---|
| id | string | ID of the tag indexing rule. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| window_seconds? | number |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| window_seconds? | number | The number of seconds of look back (from now) to query for tag data. Default ... |
| filter_tags? | string | Filter results to tags from data points that have the specified tags. For exa... |
| filter_match? | string | Filter returned tags to those matching a substring. For example, `filter[matc... |
| filter_include_tag_values? | boolean | Whether to include tag values in the response. Defaults to true. |
| filter_allow_partial? | boolean | Whether to allow partial results. Defaults to false. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| filter_groups? | string | Comma-separated list of tag keys that the metric is configured to query with.... |
| filter_exclude_tags_mode? | boolean | When `true`, `filter[groups]` is treated as an exclude list instead of an inc... |
| filter_hours_ago? | number | The number of hours of look back (from now) to estimate cardinality with. If ... |
| filter_num_aggregations? | number | Deprecated. Number of aggregations has no impact on volume. |
| filter_pct? | boolean | Deprecated. This query parameter has no effect on the estimate. |
| filter_timespan_h? | number | A window, in hours, from the look back to estimate cardinality with. The mini... |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| aggregations? | unknown | |
| exclude_tags_mode? | boolean | When set to true, the configuration will exclude the configured tags and incl... |
| include_percentiles? | boolean | Toggle to include/exclude percentiles for a distribution metric. Defaults to ... |
| metric_type | unknown | |
| tags | array | A list of tag keys that will be queryable for your metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| aggregations? | unknown | |
| exclude_tags_mode? | boolean | When set to true, the configuration will exclude the configured tags and incl... |
| include_percentiles? | boolean | Toggle to include/exclude percentiles for a distribution metric. Defaults to ... |
| tags? | array | A list of tag keys that will be queryable for your metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| Argument | Type | Description |
|---|---|---|
| metric_name | string | The name of the metric. |
| window_seconds? | number |
| Argument | Type | Description |
|---|---|---|
| formulas? | array | List of formulas to be calculated and returned as responses. |
| from | number | Start date (inclusive) of the query in milliseconds since the Unix epoch. |
| queries | unknown | |
| to | number | End date (exclusive) of the query in milliseconds since the Unix epoch. |
| Argument | Type | Description |
|---|---|---|
| formulas? | array | List of formulas to be calculated and returned as responses. |
| from | number | Start date (inclusive) of the query in milliseconds since the Unix epoch. |
| interval? | number | A time interval in milliseconds. May be overridden by a larger interval if th... |
| queries | unknown | |
| to | number | End date (exclusive) of the query in milliseconds since the Unix epoch. |
| Argument | Type | Description |
|---|---|---|
| series | array | A list of timeseries to submit to Datadog. |
Resources
2026.11.05.4
Fixed: Path-scoped list methods (those that take a path parameter such as a
metric name, team, or rule ID) now key their stored resource instance on that
path parameter instead of the constant "main". Previously, calling such a
method for one scope and then another silently overwrote the first scope's
result under the shared "main" instance, and the stored resource carried no
indication of which scope it held. Each scope now writes its own instance.
Upgrade note: Any data earlier versions wrote under the "main" instance
for a path-scoped list remains there; new runs write under the scope-derived
name. Global (unscoped) lists are unchanged. No schema change — stored data
continues to validate.
2026.11.05.3
Fixed: reorder_tag_indexing_rules no longer writes an empty resource under
a constant "created" instance name. The endpoint returns 204 No Content, so
there is nothing to persist — the method now issues the reorder call and returns
no data handles, and the reorder_tag_indexing_rules resource spec is removed.
The request body is also sent in the correct JSON:API envelope
({data: {type: "tag_indexing_rules", attributes: {...}}}) the endpoint expects.
Upgrade note: reorder_tag_indexing_rules previously stored an empty
{} resource on every call; it now stores nothing. No other method is affected.
2026.11.05.1
Added: Regenerated from the current Datadog OpenAPI spec. New methods for
derived metrics (create_derived_metric, get_derived_metric,
update_derived_metric, delete_derived_metric) and tag indexing rules
(list_tag_indexing_rules, list_tag_indexing_rules_for_metric,
get_tag_indexing_rule, create_tag_indexing_rule, update_tag_indexing_rule,
delete_tag_indexing_rule, reorder_tag_indexing_rules), with matching
derived_metric, tag_indexing_rule, tag_indexing_rules, and
tag_indexing_rules_for_metric resources.
Upgrade note: Additive only — existing methods, arguments, and resource schemas are unchanged, so stored data continues to validate. No migration required.
2026.11.03.1
Changed: Bump zod 4.6.5 → 4.6.7
2026.10.21.1
Changed: The README now shows how to store the API key and application key
in a datadog vault and wire them with ${{ vault.get("datadog", "API_KEY") }}
and ${{ vault.get("datadog", "APP_KEY") }}. The previous example passed
DD_API_KEY and DD_APP_KEY as literal global arguments, which swamp rejects
for sensitive arguments.
Changed: The apiKey and appKey descriptions now say to supply them with
a vault.get expression. Both were already marked sensitive.
Upgrade note: Documentation and argument descriptions only. Methods, arguments, resource schemas and stored data are unchanged.
2026.11.03.1
Changed: Bump zod 4.6.5 → 4.6.7
2026.10.21.1
Changed: The README now shows how to store the API key and application key
in a datadog vault and wire them with ${{ vault.get("datadog", "API_KEY") }}
and ${{ vault.get("datadog", "APP_KEY") }}. The previous example passed
DD_API_KEY and DD_APP_KEY as literal global arguments, which swamp rejects
for sensitive arguments.
Changed: The apiKey and appKey descriptions now say to supply them with
a vault.get expression. Both were already marked sensitive.
Upgrade note: Documentation and argument descriptions only. Methods, arguments, resource schemas and stored data are unchanged.
2026.10.21.1
Changed: The README now shows how to store the API key and application key
in a datadog vault and wire them with ${{ vault.get("datadog", "API_KEY") }}
and ${{ vault.get("datadog", "APP_KEY") }}. The previous example passed
DD_API_KEY and DD_APP_KEY as literal global arguments, which swamp rejects
for sensitive arguments.
Changed: The apiKey and appKey descriptions now say to supply them with
a vault.get expression. Both were already marked sensitive.
Upgrade note: Documentation and argument descriptions only. Methods, arguments, resource schemas and stored data are unchanged.
2026.10.15.1
Changed: Generated tests now include one execution test per method, so every method is covered. Nothing behavioral changed in the model code, schemas or resources.
2026.10.14.1
Added: The manifest now declares license: Apache-2.0 (SPDX). The registry quality rubric scores a declared license separately from the bundled LICENSE.md.
Upgrade note: Metadata only. No code, schema, or behavioral changes.
2026.10.07.1
Fixed: The shared API helper no longer throws on a successful response with an empty body (such as 202 Accepted); it returns an empty result. Paginated list requests tolerate an empty page body the same way. A body that is not valid JSON now fails with an error naming the HTTP method, path, and status, with a snippet of the body.
Upgrade note: Only the shared helper changed. No methods, arguments, schemas, or resources changed, so no migration is needed and existing stored resources remain valid.
2026.09.18.1
Upgrade note: Normalized npm:zod dependency version to 4.6.5 across the
repo. No behavioral changes in this extension.
2026.09.15.1
Changed: Bump zod 4.4.3 → 4.6.5
2026.09.08.1
Added: Initial code-generated release of @webframp/datadog/metrics with 14 methods covering the Datadog metrics API surface.
2026.09.08.1
Added: Initial code-generated release of @webframp/datadog/metrics with 14 methods covering the Datadog metrics API surface.
2026.08.28.2
Hardened codegen: instance names sanitized against path traversal; string schema patterns emit regex validation; output schemas passthrough unknown fields.
updated labels
2026.08.28.1
Changed: Normalized the extension license to Apache-2.0 and corrected the copyright holder to "Sean Escriva". Extensions that previously shipped an MIT LICENSE.md are now Apache-2.0, consistent with the repository root and every other extension. No code or behavioral changes.
Upgrade note: License text only. No API, schema, or runtime behavior changed.
2026.08.26.2
Fixed: Restored inline npm:zod@4.4.3 import specifiers so the registry
quality scorer can resolve dependencies and score the extension. An earlier
release used a bare "zod" import-map specifier, which published but scored as
unscored.
Changed: Retained explicit compilerOptions.strict in deno.json. No
behavioral or schema changes.
2026.08.26.2
Fixed: Restored inline npm:zod@4.4.3 import specifiers so the registry
quality scorer can resolve dependencies and score the extension. An earlier
release used a bare "zod" import-map specifier, which published but scored as
unscored.
Changed: Retained explicit compilerOptions.strict in deno.json. No
behavioral or schema changes.
2026.08.25.1
Changed: Updated labels for improved extension discoverability. Added cross-cutting category labels (security, observability, finops, infrastructure, networking, compliance, devops, ai, incident-response) where applicable.
updated labels
2026.08.24.1
Added: Output metadata attributes for observability.
durationMs: Method execution duration in milliseconds.collectedBy: Extension name that produced the data.fetchedAt: ISO 8601 timestamp when data was fetched (added to resources that previously lacked it).
2026.08.21.2
Changed: Every Datadog API call made by this model (via the shared
_lib/api.ts helper) now names the HTTP method and path in its error
message, instead of a bare "Datadog API HTTP 500: ...". A failure now reads,
for example, Datadog API POST /api/v2/series failed with HTTP 500: ...
rather than just the status code and response body. Network-level failures
(DNS, connection reset, etc.) that previously surfaced as a raw TypeError
now also say which Datadog operation was being attempted.
submit_metrics now rejects an empty series array at validation time with
a clear "at least 1 element" error, instead of silently sending a no-op
request to the Datadog Metrics API.
No other changes to method arguments, resource schemas, or successful-call behavior.
2026.08.21.1
Changed: Schema-only tightening pass, no behavioral change.
- Added
.min(1)toapiKey/appKeyin the global arguments and to the requiredmetric_nameargument across all ten methods that use it as a path parameter, so empty identifiers are rejected before making an API call. - Added
.describe()to previously undocumented fields:id,relationships, andtypeon the metric-assets resource schema; theattributesandtypefields on the scalar/timeseries query response schemas; and theaggregations,metric_type, andqueriesarguments oncreate_tag_configuration,update_tag_configuration,query_scalar_data, andquery_timeseries_data.
2026.07.20.11
Added: Initial code-generated release of @webframp/datadog/metrics with 14 methods covering the Datadog metrics API surface.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned