Skip to content

Commit

Permalink
docs: update some docs about grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
paomian committed Oct 10, 2023
1 parent 25a0345 commit 5e26346
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/db-cloud-shared/clients/grafana-integration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
GreptimeDB can be configured as a [Grafana data source](https://grafana.com/docs/grafana/latest/datasources/add-a-data-source/).

There are two general deployment methods of GreptimeDB. GreptimeCloud and self-hosted GreptimeDB. Only GreptimeCloud requires authentication information. The self-hosted GreptimeDB does not support authentication. So when you use your self-hosted GreptimeDB you can ignore filling in the authentication information.

## Prometheus

Click the Add data source button and select Prometheus as the type.
Expand Down
5 changes: 2 additions & 3 deletions docs/faq-and-others/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ GreptimeDB implements PromQL operator pushdown in our latest distributed version

Yes, It's compatible with Grafana.

GreptimeDB supports MySQL and PostgreSQL protocol, so you can use [MySQL or PG grafana
plugin](https://grafana.com/docs/grafana/latest/datasources/mysql/) to config GreptimeDB as a datasource. Then you can use SQL to query the data.
GreptimeDB supports MySQL,PostgreSQL and Prometheus protocol, so you can use [MySQL](https://grafana.com/docs/grafana/latest/datasources/mysql/), [PG](https://grafana.com/docs/grafana/latest/datasources/postgres/) and [Prometheus](https://grafana.com/docs/grafana/latest/datasources/prometheus/) grafana plugin to config GreptimeDB as a datasource. Then you can use SQL or PromQL to query the data.

Also, we are implementing PromQL natively which is frequently used with Grafana.
We are implementing PromQL natively which is frequently used with Grafana. Currently PromQL is not 100% compatible with Prometheus.

## How does this compare to Loki? Is there a crate with Rust bindings available, preferably as tracing or logging subscriber?

Expand Down
4 changes: 3 additions & 1 deletion docs/zh/db-cloud-shared/clients/grafana-integration.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@

GreptimeDB 服务可以配置为 [Grafana 数据源](https://grafana.com/docs/grafana/latest/datasources/add-a-data-source/)

GreptimeDB 一般有两种部署方法。GreptimeCloud 和自托管 GreptimeDB。只有 GreptimeCloud 需要认证信息。自托管 GreptimeDB 不支持身份验证。因此,当您使用自托管 GreptimeDB 时,可以忽略填写验证信息。

## Prometheus

单击 Add data source 按钮,然后选择 Prometheus 作为类型。

在 HTTP 中填写 Prometheus server URL

- GreptimeCloud 请填写 `https://<host>/v1/prometheus?db=<dbname>`
- Self-host GreptimeDB 请填写自己的地址,例如:`http://localhost:4000/v1/prometheus?db=<dbname>`
- 自托管 GreptimeDB 请填写自己的地址,例如:`http://localhost:4000/v1/prometheus?db=<dbname>`

在 Auth 部分中单击 basic auth,并在 Basic Auth Details 中填写 GreptimeDB 的用户名和密码:

Expand Down

0 comments on commit 5e26346

Please sign in to comment.