hotfix: minor updates to dedicated and serveriless optimize writes

pull/4985/head^2
Scott Anderson 2023-06-21 10:06:12 -06:00
parent 7246eb647b
commit 4df36bacc9
2 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,7 @@ Use these tips to optimize performance and system overhead when writing data to
{{% note %}} {{% note %}}
The following tools write to InfluxDB and employ _most_ write optimizations by default: The following tools write to InfluxDB and employ _most_ write optimizations by default:
- [`influx` CLI](/influxdb/cloud-serverless/reference/cli/influx/write/)
- [Telegraf](/influxdb/cloud-serverless/write-data/use-telegraf/) - [Telegraf](/influxdb/cloud-serverless/write-data/use-telegraf/)
- [InfluxDB client libraries](/influxdb/cloud-serverless/reference/client-libraries/) - [InfluxDB client libraries](/influxdb/cloud-serverless/reference/client-libraries/)
{{% /note %}} {{% /note %}}
@ -101,9 +102,11 @@ For specific instructions, see the
When using the InfluxDB API `/api/v2/write` endpoint to write data, When using the InfluxDB API `/api/v2/write` endpoint to write data,
compress the data with `gzip` and set the `Content-Encoding` header to `gzip`. compress the data with `gzip` and set the `Content-Encoding` header to `gzip`.
{{% code-callout "Content-Encoding: gzip" "orange" %}}
```sh ```sh
{{% get-shared-text "/api/cloud-serverless/write-compressed.sh" %}} {{% get-shared-text "/api/cloud-serverless/write-compressed.sh" %}}
``` ```
{{% /code-callout %}}
{{% /tab-content %}} {{% /tab-content %}}
{{< /tabs-wrapper >}} {{< /tabs-wrapper >}}

View File

@ -1,5 +1,5 @@
curl --request POST "http://cloud2.influxdata.com/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \ curl --request POST "http://cloud2.influxdata.com/api/v2/write?org=ORG_NAME&bucket=BUCKET_NAME&precision=s" \
--header "Authorization: Token YOURAUTHTOKEN" \ --header "Authorization: Token API_TOKEN" \
--header "Content-Encoding: gzip" \ --header "Content-Encoding: gzip" \
--data-raw " --data-raw "
mem,host=host1 used_percent=23.43234543 1556896326 mem,host=host1 used_percent=23.43234543 1556896326