Skip to content

datadog get-metric

Get metadata about a specific metric

Description

Get metadata about a specific metric

Synopsis

datadog get-metric
    [--site <site>]
    <metric_name>

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

Examples

Input:

!datadog get-metric --metric_name "datadog.agent.python.version"
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 metric_name

Please see Access Control for details.