Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Mar 29, 2023
1 parent 5271c3d commit c19c8f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
8 changes: 5 additions & 3 deletions docs/src/cn/ecosystem/influxdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ demo,tag1=t11,tag2=t22 field1=91,field2=101 1679994648000

Post 的内容采用的是 [InfluxDB line protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_reference/) 格式。

> 注意:暂时不支持诸如 `precision` `db` 查询参数
`measurement` 将映射到 CeresDB 中的一个表,在首次写入时 server 会自动进行建表。

例如,在上面插入数据时,CeresDB 中将创建下表:
Expand All @@ -42,6 +40,10 @@ CREATE TABLE `demo` (
timestamp KEY (timestamp))
```

## 注意事项

- 暂时不支持诸如 `precision``db` 等查询参数

# 查询

```sh
Expand Down Expand Up @@ -72,7 +74,7 @@ CREATE TABLE `demo` (
}
```

注意事项
## 注意事项

1. 暂时不支持诸如 `epoch`, `db` 等的查询参数
2. 暂时不支持聚合查询,将在下一个版本中支持
12 changes: 7 additions & 5 deletions docs/src/en/ecosystem/influxdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CeresDB support [InfluxDB v1.8](https://docs.influxdata.com/influxdb/v1.8/tools/
default_timestamp_column_name = "time"
```

## Write
# Write

```shell
curl -i -XPOST "http://localhost:5440/influxdb/v1/write" --data-binary '
Expand All @@ -24,8 +24,6 @@ demo,tag1=t11,tag2=t22 field1=91,field2=101 1679994648000

Post payload is in [InfluxDB line protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_reference/) format.

> Note: Query string parameters such as `precision`, `db` aren't supported.
Measurement will be mapped to table in CeresDB, and it will be created automatically in first write.

For example, when inserting data above, table below will be automatically created in CeresDB:
Expand All @@ -42,7 +40,11 @@ CREATE TABLE `demo` (
timestamp KEY (timestamp))
```

## Query
## Note

- Query string parameters such as `precision`, `db` aren't supported.

# Query

```shell
curl -G 'http://localhost:5440/influxdb/v1/query' --data-urlencode 'q=SELECT * FROM "demo"'
Expand Down Expand Up @@ -72,7 +74,7 @@ Query result is same with InfluxDB:
}
```

Note:
## Note

1. Query string parameters such as `epoch`, `db`, `pretty` aren't supported.
2. We don't support aggregator/group by now, will support those in next release.
21 changes: 0 additions & 21 deletions docs/src/resources/a.sh

This file was deleted.

0 comments on commit c19c8f8

Please sign in to comment.