Skip to content

datadog search-metrics

Search for metrics from the last 24 hours in Datadog

Description

Search for metrics from the last 24 hours in Datadog

Synopsis

datadog search-metrics
    [--site <site>]
    <query>

Arguments

site - (string)

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

query - (string)

     Query string to search metrics upon. Can optionally be prefixed with metrics
     Example: "query-1"
     Default: _None_      Attributes: required

Examples

Input:

!datadog search-metrics "datadog.agent.running"
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.