You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: 3.7 update
* fix(influxdb3): influxdb3 3.7 release:
- Avoid use of "retention policy" except for the storage engine
- User guide: specific heading, active voice
- Use SOURCE
---------
Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
||`--database`| Filter retention information by database name |
18
+
||`--format`| Output format (`pretty`*(default)*, `json`, `jsonl`, `csv`, or `parquet`) |
19
+
||`--tls-ca`| Path to a custom TLS certificate authority (for testing or self-signed certificates) |
20
+
|`-h`|`--help`| Print help information |
21
+
||`--help-all`| Print detailed help information |
22
+
23
+
### Option environment variables
24
+
25
+
You can use the following environment variables to set command options:
26
+
27
+
| Environment Variable | Option |
28
+
| :------------------------ | :----------- |
29
+
|`INFLUXDB3_HOST_URL`|`--host`|
30
+
|`INFLUXDB3_DATABASE_NAME`|`--database`|
31
+
|`INFLUXDB3_AUTH_TOKEN`|`--token`|
32
+
33
+
## Examples
34
+
35
+
-[Show retention for all tables](#show-retention-for-all-tables)
36
+
-[Show retention for a specific database](#show-retention-for-a-specific-database)
37
+
-[Show retention in JSON format](#show-retention-in-json-format)
38
+
39
+
### Show retention for all tables
40
+
41
+
<!--pytest.mark.skip-->
42
+
43
+
```bash
44
+
influxdb3 show retention \
45
+
--host http://localhost:8181 \
46
+
--token YOUR_AUTH_TOKEN
47
+
```
48
+
49
+
### Show retention for a specific database
50
+
51
+
<!--pytest.mark.skip-->
52
+
53
+
```bash
54
+
influxdb3 show retention \
55
+
--host http://localhost:8181 \
56
+
--token YOUR_AUTH_TOKEN \
57
+
--database mydb
58
+
```
59
+
60
+
### Show retention in JSON format
61
+
62
+
<!--pytest.mark.skip-->
63
+
64
+
```bash
65
+
influxdb3 show retention \
66
+
--host http://localhost:8181 \
67
+
--token YOUR_AUTH_TOKEN \
68
+
--format json
69
+
```
70
+
71
+
## Output
72
+
73
+
The command displays the following information for each table:
74
+
75
+
-**Database**: The database name
76
+
-**Table**: The table name
77
+
-**Retention**: The *effective* retention period in human-readable format (for example, "7d" for 7 days, "24h" for 24 hours, "infinite" for no retention)
78
+
-**Source**: Where the retention is defined (`table`, `database`, or `infinite`)
79
+
80
+
### Example output
81
+
82
+
```
83
+
Database | Table | Retention | Source
84
+
---------|-------------|-----------|----------
85
+
mydb | cpu | 7d | database
86
+
mydb | mem | 24h | table
87
+
mydb | disk | infinite | infinite
88
+
```
89
+
90
+
Tables with table-level retention policies override the database-level retention. Tables without explicit retention policies inherit the database retention or have infinite retention if none is set.
Copy file name to clipboardExpand all lines: content/shared/influxdb3-write-guides/http-api/v3-write-lp.md
+89-13Lines changed: 89 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ syntax as previous versions of InfluxDB, and supports the following:
21
21
-`millisecond` (milliseconds)
22
22
-`second` (seconds)
23
23
24
-
> [!Note]
24
+
> \[!Note]
25
25
> A bug currently prevents abbreviated precision values (`ns`, `n`, `us`, `u`, `ms`, `s`) from working with the `/api/v3/write_lp` endpoint. Use the full names (`nanosecond`, `microsecond`, `millisecond`, `second`) instead. Abbreviated values will be supported in a future release.
26
26
27
27
### Auto precision detection
@@ -45,6 +45,7 @@ The following examples show how to write data with different timestamp precision
45
45
[Seconds](#)
46
46
{{% /code-tabs %}}
47
47
{{% code-tab-content %}}
48
+
48
49
```bash
49
50
# Auto precision (default) - timestamp magnitude determines precision
The `/api/v3/write_lp` endpoint supports gzip-encoded request bodies for efficient data transfer.
93
+
94
+
When sending gzip-compressed data to InfluxDB, include the `Content-Encoding: gzip` header in your InfluxDB API request.
95
+
96
+
### Multi-member gzip support
97
+
98
+
{{% product-name %}} supports multi-member gzip payloads (concatenated gzip files per [RFC 1952](https://www.rfc-editor.org/rfc/rfc1952)). This allows you to:
99
+
100
+
- Concatenate multiple gzip files and send them in a single request
101
+
- Maintain compatibility with InfluxDB v1 and v2 write endpoints
102
+
- Simplify batch operations using standard compression tools
All HTTP responses from {{% product-name %}} include the following standard headers:
271
+
272
+
### cluster-uuid
273
+
274
+
The `cluster-uuid` response header contains the catalog UUID of your {{% product-name %}} instance. This header is included in all HTTP API responses, including:
0 commit comments