query_otlp_metrics
Run PromQL range queries against OTLP metrics to retrieve time-series data. Specify query, start, end, and step to analyze metric trends.
Instructions
[PREVIEW] Run a PromQL range query against native OTLP metrics. Returns a time-series matrix
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Window end, unix epoch seconds | |
| step | No | Resolution step, e.g. '30s', '5m', '1h'; use larger steps for wider windows | |
| query | Yes | PromQL expression. Examples: container_memory_usage_bytes (raw series), avg(container_cpu_usage_seconds_total) (aggregate), rate(container_network_receive_bytes_total[5m]) (per-second rate), nginx_up{service_name="api"} (label matcher). Discover names and labels with get_otlp_metric_names / get_otlp_metric_labels | |
| start | Yes | Window start, unix epoch seconds. Keep windows under ~30 days; very wide windows fail in the metrics backend |