hotfix: fix v2 influxql query examples

pull/5530/head^2
Scott Anderson 2024-07-23 13:56:16 -06:00 committed by GitHub
parent 3a4235c27d
commit e339cc0601
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ The [`influx` CLI](/influxdb/v2/reference/cli/influx/) provides an [InfluxQL she
3. Execute an InfluxQL query inside the InfluxQL shell.
```sql
SELECT used_percent FROM example-db.example-rp.example-measurement WHERE host=host1
SELECT used_percent FROM "example-db"."example-rp"."example-measurement" WHERE host=host1
```
For more information, see how to [use the InfluxQL shell](/influxdb/v2/tools/influxql-shell/). For more information about DBRP mappings, see [Manage DBRP mappings](/influxdb/v2/query-data/influxql/dbrp/).
@ -105,7 +105,7 @@ all InfluxDB 1.x client libraries and integrations in InfluxDB {{< current-versi
```sh
curl --get http://localhost:8086/query?db=example-db \
--header "Authorization: Token YourAuthToken" \
--data-urlencode "q=SELECT used_percent FROM example-db.example-rp.example-measurement WHERE host=host1"
--data-urlencode "q=SELECT used_percent FROM \"example-db\".\"example-rp\".\"example-measurement\" WHERE host=host1"
```
By default, the `/query` compatibility endpoint returns results in **JSON**.