promql_query
Run real-time PromQL instant queries against VMware Aria Operations to retrieve current metrics within seconds, complementing historical data with near-real-time values for monitoring and troubleshooting.
Instructions
[READ] Run a real-time PromQL instant query (VCF Operations 9.1 VODAP service).
Use this for near-real-time (~2s) metrics via a Prometheus-compatible instant query, complementing the historical rollups from get_resource_metrics. Requires the real-time metrics (VODAP) integration to be registered; if it is not, the tool returns an actionable error. Returns result series (labels, timestamp, value) in the paginated envelope plus result_type/status. Gotcha: the query reaches a sibling service whose base path (/data-query-service) is INFERRED — every result carries base_path_confirmed=False until confirmed against a live appliance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Optional evaluation timestamp (RFC3339 or Unix seconds). | |
| limit | No | Max result series to return (default 50; None returns all). | |
| query | Yes | PromQL expression (required), e.g. "cpu_usage_average{}". | |
| target | No | Aria/VCF Operations target name from config; default when omitted. | |
| source_id | No | Optional data-source id to scope the query. |