Skip to main content
Glama

get_metrics

Query Datadog metrics by specifying a metric name with optional filters, aggregations, and time ranges to monitor system performance and analyze data trends.

Instructions

Execute metric queries on Datadog. Specify the metric name and optional filters/aggregations to build and execute the query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metric_nameYesThe metric name to query (e.g., 'aws.apigateway.count', 'system.cpu.user', 'trace.servlet.request.hits')
time_rangeNoTime range to look back1h
aggregationNoMetric aggregation methodavg
filtersNoFilters to apply to the metric query (e.g., {'service': 'web', 'env': 'prod', 'region': 'us-east-1'})
aggregation_byNoFields to group/aggregate the metric by (e.g., ['service'], ['region', 'env'], ['aws_account']). Use get_metric_fields tool to see available fields.
formatNoOutput formattable

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shelfio/datadog-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server