Prometheus 中的远程读取是什么意思?

What does remote read means in Prometheus?

我们想使用 VictoriaMetric 作为从 Prometheus 收集的时间序列数据的存储数据库。但是据说 in the doc 这种集成只支持写模式,不支持读模式。

  1. 是否意味着prometheus将仅用作时间序列数据的收集器而读取该数据的PromQL将不可用?
  2. 如果我们指定远程写配置,Prometheus 是否会停止将收集的数据存储在文件系统中,只使用远程存储?或者收集的数据仍然可以从文件系统中获得,我们可以从 Prometheus 收集实时数据,如果我们需要历史长期数据,我们必须查询数据库本身?

Does it mean that prometheus will only be used as a collector of time-series data and the PromQL to read that data won't be available?

VictoriaMetrics supports PromQL and Prometheus querying API, so it can be used as drop-in replacement for Prometheus when querying via Grafana. See these docs 了解更多详情。

Single-node VictoriaMetrics 可能会抓取以 Prometheus 文本说明格式公开指标的目标 - 有关详细信息,请参阅 these docs

Does Prometheus will stop to store collected data in filesystem and only use remote storage if we specify remote write configuration? Or the collected data will still be available from the filesystem and we can collect real-time data from Prometheus and if we need historic long-term data we have to query the DB itself?

Prometheus 根据配置的保留时间继续将收集到的数据存储在本地存储中,同时将数据复制到远程存储。这样无论是原始的Prometheus还是远程存储都可以随时查询。