arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.13048cs.DBcs.AIcs.SE
收藏

从自然语言到PromQL:一种基于目录的框架,具有动态时间分辨率的云原生可观测性

From Natural Language to PromQL: A Catalog-Driven Framework with Dynamic Temporal Resolution for Cloud-Native Observability

Twinkll Sisodia

AI总结:

本文提出一种基于目录的框架,通过将自然语言问题转换为可执行的PromQL查询,解决云原生平台中正确查询的难题,贡献包括混合度量目录、多阶段查询管道和动态时间分辨率机制。

摘要:

现代云原生平台通过如Prometheus等系统暴露数千个时间序列指标,但使用领域特定语言如PromQL正确查询仍然是平台工程师和站点可靠性团队的重大障碍。我们提出了一种基于目录的框架,将自然语言问题转换为可执行的PromQL查询,弥合了人类意图与可观测性数据之间的差距。我们的方法引入了三个贡献:(1) 一个混合度量目录,结合静态整理的约2000个指标和运行时发现的跨GPU供应商的硬件特定信号;(2) 一个多阶段查询管道,包含意图分类、类别感知的指标路由和多维语义评分;(3) 一个动态时间分辨率机制,解释多样化的自然语言时间表达并映射到适当的PromQL持续时间语法。我们通过将框架与Model Context Protocol (MCP) 集成,实现跨多个供应商的工具增强型LLM交互。基于目录的方法通过预计算的类别索引实现亚秒级指标发现,完整流程通过目录路径完成约1.1秒。该系统已部署在生产Kubernetes集群中,管理AI推理工作负载,支持跨约2000个指标的自然语言查询,涵盖集群健康、GPU利用率和模型服务性能。

英文摘要:

Modern cloud-native platforms expose thousands of time series metrics through systems like Prometheus, yet formulating correct queries in domain-specific languages such as PromQL remains a significant barrier for platform engineers and site reliability teams. We present a catalog-driven framework that translates natural language questions into executable PromQL queries, bridging the gap between human intent and observability data. Our approach introduces three contributions: (1) a hybrid metrics catalog that combines a statically curated base of approximately 2,000 metrics with runtime discovery of hardware-specific signals across GPU vendors, (2) a multi-stage query pipeline with intent classification, category-aware metric routing, and multi-dimensional semantic scoring, and (3) a dynamic temporal resolution mechanism that interprets diverse natural language time expressions and maps them to appropriate PromQL duration syntax. We integrate the framework with the Model Context Protocol (MCP) to enable tool-augmented LLM interactions across multiple providers. The catalog-driven approach achieves sub-second metric discovery through pre-computed category indices, with the full pipeline completing in approximately 1.1 seconds via the catalog path. The system has been deployed on production Kubernetes clusters managing AI inference workloads, where it supports natural language querying across approximately 2,000 metrics spanning cluster health, GPU utilization, and model-serving performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑