datadog list-metrics
Returns all metrics that can be configured in the Metrics Summary page
Description
Returns all metrics that can be configured in the Metrics Summary page
Synopsis
datadog list-metrics
[--site <site>]
[--configured]
[--tags_configured <tags_configured>]
[--metric_type <metric_type>]
[--include_percentiles]
[--queried]
[--tags <tags>]
[--seconds <seconds>]
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
configured
- (bool)
Filter custom metrics that have configured tags
Example: --configured
Default: _None_
Attributes: optional
tags_configured
- (string)
Filter tag configurations by configured tags
Example: --tags_configured "tags_configured-1"
Default: _None_
Attributes: optional
metric_type
- (string)
Filter metrics by metric type
Example: --metric_type "metric_type-1"
Default: _None_
Attributes: optional
Validation:
allowed values: gauge, count, rate, distribution
include_percentiles
- (bool)
Filter distributions with additional percentile aggregations enabled or disabled
Example: --include_percentiles
Default: _None_
Attributes: optional
queried
- (bool)
Filter custom metrics that have or have not been queried in the seconds else 2 hours will be applied
Example: --queried
Default: _None_
Attributes: optional
tags
- (string)
Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the queried filter
Example: --tags "tags-1"
Default: _None_
Attributes: optional
seconds
- (duration)
The number of seconds from now to apply to a tag or queried query
Example: --seconds "5 seconds"
Default: _None_
Attributes: optional
Examples
Input:
Output:Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "read" |
Service Type | "datadog" |
Service Instance | |
Namespace | |
Object Type | "metric" |
Object ID |
Please see Access Control for details.