promql_query
Run a real-time PromQL instant query against VMware Aria Operations to fetch current metric values. Retrieve near-real-time metrics with labels and timestamps for monitoring and alerting.
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.
Args: query: PromQL expression (required), e.g. "cpu_usage_average{}". time: Optional evaluation timestamp (RFC3339 or Unix seconds). source_id: Optional data-source id to scope the query. limit: Max result series to return (default 50; None returns all). target: Aria/VCF Operations target name from config; default when omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | ||
| limit | No | ||
| query | Yes | ||
| target | No | ||
| source_id | No |