运行 没有 运行 服务器的 Prometheus 查询

Run a Prometheus query without running the server

我配置了 Prometheus 来监控我们系统的某些部分。有一个数据文件夹,(我认为)所有样本都存储在其中。

我 运行 Prometheus 服务器并在需要分析旧数据时使用 REST API 执行查询。

有什么方法可以 运行 查询(例如使用命令行)而无需 运行 连接 Prometheus 服务器本身?

不,您需要运行 Prometheus 服务器来执行查询。请确保您已设置较长的保留时间,以免旧数据被删除。