tags
Creates, updates, deletes, gets or lists a tags
resource.
Overview
Name | tags |
Type | Resource |
Id | datadog.metrics.tags |
Fields
The following fields are returned by SELECT
queries:
- list_tags_by_metric_name
Name | Datatype | Description |
---|---|---|
id | string | The metric name for this resource. (example: test.metric.latency) |
attributes | object | Object containing the definition of a metric's tags. |
type | string | The metric resource type. (default: metrics, example: metrics) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_tags_by_metric_name | select | metric_name , region | View indexed tag key-value pairs for a given metric name over the previous hour. |
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.
Name | Datatype | Description |
---|---|---|
metric_name | string | The name of the metric. (example: dist.http.endpoint.request) |
region | string | (default: datadoghq.com) |
SELECT
examples
- list_tags_by_metric_name
View indexed tag key-value pairs for a given metric name over the previous hour.
SELECT
id,
attributes,
type
FROM datadog.metrics.tags
WHERE metric_name = '{{ metric_name }}' -- required
AND region = '{{ region }}' -- required
;