Skip to content

Commit c36c2d7

Browse files
authored
Merge branch 'master' into monolith-db-table-limits
2 parents cf79dbe + be2c6ac commit c36c2d7

File tree

4 files changed

+94
-4
lines changed

4 files changed

+94
-4
lines changed

api-docs/influxdb3/core/v3/ref.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,22 @@ paths:
422422
summary: Write line protocol
423423
description: |
424424
Writes line protocol to the specified database.
425+
426+
This is the native InfluxDB 3 Core write endpoint that provides enhanced control
427+
over write behavior with advanced parameters for high-performance and fault-tolerant operations.
425428
426429
Use this endpoint to send data in [line protocol](/influxdb3/core/reference/syntax/line-protocol/) format to InfluxDB.
427430
Use query parameters to specify options for writing data.
431+
432+
#### Features
433+
434+
- **Partial writes**: Use `accept_partial=true` to allow partial success when some lines in a batch fail
435+
- **Asynchronous writes**: Use `no_sync=true` to skip waiting for WAL synchronization, allowing faster response times but sacrificing durability guarantees
436+
- **Flexible precision**: Automatic timestamp precision detection with `precision=auto` (default)
437+
438+
#### Related
439+
440+
- [Use the InfluxDB v3 write_lp API to write data](/influxdb3/core/write-data/http-api/v3-write-lp/)
428441
parameters:
429442
- $ref: '#/components/parameters/dbWriteParam'
430443
- $ref: '#/components/parameters/accept_partial'
@@ -469,6 +482,38 @@ paths:
469482
description: Request entity too large.
470483
'422':
471484
description: Unprocessable entity.
485+
x-codeSamples:
486+
- label: cURL - Basic write
487+
lang: Shell
488+
source: |
489+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors" \
490+
--header "Authorization: Bearer DATABASE_TOKEN" \
491+
--header "Content-Type: text/plain" \
492+
--data-raw "cpu,host=server01 usage=85.2 1638360000000000000"
493+
- label: cURL - Write with millisecond precision
494+
lang: Shell
495+
source: |
496+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors&precision=ms" \
497+
--header "Authorization: Bearer DATABASE_TOKEN" \
498+
--header "Content-Type: text/plain" \
499+
--data-raw "cpu,host=server01 usage=85.2 1638360000000"
500+
- label: cURL - Asynchronous write with partial acceptance
501+
lang: Shell
502+
source: |
503+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors&accept_partial=true&no_sync=true&precision=auto" \
504+
--header "Authorization: Bearer DATABASE_TOKEN" \
505+
--header "Content-Type: text/plain" \
506+
--data-raw "cpu,host=server01 usage=85.2
507+
memory,host=server01 used=4096"
508+
- label: cURL - Multiple measurements with tags
509+
lang: Shell
510+
source: |
511+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors&precision=ns" \
512+
--header "Authorization: Bearer DATABASE_TOKEN" \
513+
--header "Content-Type: text/plain" \
514+
--data-raw "cpu,host=server01,region=us-west usage=85.2,load=0.75 1638360000000000000
515+
memory,host=server01,region=us-west used=4096,free=12288 1638360000000000000
516+
disk,host=server01,region=us-west,device=/dev/sda1 used=50.5,free=49.5 1638360000000000000"
472517
tags:
473518
- Write data
474519
/api/v3/query_sql:

api-docs/influxdb3/enterprise/v3/ref.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,22 @@ paths:
422422
summary: Write line protocol
423423
description: |
424424
Writes line protocol to the specified database.
425+
426+
This is the native InfluxDB 3 Enterprise write endpoint that provides enhanced control
427+
over write behavior with advanced parameters for high-performance and fault-tolerant operations.
425428
426429
Use this endpoint to send data in [line protocol](/influxdb3/enterprise/reference/syntax/line-protocol/) format to InfluxDB.
427430
Use query parameters to specify options for writing data.
431+
432+
#### Features
433+
434+
- **Partial writes**: Use `accept_partial=true` to allow partial success when some lines in a batch fail
435+
- **Asynchronous writes**: Use `no_sync=true` to skip waiting for WAL synchronization, allowing faster response times but sacrificing durability guarantees
436+
- **Flexible precision**: Automatic timestamp precision detection with `precision=auto` (default)
437+
438+
#### Related
439+
440+
- [Use the InfluxDB v3 write_lp API to write data](/influxdb3/enterprise/write-data/http-api/v3-write-lp/)
428441
parameters:
429442
- $ref: '#/components/parameters/dbWriteParam'
430443
- $ref: '#/components/parameters/accept_partial'
@@ -469,6 +482,38 @@ paths:
469482
description: Request entity too large.
470483
'422':
471484
description: Unprocessable entity.
485+
x-codeSamples:
486+
- label: cURL - Basic write
487+
lang: Shell
488+
source: |
489+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors" \
490+
--header "Authorization: Bearer DATABASE_TOKEN" \
491+
--header "Content-Type: text/plain" \
492+
--data-raw "cpu,host=server01 usage=85.2 1638360000000000000"
493+
- label: cURL - Write with millisecond precision
494+
lang: Shell
495+
source: |
496+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors&precision=ms" \
497+
--header "Authorization: Bearer DATABASE_TOKEN" \
498+
--header "Content-Type: text/plain" \
499+
--data-raw "cpu,host=server01 usage=85.2 1638360000000"
500+
- label: cURL - Asynchronous write with partial acceptance
501+
lang: Shell
502+
source: |
503+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors&accept_partial=true&no_sync=true&precision=auto" \
504+
--header "Authorization: Bearer DATABASE_TOKEN" \
505+
--header "Content-Type: text/plain" \
506+
--data-raw "cpu,host=server01 usage=85.2
507+
memory,host=server01 used=4096"
508+
- label: cURL - Multiple measurements with tags
509+
lang: Shell
510+
source: |
511+
curl --request POST "http://localhost:8181/api/v3/write_lp?db=sensors&precision=ns" \
512+
--header "Authorization: Bearer DATABASE_TOKEN" \
513+
--header "Content-Type: text/plain" \
514+
--data-raw "cpu,host=server01,region=us-west usage=85.2,load=0.75 1638360000000000000
515+
memory,host=server01,region=us-west used=4096,free=12288 1638360000000000000
516+
disk,host=server01,region=us-west,device=/dev/sda1 used=50.5,free=49.5 1638360000000000000"
472517
tags:
473518
- Write data
474519
/api/v3/query_sql:

content/influxdb3/core/write-data/http-api/v3-write-lp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Use the v3 write API to write data
2+
title: Use the v3 write_lp API to write data
33
description: >
44
Use the `/api/v3/write_lp` HTTP API endpoint to write data to {{% product-name %}}.
55
menu:
66
influxdb3_core:
7-
name: Use the v3 write API
7+
name: Use the v3 write_lp API
88
parent: write-http-api
99
weight: 201
1010
related:

content/influxdb3/enterprise/write-data/http-api/v3-write-lp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Use the v3 write API to write data
2+
title: Use the v3 write_lp API to write data
33
description: >
44
Use the `/api/v3/write_lp` HTTP API endpoint to write data to {{% product-name %}}.
55
menu:
66
influxdb3_enterprise:
7-
name: Use the v3 write API
7+
name: Use the v3 write_lp API
88
parent: write-http-api
99
weight: 201
1010
related:

0 commit comments

Comments
 (0)