-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: migrate from Prometheus (#1273)
- Loading branch information
Showing
8 changed files
with
175 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
GreptimeDB can be used to store time series data for [Prometheus](https://prometheus.io/). | ||
Additionally, GreptimeDB supports the Prometheus query language via its HTTP API. | ||
This allows for an easy migration of your Prometheus long-term storage to GreptimeDB. | ||
|
||
## Data model in difference | ||
|
||
To understand the differences between the data models of Prometheus and GreptimeDB, please refer to the [Data Model](/user-guide/ingest-data/for-observerbility/prometheus.md#data-model) in the Ingest Data documentation. | ||
|
||
## Prometheus Remote Write | ||
|
||
<InjectContent id="remote-write" content={props.children}/> | ||
|
||
## Prometheus HTTP API and PromQL | ||
|
||
GreptimeDB supports the Prometheus query language (PromQL) via its HTTP API. | ||
<InjectContent id="promql" content={props.children}/> | ||
|
||
## Visualize data using Grafana | ||
|
||
For developers accustomed to using Grafana for visualizing Prometheus data, | ||
you can continue to use the same Grafana dashboards to visualize data stored in GreptimeDB. | ||
<InjectContent id="grafana" content={props.children}/> | ||
|
||
|
||
## Reference | ||
|
||
For tutorials and user stories on integrating GreptimeDB with Prometheus, please refer to the following blog posts: | ||
|
||
- [Setting Up GreptimeDB for Long-Term Prometheus Storage](https://greptime.com/blogs/2024-08-09-prometheus-backend-tutorial) | ||
- [Scale Prometheus - Deploying GreptimeDB Cluster as Long-Term Storage for Prometheus in K8s](https://greptime.com/blogs/2024-10-07-scale-prometheus) | ||
- [User Story — Why We Switched from Thanos to GreptimeDB for Prometheus Long-Term Storage](https://greptime.com/blogs/2024-10-16-thanos-migration-to-greptimedb) |
26 changes: 26 additions & 0 deletions
26
docs/greptimecloud/migrate-to-greptimecloud/migrate-from-prometheus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import DocTemplate from '../../db-cloud-shared/migrate/_migrate-from-prometheus.md' | ||
|
||
# Migrate from Prometheus | ||
|
||
<DocTemplate> | ||
|
||
<div id="remote-write"> | ||
|
||
For information on configuring Prometheus to write data to GreptimeDB, please refer to the [remote write](/greptimecloud/integrations/prometheus.md#prometheus-remote-write) documentation. | ||
|
||
</div> | ||
|
||
<div id="promql"> | ||
|
||
For detailed information on querying data in GreptimeDB using Prometheus query language, please refer to the [HTTP API](/greptimecloud/integrations/prometheus.md#prometheus-http-api-and-promql) section in the PromQL documentation. | ||
|
||
</div> | ||
|
||
<div id="grafana"> | ||
|
||
To add GreptimeDB as a Prometheus data source in Grafana, please refer to the [Grafana](/greptimecloud/integrations/grafana.md#prometheus-data-source) documentation. | ||
|
||
</div> | ||
|
||
</DocTemplate> | ||
|
26 changes: 26 additions & 0 deletions
26
docs/user-guide/migrate-to-greptimedb/migrate-from-prometheus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import DocTemplate from '../../db-cloud-shared/migrate/_migrate-from-prometheus.md' | ||
|
||
# Migrate from Prometheus | ||
|
||
<DocTemplate> | ||
|
||
<div id="remote-write"> | ||
|
||
For information on configuring Prometheus to write data to GreptimeDB, please refer to the [remote write](/user-guide/ingest-data/for-observerbility/prometheus.md#remote-write-configuration) documentation. | ||
|
||
</div> | ||
|
||
<div id="promql"> | ||
|
||
For detailed information on querying data in GreptimeDB using Prometheus query language, please refer to the [HTTP API](/user-guide/query-data/promql.md#prometheus-http-api) section in the PromQL documentation. | ||
|
||
</div> | ||
|
||
<div id="grafana"> | ||
|
||
To add GreptimeDB as a Prometheus data source in Grafana, please refer to the [Grafana](/user-guide/integrations/grafana.md#prometheus-data-source) documentation. | ||
|
||
</div> | ||
|
||
</DocTemplate> | ||
|
30 changes: 30 additions & 0 deletions
30
...plugin-content-docs/current/db-cloud-shared/migrate/_migrate-from-prometheus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
GreptimeDB 可以用来存储 [Prometheus](https://prometheus.io/) 的时间序列数据。 | ||
此外,GreptimeDB 通过其 HTTP API 支持 Prometheus 查询语言。 | ||
这可以使你轻松将 Prometheus 的 long-term storage 切换到 GreptimeDB。 | ||
|
||
## 数据模型的区别 | ||
|
||
要了解 Prometheus 和 GreptimeDB 数据模型之间的差异,请参阅 Ingest Data 文档中的[数据模型](/user-guide/ingest-data/for-observerbility/prometheus.md#data-model)部分。 | ||
|
||
## Prometheus Remote Write | ||
|
||
<InjectContent id="remote-write" content={props.children}/> | ||
|
||
## Prometheus HTTP API 与 PromQL | ||
|
||
GreptimeDB 通过其 HTTP API 支持 Prometheus 查询语言 (PromQL)。 | ||
<InjectContent id="promql" content={props.children}/> | ||
|
||
## 使用 Grafana 可视化数据 | ||
|
||
对于习惯使用 Grafana 可视化 Prometheus 数据的开发人员,你可以继续使用相同的 Grafana 仪表板来可视化存储在 GreptimeDB 中的数据。 | ||
<InjectContent id="grafana" content={props.children}/> | ||
|
||
## 参考阅读 | ||
|
||
请参考以下博客文章查看 GreptimeDB 与 Prometheus 的集成教程及用户故事: | ||
|
||
- [如何配置 GreptimeDB 作为 Prometheus 的长期存储](https://greptime.com/blogs/2024-08-09-prometheus-backend-tutorial) | ||
- [Scale Prometheus: K8s 部署 GreptimeDB 集群作为 Prometheus 长期存储](https://greptime.com/blogs/2024-10-07-scale-prometheus) | ||
- [「用户故事」从 Thanos 到 GreptimeDB,我们实现了 Prometheus 高效长期存储](https://greptime.com/blogs/2024-10-16-thanos-migration-to-greptimedb) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...-docs/current/greptimecloud/migrate-to-greptimecloud/migrate-from-prometheus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import DocTemplate from '../../db-cloud-shared/migrate/_migrate-from-prometheus.md' | ||
|
||
# 从 Prometheus 迁移 | ||
|
||
<DocTemplate> | ||
|
||
<div id="remote-write"> | ||
|
||
有关 Prometheus 将数据写入 GreptimeDB 的配置信息,请参阅 [Remote Write](/greptimecloud/integrations/prometheus.md#remote-write) 文档。 | ||
|
||
</div> | ||
|
||
<div id="promql"> | ||
|
||
有关使用 Prometheus 查询语言在 GreptimeDB 中查询数据的详细信息,请参阅 PromQL 文档中的 [HTTP API](/greptimecloud/integrations/prometheus.md#prometheus-http-api-与-promql) 部分。 | ||
|
||
</div> | ||
|
||
<div id="grafana"> | ||
|
||
要在 Grafana 中将 GreptimeDB 添加为 Prometheus 数据源,请参阅 [Grafana](/greptimecloud/integrations/grafana.md#prometheus-数据源) 的集成文档。 | ||
|
||
</div> | ||
|
||
</DocTemplate> | ||
|
25 changes: 25 additions & 0 deletions
25
...ontent-docs/current/user-guide/migrate-to-greptimedb/migrate-from-prometheus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import DocTemplate from '../../db-cloud-shared/migrate/_migrate-from-prometheus.md' | ||
|
||
# 从 Prometheus 迁移 | ||
|
||
<DocTemplate> | ||
|
||
<div id="remote-write"> | ||
|
||
有关 Prometheus 将数据写入 GreptimeDB 的配置信息,请参阅 [Remote Write](/user-guide/ingest-data/for-observerbility/prometheus.md#配置-remote-write) 文档。 | ||
|
||
</div> | ||
|
||
<div id="promql"> | ||
|
||
有关使用 Prometheus 查询语言在 GreptimeDB 中查询数据的详细信息,请参阅 PromQL 文档中的 [HTTP API](/user-guide/query-data/promql.md#prometheus-的-http-api) 部分。 | ||
|
||
</div> | ||
|
||
<div id="grafana"> | ||
|
||
要在 Grafana 中将 GreptimeDB 添加为 Prometheus 数据源,请参阅 [Grafana](/user-guide/integrations/grafana#prometheus-数据源) 的集成文档。 | ||
|
||
</div> | ||
|
||
</DocTemplate> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters