Skip to content

datadog get-active-metrics

Get the list of actively reporting metrics from a given time until now

Description

Get the list of actively reporting metrics from a given time until now

Synopsis

datadog get-active-metrics
    [--site <site>]
    --from <from>
    [--host <host>]
    [--tag_filter <tag_filter>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

from - (string)

     Seconds since the Unix epoch
     Example: --from "from-1"
     Default: _None_      Attributes: required

host - (string)

     Hostname for filtering the list of metrics returned
     Example: --host "host-1"
     Default: _None_      Attributes: optional

tag_filter - (string)

     Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters
     Example: --tag_filter "tag_filter-1"
     Default: _None_      Attributes: optional

Examples

Input:

!datadog get-active-metrics --from "1670577826"
Output:
METRICS
datadog.agent.python.version
datadog.agent.running
datadog.agent.started
datadog.dogstatsd.client.aggregated_context
datadog.dogstatsd.client.aggregated_context_by_type
datadog.dogstatsd.client.bytes_dropped
datadog.dogstatsd.client.bytes_dropped_queue
datadog.dogstatsd.client.bytes_dropped_writer
datadog.dogstatsd.client.bytes_sent
datadog.dogstatsd.client.events

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.