forked from influxdata/docs-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: v3 compressed examples, gzip capitalization (influxdata#5142)
- Loading branch information
1 parent
d1aac04
commit 067d53c
Showing
6 changed files
with
67 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
curl --request POST "https://cluster-id.influxdb.io/api/v2/write" \ | ||
--header "Authorization: Token DATABASE_TOKEN" \ | ||
--header "Content-Encoding: gzip" \ | ||
--data-urlencode "org=ignored" \ | ||
--data-urlencode "bucket=DATABASE_NAME" \ | ||
--data-urlencode "precision=s" \ | ||
--data-raw " | ||
mem,host=host1 used_percent=23.43234543 1641024000 | ||
echo "mem,host=host1 used_percent=23.43234543 1641024000 | ||
mem,host=host2 used_percent=26.81522361 1641027600 | ||
mem,host=host1 used_percent=22.52984738 1641031200 | ||
mem,host=host2 used_percent=27.18294630 1641034800 | ||
" | ||
mem,host=host2 used_percent=27.18294630 1641034800" | gzip > system.gzip \ | ||
|
||
curl --request POST "https://cluster-id.influxdb.io/api/v2/write" \ | ||
--header "Authorization: Token API_TOKEN" \ | ||
--header "Content-Type: text/plain; charset=utf-8" \ | ||
--header "Content-Encoding: gzip" \ | ||
--data-binary @system.gzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
curl --request POST "http://cloud2.influxdata.com/api/v2/write?org=ORG_NAME&bucket=BUCKET_NAME&precision=s" \ | ||
--header "Authorization: Token API_TOKEN" \ | ||
--header "Content-Encoding: gzip" \ | ||
--data-raw " | ||
mem,host=host1 used_percent=23.43234543 1641024000 | ||
echo "mem,host=host1 used_percent=23.43234543 1641024000 | ||
mem,host=host2 used_percent=26.81522361 1641027600 | ||
mem,host=host1 used_percent=22.52984738 1641031200 | ||
mem,host=host2 used_percent=27.18294630 1641034800 | ||
" | ||
mem,host=host2 used_percent=27.18294630 1641034800" | gzip > system.gzip \ | ||
|
||
curl --request POST "https://cloud2.influxdata.com/api/v2/write?org=ORG_NAME&bucket=BUCKET_NAME&precision=s" \ | ||
--header "Authorization: Token API_TOKEN" \ | ||
--header "Content-Type: text/plain; charset=utf-8" \ | ||
--header "Content-Encoding: gzip" \ | ||
--data-binary @system.gzip |