Skip to main content
axiom.queryMetrics runs MPL against an OpenTelemetry metrics dataset and returns Axiom’s metrics-v2 response. Discover metric names and tags first; the time window defaults to the previous 30 minutes.
automations/axiom-query-metrics.automation.ts

Inputs

Output

Returns Axiom’s metrics-v2 result as a JSON object. Its keys and series shape depend on the MPL query.

Permission and failures

The API token needs the dataset-level query|read capability for every metrics dataset referenced by the MPL query. Axiom rejects invalid MPL, inaccessible datasets, and invalid time windows. Request-rate limits return 429, while exhausted query-cost limits return 430. Automate.ax uses Axiom’s reset timing when available.