提交 4d2c2ee1 编写于 作者: L Li Ya Qiang

update the docs in zh

上级 07fa2820
...@@ -22,7 +22,7 @@ Please refer to [Start Prometheus](https://docs.tdengine.com/cloud/data-in/prome ...@@ -22,7 +22,7 @@ Please refer to [Start Prometheus](https://docs.tdengine.com/cloud/data-in/prome
## Verify Remote Read ## Verify Remote Read
Lets retrieve some metrics from TDengine Cloud via prometheus web server. Browse to <http://localhost:9090/graph> and use the "Graph" tab. Lets retrieve some metrics from TDengine Cloud via prometheus web server. Browse to <http://localhost:9090/graph> and use the "Graph" tab.
Enter the following expression to graph the per-second rate of chunks being created in the self-scraped Prometheus: Enter the following expression to graph the per-second rate of chunks being created in the self-scraped Prometheus:
......
--- ---
sidebar_label: Prometheus sidebar_label: Prometheus
title: Prometheus remote read title: Prometheus 远程读取
description: Prometheus remote_read from TDengine cloud server description: Prometheus 从 TDengine Cloud 远程读取
--- ---
Prometheus is a widespread open-source monitoring and alerting system. Prometheus joined the Cloud Native Computing Foundation (CNCF) in 2016 as the second incubated project after Kubernetes, which has a very active developer and user community. Prometheus 是一款流行的开源监控告警系统。Prometheus 于2016年加入了 Cloud Native Computing Foundation (云原生云计算基金会,简称 CNCF),成为继 Kubernetes 之后的第二个托管项目,该项目拥有非常活跃的开发人员和用户社区。
Prometheus provides `remote_read` interface to leverage other database products as its storage engine. To enable users of the Prometheus ecosystem to take advantage of TDengine's efficient querying, TDengine also provides support for this interface so that data stored in TDengine can be queried via the `remote_read` interface, taking full advantage of TDengine's efficient query performance and clustering capabilities for time-series data. Prometheus 提供了 `remote_write``remote_read` 接口来利用其它数据库产品作为它的存储引擎。为了让 Prometheus 生态圈的用户能够利用 TDengine 的高效写入和查询,TDengine 也提供了对这两个接口的支持。
## Install Prometheus 通过适当的配置, Prometheus 的数据可以通过 `remote_write` 接口存储到 TDengine 中,也可以通过 `remote_read` 接口来查询存储在 TDengine 中的数据,充分利用 TDengine 对时序数据的高效存储查询性能和集群处理能力。
Please refer to [Install Prometheus](https://docs.taosdata.com/cloud/data-in/prometheus#install-prometheus). ## 安装 Prometheus
## Configure Prometheus 请参考 [安装 Prometheus](https://docs.taosdata.com/cloud/data-in/prometheus#install-prometheus).
Please refer to [Configure Prometheus](https://docs.taosdata.com/cloud/prometheus/#configure-prometheus). ## 配置 Prometheus
## Start Prometheus 请参考 [配置 Prometheus](https://docs.taosdata.com/cloud/prometheus/#configure-prometheus).
Please refer to [Start Prometheus](https://docs.taosdata.com/cloud/data-in/prometheus/#start-prometheus). ## 开始 Prometheus
## Verify Remote Read 请参考 [开始 Prometheus](https://docs.taosdata.com/cloud/data-in/prometheus/#start-prometheus).
Lets retrieve some metrics from TDengine Cloud via prometheus web server. Browse to <http://localhost:9090/graph> and use the "Graph" tab. ## 验证远程读取
Enter the following expression to graph the per-second rate of chunks being created in the self-scraped Prometheus: 通过 Prometheus 服务器可以获取 TDengine Cloud 上面的多个指标。请在浏览器打开 <http://localhost:9090/graph> 并点击 “Graph” 标签页。
输入下面的表达式来画出 Prometheus 每秒在创建数据块数量的趋势图:
``` ```
rate(prometheus_tsdb_head_chunks_created_total[1m]) rate(prometheus_tsdb_head_chunks_created_total[1m])
......
...@@ -4,4 +4,4 @@ title: 数据输出 ...@@ -4,4 +4,4 @@ title: 数据输出
description: TDengine Cloud 的多种数据输出方式。 description: TDengine Cloud 的多种数据输出方式。
--- ---
This chapter introduces how to get data out of TDengine cloud service. Besides normal query using SQL, users can use [data subscripition](../data-subscription) which is provided by TDengine cloud service to do data subscription and share the data stored in TDengine to others. TDengine provides [connectors](../programming/connector) for application programmers to access the data stored in TDengine. TDengine also provides some tools, like [taosdump](../tools/taosdump), which is a tool provided by TDengine to dump the data stored in TDengine cloud service into files, and `taosX`, which is another tool to sync up the data in one TDengine cloud service into another. Furthermore, 3rd party tools, like prometheus, can also be used to write data into TDengine. 本章主要介绍如何从 TDengine Cloud 中输出数据。除了使用平常的 SQL 查询,用户还可以使用 TDengine Cloud 提供的[数据订阅](.../data-subscription)来进行数据订阅,并将存储在 TDengine 的数据分享给其他人。TDengine 还提供了[连接器](.../programming/connector)让开发者可以方便得通过应用程序访问存储在 TDengine 的数据。TDengine还提供了一些工具,如[taosdump](.../tools/taosdump),它用于将存储在 TDengine Cloud 中的数据转储为文件,还有另外一个工具 `taosX`,用于将一个 TDengine Cloud 中的数据同步到另一个。此外,也可以通过第三方工具,如Prometheus,将数据写入 TDengine 中。
\ No newline at end of file
...@@ -34,7 +34,7 @@ export TDENGINE_CLOUD_DSN="<DSN>" ...@@ -34,7 +34,7 @@ export TDENGINE_CLOUD_DSN="<DSN>"
<!-- exclude --> <!-- exclude -->
:::note :::note
获取真实的 `DSN` 的值,请登录[TDengine Cloud](https://cloud.taosdata.com) 后点击左边的”工具“菜单,然后选择”taosdump“。 获取真实的 `DSN` 的值,请登录[TDengine Cloud](https://cloud.taosdata.com) 后点击左边的”数据输出“菜单,然后选择”taosdump“。
::: :::
<!-- exclude-end --> <!-- exclude-end -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册