datadog list-tags-config-metric
Returns the tag configuration for the given metric name
Description
Returns the tag configuration for the given metric name
Synopsis
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
metric_name
- (string)
Name of the metric
Example: "metric_name-1"
Default: _None_
Attributes: required
all_tags
- (bool)
when true show indexed tag key-value pairs else returns the tag configuration for the metric
Example: --all_tags
Default: false
Attributes: optional
Examples
Input:
!datadog list-tags-config-metric --metric_name "datadog.dogstatsd.client.aggregated_context" --all_tags
ID TYPE TAGS
datadog.dogstatsd.client.aggregated_context metrics client:go, client_transport:udp, client_version:5.1.1, version:7.41.1
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "read" |
Service Type | "datadog" |
Service Instance | |
Namespace | |
Object Type | "tags" |
Object ID | metric_name |
Please see Access Control for details.