# 从 Prometheus 迁移

> 介绍如何从 Prometheus 迁移到 GreptimeCloud，包括配置 Remote Write、使用 PromQL 查询数据以及在 Grafana 中添加数据源。

# 从 Prometheus 迁移

<DocTemplate>

有关 Prometheus 将数据写入 GreptimeDB 的配置信息，请参阅 [Remote Write](/greptimecloud/integrations/prometheus.md#remote-write) 文档。

有关使用 Prometheus 查询语言在 GreptimeDB 中查询数据的详细信息，请参阅 PromQL 文档中的 [HTTP API](/greptimecloud/integrations/prometheus.md#prometheus-http-api-与-promql) 部分。

要在 Grafana 中将 GreptimeDB 添加为 Prometheus 数据源，请参阅 [Grafana](/greptimecloud/integrations/grafana.md#prometheus-数据源) 的集成文档。

</DocTemplate>
