instant_query
Run a PromQL query at a chosen timestamp to fetch Prometheus metrics, with clear truncation indicators for partial results.
Instructions
[READ] Evaluate a PromQL expression at a single instant.
Args: query: A PromQL expression (e.g. 'up' or 'rate(http_requests_total[5m])'). time: Optional RFC-3339 or unix timestamp for the evaluation instant. target: Prometheus target name from config; omit for the default.
Returns an envelope with returned/limit/truncated. If
truncated is true the result is partial — narrow the selector or raise
the limit rather than treating it as complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | ||
| query | Yes | ||
| target | No |