Merge branch 'master' into 5951-restructure-influxdb3-plugins
commit
43922af68a
|
@ -120,9 +120,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.beta {
|
||||
&.new {
|
||||
.product-info h3::after {
|
||||
content: "beta";
|
||||
content: "New";
|
||||
margin-left: .5rem;
|
||||
font-size: 1rem;
|
||||
padding: .25em .5em .25em .4em;
|
||||
|
|
|
@ -99,6 +99,26 @@
|
|||
pre { background: rgba($r-basalt, .35); }
|
||||
}
|
||||
|
||||
&.ga-announcement {
|
||||
background-image: url('/svgs/influxdb3-ga-background.svg');
|
||||
background-size: cover;
|
||||
a:hover { color: $br-dark-blue; }
|
||||
code { color: $gr-gypsy; background: rgba($gr-gypsy, .25); }
|
||||
pre { background: rgba($gr-gypsy, .25); }
|
||||
|
||||
h3 {font-size: 1.4rem !important;}
|
||||
.notification-slug { font-size: 1.15rem;
|
||||
.btn {
|
||||
display: inline-block;
|
||||
background: $g20-white;
|
||||
color: $br-dark-blue;
|
||||
padding: .5rem 1rem;
|
||||
border-radius: $radius * 2;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//////////// Basic HTML element styles for notification content ////////////
|
||||
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
|
@ -156,6 +176,16 @@
|
|||
}
|
||||
.show::before {content: "Show more"}
|
||||
}
|
||||
|
||||
.title-tag {
|
||||
padding: .15rem .45rem;
|
||||
text-transform: uppercase;
|
||||
font-size: .85rem;
|
||||
border-radius: $radius * 2;
|
||||
font-family: $code;
|
||||
background: $br-dark-blue;
|
||||
}
|
||||
.title-tag + h3 {margin-top: .75rem;}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -96,5 +96,4 @@ blockquote {
|
|||
"blocks/tip",
|
||||
"blocks/important",
|
||||
"blocks/warning",
|
||||
"blocks/caution",
|
||||
"blocks/beta";
|
||||
"blocks/caution";
|
||||
|
|
|
@ -15,27 +15,48 @@
|
|||
padding-right: 2rem;
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 1.25rem;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
li {display: inline-block}
|
||||
|
||||
a {
|
||||
margin-right: 1.5rem;
|
||||
color: $article-heading;
|
||||
font-weight: $medium;
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: "\e90a";
|
||||
font-family: 'icomoon-v4';
|
||||
font-weight: bold;
|
||||
font-size: 1.3rem;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
@include gradient($grad-burningDusk);
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
right: 0;
|
||||
transform: translateX(.25rem);
|
||||
opacity: 0;
|
||||
transition: transform .2s, opacity .2s;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $article-link;
|
||||
border-radius: calc($radius * 1.5);
|
||||
&::after {transform: translateX(1.5rem); opacity: 1;}
|
||||
}
|
||||
|
||||
&.discord:before {
|
||||
content: url('/svgs/discord.svg');
|
||||
display: inline-block;
|
||||
height: 1.1rem;
|
||||
width: 1.25rem;
|
||||
vertical-align: top;
|
||||
margin: 2px .65rem 0 0;
|
||||
}
|
||||
|
||||
&.community:before {
|
||||
content: "\e900";
|
||||
color: $article-heading;
|
||||
margin: 0 .5rem 0 -.25rem;
|
||||
margin-right: .75rem;
|
||||
font-size: 1.2rem;
|
||||
font-family: 'icomoon-v2';
|
||||
vertical-align: middle;
|
||||
|
@ -46,7 +67,16 @@
|
|||
height: 1.1rem;
|
||||
width: 1.1rem;
|
||||
vertical-align: text-top;
|
||||
margin-right: .5rem;
|
||||
margin-right: .8rem;
|
||||
}
|
||||
|
||||
&.reddit:before {
|
||||
content: url('/svgs/reddit.svg');
|
||||
display: inline-block;
|
||||
height: 1.1rem;
|
||||
width: 1.2rem;
|
||||
vertical-align: top;
|
||||
margin: 2px .75rem 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,105 +0,0 @@
|
|||
.block.beta {
|
||||
@include gradient($grad-burningDusk);
|
||||
padding: 4px;
|
||||
border: none;
|
||||
border-radius: 25px !important;
|
||||
|
||||
.beta-content {
|
||||
background: $article-bg;
|
||||
border-radius: 21px;
|
||||
padding: calc(1.65rem - 4px) calc(2rem - 4px) calc(.1rem + 4px) calc(2rem - 4px);
|
||||
|
||||
h4 {
|
||||
color: $article-heading;
|
||||
}
|
||||
|
||||
p {margin-bottom: 1rem;}
|
||||
|
||||
.expand-wrapper {
|
||||
border: none;
|
||||
margin: .5rem 0 1.5rem;
|
||||
}
|
||||
.expand {
|
||||
border: none;
|
||||
padding: 0;
|
||||
|
||||
.expand-content p {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
ul {
|
||||
|
||||
margin-top: -1rem;
|
||||
|
||||
&.feedback-channels {
|
||||
|
||||
padding: 0;
|
||||
margin: -1rem 0 1.5rem 2rem;
|
||||
list-style: none;
|
||||
|
||||
a {
|
||||
color: $article-heading;
|
||||
font-weight: $medium;
|
||||
position: relative;
|
||||
|
||||
&.discord:before {
|
||||
content: url('/svgs/discord.svg');
|
||||
display: inline-block;
|
||||
height: 1.1rem;
|
||||
width: 1.25rem;
|
||||
vertical-align: top;
|
||||
margin: 2px .65rem 0 0;
|
||||
}
|
||||
|
||||
&.community:before {
|
||||
content: "\e900";
|
||||
color: $article-heading;
|
||||
margin: 0 .65rem 0 0;
|
||||
font-size: 1.2rem;
|
||||
font-family: 'icomoon-v2';
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&.slack:before {
|
||||
content: url('/svgs/slack.svg');
|
||||
display: inline-block;
|
||||
height: 1.1rem;
|
||||
width: 1.1rem;
|
||||
vertical-align: text-top;
|
||||
margin-right: .65rem;
|
||||
}
|
||||
|
||||
&.reddit:before {
|
||||
content: url('/svgs/reddit.svg');
|
||||
display: inline-block;
|
||||
height: 1.1rem;
|
||||
width: 1.2rem;
|
||||
vertical-align: top;
|
||||
margin: 2px .65rem 0 0;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "\e90a";
|
||||
font-family: 'icomoon-v4';
|
||||
font-weight: bold;
|
||||
font-size: 1.3rem;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
@include gradient($grad-burningDusk);
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
right: 0;
|
||||
transform: translateX(.25rem);
|
||||
opacity: 0;
|
||||
transition: transform .2s, opacity .2s;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&::after {transform: translateX(1.5rem); opacity: 1;}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -10,6 +10,16 @@ aliases:
|
|||
- /chronograf/v1/about_the_project/release-notes-changelog/
|
||||
---
|
||||
|
||||
## v1.10.7 {date="2025-04-15"}
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix Hosts page loading.
|
||||
|
||||
### Dependency updates
|
||||
|
||||
- Upgrade Go to 1.23.8.
|
||||
|
||||
## v1.10.6 {date="2024-12-16"}
|
||||
|
||||
### Bug Fixes
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Create a database token
|
|||
description: >
|
||||
Use the [`influxctl token create` command](/influxdb3/cloud-dedicated/reference/cli/influxctl/token/create/)
|
||||
or the [Management HTTP API](/influxdb3/cloud-dedicated/api/management/)
|
||||
to [database token](/influxdb3/cloud-dedicated/admin/tokens/database/) for reading and writing data in your InfluxDB Cloud Dedicated cluster.
|
||||
to create a [database token](/influxdb3/cloud-dedicated/admin/tokens/database/) for reading and writing data in your InfluxDB Cloud Dedicated cluster.
|
||||
Provide a token description and permissions for databases.
|
||||
menu:
|
||||
influxdb3_cloud_dedicated:
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -2,7 +2,7 @@
|
|||
title: Create a database token
|
||||
description: >
|
||||
Use the [`influxctl token create` command](/influxdb3/clustered/reference/cli/influxctl/token/create/)
|
||||
to create a database token for reading and writing data in your InfluxDB cluster.
|
||||
to create a [database token](/influxdb3/clustered/admin/tokens/database/) for reading and writing data in your InfluxDB cluster.
|
||||
Provide a token description and permissions for databases.
|
||||
menu:
|
||||
influxdb3_clustered:
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: Manage the Distinct Value Cache
|
||||
seotitle: Manage the Distinct Value Cache in {{< product-name >}}
|
||||
description: >
|
||||
The {{< product-name >}} Distinct Value Cache (DVC) lets you cache distinct
|
||||
values of one or more columns in a table, improving the performance of
|
||||
queries that return distinct tag and field values.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Administer InfluxDB
|
||||
weight: 105
|
||||
influxdb3/core/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/core/reference/sql/functions/cache/#distinct_cache, distinct_cache SQL function
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/_index.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/_index.md -->
|
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
title: Create a Distinct Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 create distinct_cache` command](/influxdb3/core/reference/cli/influxdb3/create/distinct_cache/)
|
||||
to create a Distinct Value Cache.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Distinct Value Cache
|
||||
weight: 201
|
||||
influxdb3/core/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/core/reference/cli/influxdb3/create/distinct_cache/
|
||||
list_code_example: |
|
||||
{{% show-in "core" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create distinct_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table wind_data \
|
||||
--columns country,county,city \
|
||||
--max-cardinality 10000 \
|
||||
--max-age 24h \
|
||||
windDistinctCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create distinct_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
--node-spec node-01,node-02 \
|
||||
--columns country,county,city \
|
||||
--max-cardinality 10000 \
|
||||
--max-age 24h \
|
||||
windDistinctCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/create.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/create.md -->
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Delete a Distinct Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 delete distinct_cache` command](/influxdb3/core/reference/cli/influxdb3/delete/distinct_cache/)
|
||||
to delete a Distinct Value Cache.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Distinct Value Cache
|
||||
weight: 204
|
||||
influxdb3/core/tags: [cache]
|
||||
list_code_example: |
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete distinct_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table wind_data \
|
||||
windDistinctCache
|
||||
```
|
||||
related:
|
||||
- /influxdb3/core/reference/cli/influxdb3/delete/distinct_cache/
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/delete.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/delete.md -->
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: Query a Distinct Value Cache
|
||||
description: |
|
||||
Use the [`distinct_cache()` SQL function](/influxdb3/core/reference/sql/functions/cache/#distinct_cache)
|
||||
in the `FROM` clause of an SQL `SELECT` statement to query data from the
|
||||
Distinct Value Cache.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Distinct Value Cache
|
||||
weight: 202
|
||||
influxdb3/core/tags: [cache]
|
||||
list_code_example: |
|
||||
```sql
|
||||
SELECT * FROM distinct_cache('table-name', 'cache-name')
|
||||
```
|
||||
|
||||
> [!Important]
|
||||
> You must use SQL to query the DVC.
|
||||
> InfluxQL does not support the `distinct_cache()` function.
|
||||
related:
|
||||
- /influxdb3/core/reference/sql/functions/cache/#distinct_cache, distinct_cache SQL function
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/query.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/query.md -->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Show information about Distinct Value Caches
|
||||
description: |
|
||||
Use the `influxdb3 show system table` command to query and output Distinct Value
|
||||
Cache information from the `distinct_caches` system table.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Distinct Value Cache
|
||||
name: Show Distinct Value Caches
|
||||
weight: 203
|
||||
influxdb3/core/tags: [cache]
|
||||
list_code_example: |
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
table distinct_caches
|
||||
```
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/show.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/show.md -->
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: Manage the Last Value Cache
|
||||
seotitle: Manage the Last Value Cache in {{< product-name >}}
|
||||
description: >
|
||||
The {{< product-name >}} Last Value Cache (LVC) lets you cache the most
|
||||
recent values for specific fields in a table, improving the performance of
|
||||
queries that return the most recent value of a field for specific time series
|
||||
or the last N values of a field.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Administer InfluxDB
|
||||
weight: 104
|
||||
influxdb3/core/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/core/reference/sql/functions/cache/#last_cache, last_cache SQL function
|
||||
source: /shared/influxdb3-admin/last-value-cache/_index.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/_index.md -->
|
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
title: Create a Last Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 create last_cache` command](/influxdb3/core/reference/cli/influxdb3/create/last_cache/)
|
||||
to create a Last Value Cache.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Last Value Cache
|
||||
weight: 201
|
||||
influxdb3/core/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/core/reference/cli/influxdb3/create/last_cache/
|
||||
list_code_example: |
|
||||
{{% show-in "core" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create last_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
--key-columns room,wall \
|
||||
--value-columns temp,hum,co \
|
||||
--count 5 \
|
||||
--ttl 30mins \
|
||||
homeLastCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create last_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
--node-spec node-01,node-02 \
|
||||
--key-columns room,wall \
|
||||
--value-columns temp,hum,co \
|
||||
--count 5 \
|
||||
--ttl 30mins \
|
||||
homeLastCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
source: /shared/influxdb3-admin/last-value-cache/create.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/create.md -->
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Delete a Last Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 delete last_cache` command](/influxdb3/core/reference/cli/influxdb3/delete/last_cache/)
|
||||
to delete a Last Value Cache.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Last Value Cache
|
||||
weight: 204
|
||||
influxdb3/core/tags: [cache]
|
||||
list_code_example: |
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete last_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
homeLastCache
|
||||
```
|
||||
related:
|
||||
- /influxdb3/core/reference/cli/influxdb3/delete/last_cache/
|
||||
source: /shared/influxdb3-admin/last-value-cache/delete.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/delete.md -->
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: Query a Last Value Cache
|
||||
description: |
|
||||
Use the [`last_cache()` SQL function](/influxdb3/core/reference/sql/functions/cache/#last_cache)
|
||||
in the `FROM` clause of an SQL `SELECT` statement to query data from the
|
||||
Last Value Cache.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Last Value Cache
|
||||
weight: 202
|
||||
influxdb3/core/tags: [cache]
|
||||
list_code_example: |
|
||||
```sql
|
||||
SELECT * FROM last_cache('table-name', 'cache-name')
|
||||
```
|
||||
|
||||
> [!Important]
|
||||
> You must use SQL to query the LVC.
|
||||
> InfluxQL does not support the `last_cache()` function.
|
||||
related:
|
||||
- /influxdb3/core/reference/sql/functions/cache/#last_cache, last_cache SQL function
|
||||
source: /shared/influxdb3-admin/last-value-cache/query.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/query.md -->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Show information about Last Value Caches
|
||||
description: |
|
||||
Use the `influxdb3 show system table` command to query and output Last Value
|
||||
Cache information from the `last_caches` system table.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage the Last Value Cache
|
||||
name: Show Last Value Caches
|
||||
weight: 203
|
||||
influxdb3/core/tags: [cache]
|
||||
list_code_example: |
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
table last_caches
|
||||
```
|
||||
source: /shared/influxdb3-admin/last-value-cache/show.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/show.md -->
|
|
@ -9,7 +9,7 @@ menu:
|
|||
influxdb3_core:
|
||||
name: Query system data
|
||||
parent: Administer InfluxDB
|
||||
weight: 3
|
||||
weight: 110
|
||||
influxdb3/core/tags: [query, api, system information, schemas]
|
||||
related:
|
||||
- /influxdb3/core/query-data/sql/
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: Manage tokens
|
||||
description: >
|
||||
InfluxDB 3 uses tokens to authenticate and authorize access to resources and data stored in {{< product-name >}}.
|
||||
Use the `influxdb3` CLI or `/api/v3` HTTP API to manage tokens
|
||||
for your {{% product-name %}} instance.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Administer InfluxDB
|
||||
weight: 202
|
||||
---
|
||||
|
||||
InfluxDB 3 uses tokens to authenticate and authorize access to resources and data stored in {{< product-name >}}.
|
||||
Use the `influxdb3` CLI or `/api/v3` HTTP API to manage tokens
|
||||
for your {{% product-name %}} instance.
|
||||
|
||||
{{< children hlevel="h2" readmore=true hr=true >}}
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: Manage admin tokens
|
||||
seotitle: Manage admin tokens in {{< product-name >}}
|
||||
description: >
|
||||
Manage admin tokens in your {{< product-name >}} instance.
|
||||
An admin token grants
|
||||
access to all actions (CLI commands and API endpoints) for the server.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Manage tokens
|
||||
name: Admin tokens
|
||||
weight: 101
|
||||
influxdb3/core/tags: [tokens]
|
||||
source: /shared/influxdb3-admin/tokens/_index.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/_index.md
|
||||
-->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Create an admin token
|
||||
description: >
|
||||
Use the [`influxdb3 create token --admin` command](/influxdb3/core/reference/cli/influxdb3/create/token/)
|
||||
or the [HTTP API](/influxdb3/core/api/v3/)
|
||||
to create an [admin token](/influxdb3/core/admin/tokens/admin/) for your {{< product-name omit="Clustered" >}} instance.
|
||||
An admin token grants access to all actions on the server.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Admin tokens
|
||||
weight: 201
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 create token --admin
|
||||
```
|
||||
alt_links:
|
||||
cloud-dedicated: /influxdb3/cloud-dedicated/admin/tokens/create-token/
|
||||
cloud-serverless: /influxdb3/cloud-serverless/admin/tokens/create-token/
|
||||
source: /shared/influxdb3-admin/tokens/admin/create.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/create.md
|
||||
-->
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: List an admin token
|
||||
description: >
|
||||
Use the `influxdb3 show tokens` command
|
||||
to list the [admin token](/influxdb3/enterprise/admin/tokens/admin/) for your {{< product-name omit="Clustered" >}} instance.
|
||||
An admin token grants access to all actions on the server.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Admin tokens
|
||||
weight: 201
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 show tokens
|
||||
```
|
||||
source: /shared/influxdb3-admin/tokens/admin/list.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/list.md
|
||||
-->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Regenerate an admin token
|
||||
description: >
|
||||
Use the [`influxdb3 create token --admin` command](/influxdb3/core/reference/cli/influxdb3/create/token/)
|
||||
or the [HTTP API](/influxdb3/core/api/v3/)
|
||||
to regenerate an [admin token](/influxdb3/core/admin/tokens/admin/) for your {{< product-name omit="Clustered" >}} instance.
|
||||
An admin token grants access to all actions on the server.
|
||||
Regenerating an admin token deactivates the previous token.
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Admin tokens
|
||||
weight: 201
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 create token --admin \
|
||||
--token ADMIN_TOKEN \
|
||||
--regenerate
|
||||
```
|
||||
source: /shared/influxdb3-admin/tokens/admin/regenerate.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/create.md
|
||||
-->
|
|
@ -39,7 +39,7 @@ influxdb3 [GLOBAL-OPTIONS] [COMMAND]
|
|||
| Option | | Description |
|
||||
| :----- | :------------------------------------ | :------------------------------------------------------------------------------------------------ |
|
||||
| | `--num-threads` | Maximum number of IO runtime threads to use |
|
||||
| | `--io-runtime-type` | IO tokio runtime type (`current-thread`, `multi-thread` _(default)_, or `multi-thread-alt`) |
|
||||
| | `--io-runtime-type` | IO tokio runtime type (`current-thread`, `multi-thread` _(default)_, or `multi-thread-alt`) |
|
||||
| | `--io-runtime-disable-lifo-slot` | Disable LIFO slot of IO runtime |
|
||||
| | `--io-runtime-event-interval` | Number of scheduler ticks after which the IOtokio runtime scheduler will poll for external events |
|
||||
| | `--io-runtime-global-queue-interval` | Number of scheduler ticks after which the IO runtime scheduler will poll the global task queue |
|
||||
|
@ -48,6 +48,7 @@ influxdb3 [GLOBAL-OPTIONS] [COMMAND]
|
|||
| | `--io-runtime-thread-keep-alive` | Custom timeout for a thread in the blocking pool of the tokio IO runtime |
|
||||
| | `--io-runtime-thread-priority` | Set thread priority tokio IO runtime workers |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
| `-V` | `--version` | Print version |
|
||||
|
||||
### Option environment variables
|
||||
|
|
|
@ -55,6 +55,7 @@ influxdb3 serve [OPTIONS] --node-id <HOST_IDENTIFIER_PREFIX>
|
|||
| | `--object-store-retry-timeout` | _See [configuration options](/influxdb3/core/reference/config-options/#object-store-retry-timeout)_ |
|
||||
| | `--object-store-cache-endpoint` | _See [configuration options](/influxdb3/core/reference/config-options/#object-store-cache-endpoint)_ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
| | `--log-filter` | _See [configuration options](/influxdb3/core/reference/config-options/#log-filter)_ |
|
||||
| `-v` | `--verbose` | Enable verbose output |
|
||||
| | `--log-destination` | _See [configuration options](/influxdb3/core/reference/config-options/#log-destination)_ |
|
||||
|
@ -90,7 +91,7 @@ influxdb3 serve [OPTIONS] --node-id <HOST_IDENTIFIER_PREFIX>
|
|||
| | `--wal-max-write-buffer-size` | _See [configuration options](/influxdb3/core/reference/config-options/#wal-max-write-buffer-size)_ |
|
||||
| | `--snapshotted-wal-files-to-keep` | _See [configuration options](/influxdb3/core/reference/config-options/#snapshotted-wal-files-to-keep)_ |
|
||||
| | `--query-log-size` | _See [configuration options](/influxdb3/core/reference/config-options/#query-log-size)_ |
|
||||
| | `--parquet-mem-cache-size` | _See [configuration options](/influxdb3/core/reference/config-options/#parquet-mem-cache-size)_ |
|
||||
| | `--parquet-mem-cache-size` | _See [configuration options](/influxdb3/core/reference/config-options/#parquet-mem-cache-size)_ |
|
||||
| | `--parquet-mem-cache-prune-percentage` | _See [configuration options](/influxdb3/core/reference/config-options/#parquet-mem-cache-prune-percentage)_ |
|
||||
| | `--parquet-mem-cache-prune-interval` | _See [configuration options](/influxdb3/core/reference/config-options/#parquet-mem-cache-prune-interval)_ |
|
||||
| | `--disable-parquet-mem-cache` | _See [configuration options](/influxdb3/core/reference/config-options/#disable-parquet-mem-cache)_ |
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: Glossary
|
||||
description: >
|
||||
Terms related to InfluxData products and platforms.
|
||||
weight: 109
|
||||
menu:
|
||||
influxdb3_core:
|
||||
parent: Reference
|
||||
influxdb3/core/tags: [glossary]
|
||||
source: /shared/influxdb3-reference/glossary.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-reference/glossary.md
|
||||
-->
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: Manage the Distinct Value Cache
|
||||
seotitle: Manage the Distinct Value Cache in {{< product-name >}}
|
||||
description: >
|
||||
The {{< product-name >}} Distinct Value Cache (DVC) lets you cache distinct
|
||||
values of one or more columns in a table, improving the performance of
|
||||
queries that return distinct tag and field values.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Administer InfluxDB
|
||||
weight: 105
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/sql/functions/cache/#distinct_cache, distinct_cache SQL function
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/_index.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/_index.md -->
|
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
title: Create a Distinct Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 create distinct_cache` command](/influxdb3/enterprise/reference/cli/influxdb3/create/distinct_cache/)
|
||||
to create a Distinct Value Cache.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Distinct Value Cache
|
||||
weight: 201
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/cli/influxdb3/create/distinct_cache/
|
||||
list_code_example: |
|
||||
{{% show-in "core" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create distinct_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table wind_data \
|
||||
--columns country,county,city \
|
||||
--max-cardinality 10000 \
|
||||
--max-age 24h \
|
||||
windDistinctCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create distinct_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
--node-spec node-01,node-02 \
|
||||
--columns country,county,city \
|
||||
--max-cardinality 10000 \
|
||||
--max-age 24h \
|
||||
windDistinctCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/create.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/create.md -->
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Delete a Distinct Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 delete distinct_cache` command](/influxdb3/enterprise/reference/cli/influxdb3/delete/distinct_cache/)
|
||||
to delete a Distinct Value Cache.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Distinct Value Cache
|
||||
weight: 204
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
list_code_example: |
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete distinct_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table wind_data \
|
||||
windDistinctCache
|
||||
```
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/cli/influxdb3/delete/distinct_cache/
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/delete.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/delete.md -->
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: Query a Distinct Value Cache
|
||||
description: |
|
||||
Use the [`distinct_cache()` SQL function](/influxdb3/enterprise/reference/sql/functions/cache/#distinct_cache)
|
||||
in the `FROM` clause of an SQL `SELECT` statement to query data from the
|
||||
Distinct Value Cache.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Distinct Value Cache
|
||||
weight: 202
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
list_code_example: |
|
||||
```sql
|
||||
SELECT * FROM distinct_cache('table-name', 'cache-name')
|
||||
```
|
||||
|
||||
> [!Important]
|
||||
> You must use SQL to query the DVC.
|
||||
> InfluxQL does not support the `distinct_cache()` function.
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/sql/functions/cache/#distinct_cache, distinct_cache SQL function
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/query.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/query.md -->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Show information about Distinct Value Caches
|
||||
description: |
|
||||
Use the `influxdb3 show system table` command to query and output Distinct Value
|
||||
Cache information from the `distinct_caches` system table.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Distinct Value Cache
|
||||
name: Show Distinct Value Caches
|
||||
weight: 203
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
list_code_example: |
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
table distinct_caches
|
||||
```
|
||||
source: /shared/influxdb3-admin/distinct-value-cache/show.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/distinct-value-cache/show.md -->
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: Manage the Last Value Cache
|
||||
seotitle: Manage the Last Value Cache in {{< product-name >}}
|
||||
description: >
|
||||
The {{< product-name >}} Last Value Cache (LVC) lets you cache the most
|
||||
recent values for specific fields in a table, improving the performance of
|
||||
queries that return the most recent value of a field for specific time series
|
||||
or the last N values of a field.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Administer InfluxDB
|
||||
weight: 104
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/sql/functions/cache/#last_cache, last_cache SQL function
|
||||
source: /shared/influxdb3-admin/last-value-cache/_index.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/_index.md -->
|
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
title: Create a Last Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 create last_cache` command](/influxdb3/enterprise/reference/cli/influxdb3/create/last_cache/)
|
||||
to create a Last Value Cache.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Last Value Cache
|
||||
weight: 201
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/cli/influxdb3/create/last_cache/
|
||||
list_code_example: |
|
||||
{{% show-in "core" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create last_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
--key-columns room,wall \
|
||||
--value-columns temp,hum,co \
|
||||
--count 5 \
|
||||
--ttl 30mins \
|
||||
homeLastCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create last_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
--node-spec node-01,node-02 \
|
||||
--key-columns room,wall \
|
||||
--value-columns temp,hum,co \
|
||||
--count 5 \
|
||||
--ttl 30mins \
|
||||
homeLastCache
|
||||
```
|
||||
{{% /show-in %}}
|
||||
source: /shared/influxdb3-admin/last-value-cache/create.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/create.md -->
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Delete a Last Value Cache
|
||||
description: |
|
||||
Use the [`influxdb3 delete last_cache` command](/influxdb3/enterprise/reference/cli/influxdb3/delete/last_cache/)
|
||||
to delete a Last Value Cache.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Last Value Cache
|
||||
weight: 204
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
list_code_example: |
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete last_cache \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
--table home \
|
||||
homeLastCache
|
||||
```
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/cli/influxdb3/delete/last_cache/
|
||||
source: /shared/influxdb3-admin/last-value-cache/delete.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/delete.md -->
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: Query a Last Value Cache
|
||||
description: |
|
||||
Use the [`last_cache()` SQL function](/influxdb3/enterprise/reference/sql/functions/cache/#last_cache)
|
||||
in the `FROM` clause of an SQL `SELECT` statement to query data from the
|
||||
Last Value Cache.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Last Value Cache
|
||||
weight: 202
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
list_code_example: |
|
||||
```sql
|
||||
SELECT * FROM last_cache('table-name', 'cache-name')
|
||||
```
|
||||
|
||||
> [!Important]
|
||||
> You must use SQL to query the LVC.
|
||||
> InfluxQL does not support the `last_cache()` function.
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/sql/functions/cache/#last_cache, last_cache SQL function
|
||||
source: /shared/influxdb3-admin/last-value-cache/query.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/query.md -->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Show information about Last Value Caches
|
||||
description: |
|
||||
Use the `influxdb3 show system table` command to query and output Last Value
|
||||
Cache information from the `last_caches` system table.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage the Last Value Cache
|
||||
name: Show Last Value Caches
|
||||
weight: 203
|
||||
influxdb3/enterprise/tags: [cache]
|
||||
list_code_example: |
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database example-db \
|
||||
--token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \
|
||||
table last_caches
|
||||
```
|
||||
source: /shared/influxdb3-admin/last-value-cache/show.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is located at
|
||||
// SOURCE content/shared/influxdb3-admin/last-value-cache/show.md -->
|
|
@ -0,0 +1,148 @@
|
|||
---
|
||||
title: Manage your InfluxDB 3 Enterprise license
|
||||
description: >
|
||||
{{< product-name >}} licenses authorize the use of the {{< product-name >}}
|
||||
software. Learn how licenses work, how to activate and renew licenses, and more.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
name: Manage your license
|
||||
parent: Administer InfluxDB
|
||||
weight: 101
|
||||
---
|
||||
|
||||
{{< product-name >}} licenses authorize the use of the {{< product-name >}}
|
||||
software and apply to a single cluster. Licenses are primarily based on the
|
||||
number of CPUs InfluxDB can use, but there are other limitations depending on
|
||||
the license type. The following {{< product-name >}} license types are available:
|
||||
|
||||
- **Trial**: 30-day trial license with full access to {{< product-name >}} capabilities.
|
||||
- **At-Home**: For at-home hobbyist use with limited access to {{< product-name >}} capabilities.
|
||||
- **Commercial**: Commercial license with full access to {{< product-name >}} capabilities.
|
||||
|
||||
#### License feature comparison
|
||||
|
||||
| Features | Trial | At-Home | Commercial |
|
||||
| :------------- | :-----------------------: | :-----: | :-----------------------: |
|
||||
| CPU Core Limit | 256 | 2 | _Per contract_ |
|
||||
| Expiration | 30 days | _Never_ | _Per contract_ |
|
||||
| Multi-node | {{% icon "check" "v2" %}} | | {{% icon "check" "v2" %}} |
|
||||
| Commercial use | {{% icon "check" "v2" %}} | | {{% icon "check" "v2" %}} |
|
||||
|
||||
{{% caption %}}
|
||||
All other {{< product-name >}} features are available to all licenses.
|
||||
{{% /caption %}}
|
||||
|
||||
## CPU limit
|
||||
|
||||
Each {{< product-name >}} license limits the number of CPUs InfluxDB can use.
|
||||
The CPU limit is per cluster, not per machine. A cluster may consist of
|
||||
multiple nodes that share the available CPU limit.
|
||||
|
||||
For example, you can purchase a 32-CPU Commercial license and set up an
|
||||
{{< product-name >}} cluster with the following:
|
||||
|
||||
- 3 × writer nodes, each with 4 CPUs (12 total)
|
||||
- 1 × compactor node with 8 CPUs
|
||||
- 3 × query nodes, each with 4 CPUs (12 total)
|
||||
|
||||
With the {{< product-name >}} Commercial license, CPU cores are purchased in
|
||||
batches of 8, 16, 32, 64, or 128 cores.
|
||||
|
||||
### CPU accounting
|
||||
|
||||
CPU cores are determined by whatever the operating system of the host machine
|
||||
reports as its core count. {{< product-name >}} does not differentiate between
|
||||
physical and virtual CPU cores.
|
||||
|
||||
> [!Note]
|
||||
> If using Linux, InfluxDB uses whatever cgroup CPU accounting is active--for
|
||||
> example: `cpuset` or `cpu.shares`.
|
||||
|
||||
## Activate a license
|
||||
|
||||
Each {{< product-name >}} license must be activated, but the process of activating
|
||||
the license depends on the license type:
|
||||
|
||||
- [Activate a Trial or At-Home license](#activate-a-trial-or-at-home-license)
|
||||
- [Activate a Commercial license](#activate-a-commercial-license)
|
||||
|
||||
### Activate a Trial or At-Home license
|
||||
|
||||
When starting the {{< product-name >}} server, it will ask you what type of
|
||||
license you would like to use. Select `trial` or `home` and provide your
|
||||
email address. The server auto-generates and stores your license.
|
||||
|
||||
### Activate a Commercial license
|
||||
|
||||
1. [Contact InfluxData Sales](https://influxdata.com/contact-sales/) to obtain
|
||||
an {{< product-name >}} Commercial license. Provide the following:
|
||||
|
||||
- Cluster UUID
|
||||
- Object Store Info
|
||||
|
||||
> [!Note]
|
||||
> This information is provided in the output of the {{< product-name >}}
|
||||
> server if you try to start the server without a valid license.
|
||||
|
||||
InfluxData will provide you with a Commercial license file.
|
||||
|
||||
2. Provide the following when starting the {{< product-name >}} server:
|
||||
|
||||
- **License email**: The email address associated with your Commercial license.
|
||||
|
||||
Use either the `--license-email` option or set the
|
||||
`INFLUXDB3_ENTERPRISE_LICENSE_EMAIL` environment variable.
|
||||
|
||||
- **License file**: The file path of the provided Commercial license file.
|
||||
|
||||
Use either the `--license-file` option or set the
|
||||
`INFLUXDB3_ENTERPRISE_LICENSE_FILE` environment variable.
|
||||
|
||||
{{< code-tabs-wrapper >}}
|
||||
{{% code-tabs %}}
|
||||
[influxdb3 options](#)
|
||||
[Environment variables](#)
|
||||
{{% /code-tabs %}}
|
||||
{{% code-tab-content %}}
|
||||
<!------------------------ BEGIN INFLUXDB3 CLI OPTIONS ------------------------>
|
||||
<!-- pytest.mark.skip -->
|
||||
```bash
|
||||
influxdb3 serve \
|
||||
--cluster-id cluster01 \
|
||||
--node-id node01 \
|
||||
--license-email example@email.com \
|
||||
--license-file /path/to/license-file.jwt \
|
||||
# ...
|
||||
```
|
||||
<!------------------------- END INFLUXDB3 CLI OPTIONS ------------------------->
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
<!------------------------ BEGIN ENVIRONMENT VARIABLES ------------------------>
|
||||
<!-- pytest.mark.skip -->
|
||||
```bash
|
||||
INFLUXDB3_ENTERPRISE_LICENSE_EMAIL=example@email.com
|
||||
INFLUXDB3_ENTERPRISE_LICENSE_FILE=/path/to/license-file.jwt
|
||||
|
||||
influxdb3 serve \
|
||||
--cluster-id cluster01 \
|
||||
--node-id node01 \
|
||||
# ...
|
||||
```
|
||||
<!------------------------- END ENVIRONMENT VARIABLES ------------------------->
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
||||
## Renew a license
|
||||
|
||||
To renew an {{< product-name >}} Commercial license, contact
|
||||
[InfluxData Sales](https://influxdata.com/contact-sales/).
|
||||
|
||||
## Expiration behavior
|
||||
|
||||
When your {{< product-name >}} license expires, the following occurs:
|
||||
|
||||
- Write requests continue to be accepted and processed.
|
||||
- Compactions continue to optimize persisted data.
|
||||
- Query requests return an error.
|
||||
- If the {{< product-name >}} server stops, it will not restart without a valid,
|
||||
non-expired license.
|
|
@ -9,7 +9,7 @@ menu:
|
|||
influxdb3_enterprise:
|
||||
name: Query system data
|
||||
parent: Administer InfluxDB
|
||||
weight: 3
|
||||
weight: 110
|
||||
influxdb3/enterprise/tags: [query, api, system information, schemas]
|
||||
related:
|
||||
- /influxdb3/enterprise/query-data/sql/
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: Manage tokens
|
||||
description: >
|
||||
InfluxDB 3 uses tokens to authenticate and authorize access to resources and data stored in your {{< product-name >}}.
|
||||
Use the `influxdb3` CLI or `/api/v3` HTTP API to manage tokens
|
||||
for your {{% product-name %}} instance.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Administer InfluxDB
|
||||
weight: 202
|
||||
---
|
||||
|
||||
InfluxDB 3 uses tokens to authenticate and authorize access to resources and data stored in your {{< product-name >}}.
|
||||
Use the `influxdb3` CLI or `/api/v3` HTTP API to manage tokens
|
||||
for your {{% product-name %}} instance.
|
||||
|
||||
{{< children hlevel="h2" readmore=true hr=true >}}
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: Manage admin tokens
|
||||
seotitle: Manage admin tokens in {{< product-name >}}
|
||||
description: >
|
||||
Manage admin tokens in your {{< product-name >}} instance.
|
||||
An admin token grants
|
||||
access to all actions (CLI commands and API endpoints) for the server.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage tokens
|
||||
name: Admin tokens
|
||||
weight: 101
|
||||
influxdb3/enterprise/tags: [tokens]
|
||||
source: /shared/influxdb3-admin/tokens/admin/_index.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/_index.md
|
||||
-->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Create an admin token
|
||||
description: >
|
||||
Use the [`influxdb3 create token --admin` command](/influxdb3/enterprise/reference/cli/influxdb3/create/token/)
|
||||
or the [HTTP API](/influxdb3/enterprise/api/v3/)
|
||||
to create an [admin token](/influxdb3/enterprise/admin/tokens/admin/) for your {{< product-name omit="Clustered" >}} instance.
|
||||
An admin token grants access to all actions on the server.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Admin tokens
|
||||
weight: 201
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 create token --admin
|
||||
```
|
||||
alt_links:
|
||||
cloud-dedicated: /influxdb3/cloud-dedicated/admin/tokens/create-token/
|
||||
cloud-serverless: /influxdb3/cloud-serverless/admin/tokens/create-token/
|
||||
source: /shared/influxdb3-admin/tokens/admin/create.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/create.md
|
||||
-->
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: List an admin token
|
||||
description: >
|
||||
Use the `influxdb3 show tokens` command
|
||||
to list the [admin token](/influxdb3/enterprise/admin/tokens/admin/) for your {{< product-name omit="Clustered" >}} instance.
|
||||
An admin token grants access to all actions on the server.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Admin tokens
|
||||
weight: 201
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 show tokens
|
||||
```
|
||||
source: /shared/influxdb3-admin/tokens/admin/list.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/list.md
|
||||
-->
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: Regenerate an admin token
|
||||
description: >
|
||||
Use the [`influxdb3 create token --admin` command](/influxdb3/enterprise/reference/cli/influxdb3/create/token/)
|
||||
or the [HTTP API](/influxdb3/enterprise/api/v3/)
|
||||
to regenerate an [admin token](/influxdb3/enterprise/admin/tokens/admin/) for your {{< product-name omit="Clustered" >}} instance.
|
||||
An admin token grants access to all actions on the server.
|
||||
Regenerating an admin token deactivates the previous token.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Admin tokens
|
||||
weight: 201
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 create token --admin \
|
||||
--token ADMIN_TOKEN \
|
||||
--regenerate
|
||||
```
|
||||
source: /shared/influxdb3-admin/tokens/admin/regenerate.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/create.md
|
||||
-->
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: Manage resource tokens
|
||||
seotitle: Manage resource tokens in {{< product-name >}}
|
||||
description: >
|
||||
Manage resource tokens in your {{< product-name >}} instance.
|
||||
Resource tokens grant read and write permissions resources, such as databases
|
||||
and system information endpoints in your {{< product-name >}} instance.
|
||||
Database resource tokens allow for actions like writing and querying data.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Manage tokens
|
||||
name: Resource tokens
|
||||
weight: 101
|
||||
influxdb3/enterprise/tags: [tokens]
|
||||
---
|
||||
|
||||
{{< children depth="1" >}}
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE - content/shared/influxdb3-admin/tokens/database/_index.md
|
||||
-->
|
|
@ -0,0 +1,520 @@
|
|||
---
|
||||
title: Create a resource token
|
||||
description: >
|
||||
Use the [`influxdb3 create token --permission` command](/influxdb3/enterprise/reference/cli/influxdb3/create/token/)
|
||||
or the [HTTP API](/influxdb3/enterprise/api/v3/)
|
||||
to create tokens that grant access to resources such as databases and system information.
|
||||
Database tokens allow for reading and writing data in your {{< product-name omit="Clustered" >}} instance.
|
||||
System tokens allow for reading system information and metrics for your server.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Resource tokens
|
||||
weight: 201
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 create token --permission \
|
||||
--token ADMIN_TOKEN \
|
||||
--expiry 1y \
|
||||
--name "Read-write on DATABASE1, DATABASE2" \
|
||||
db:DATABASE1,DATABASE2:read,write
|
||||
```
|
||||
|
||||
##### HTTP API
|
||||
```bash
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--data '{
|
||||
"token_name": "Read-write for DATABASE1, DATABASE2",
|
||||
"permissions": [{
|
||||
"resource_type": "db",
|
||||
"resource_identifier": ["DATABASE1","DATABASE2"],
|
||||
"actions": ["read","write"]
|
||||
}],
|
||||
"expiry_secs": 300000
|
||||
}'
|
||||
```
|
||||
alt_links:
|
||||
cloud-dedicated: /influxdb3/enterprise/admin/tokens/create-token/
|
||||
cloud-serverless: /influxdb3/cloud-serverless/admin/tokens/create-token/
|
||||
---
|
||||
|
||||
Use the [`influxdb3 create token --permission` command](/influxdb3/enterprise/reference/cli/influxdb3/create/token/)
|
||||
or the [`/api/v3/configure/token` HTTP API endpoint](/influxdb3/enterprise/api/v3/)
|
||||
to create tokens that grant access to resources such as databases and system information.
|
||||
Database tokens allow for reading and writing data in your {{< product-name omit="Clustered" >}} instance.
|
||||
System tokens allow for reading system information and metrics for your server.
|
||||
|
||||
After you
|
||||
[create an _admin token_](/influxdb3/enterprise/admin/tokens/admin/create/), you
|
||||
can use the token string to authenticate `influxdb3` commands and HTTP API requests
|
||||
for managing database and system tokens.
|
||||
|
||||
The HTTP API examples in this guide use [cURL](https://curl.se/) to send an API request, but you can use any HTTP client._
|
||||
|
||||
> [!Note]
|
||||
> #### Store secure tokens in a secret store
|
||||
>
|
||||
> Token strings are returned _only_ on token creation.
|
||||
> We recommend storing database tokens in a **secure secret store**.
|
||||
> If you lose a resource token string, revoke the token and create a new one.
|
||||
|
||||
## Create a database token
|
||||
|
||||
{{< tabs-wrapper >}}
|
||||
{{% tabs %}}
|
||||
[influxdb3](#)
|
||||
[HTTP API](#)
|
||||
{{% /tabs %}}
|
||||
{{% tab-content %}}
|
||||
|
||||
<!------------------------------- BEGIN INFLUXDB3 ----------------------------->
|
||||
|
||||
Use the [`influxdb3 create token` command](/influxdb3/enterprise/reference/cli/influxdb3/create/token/)
|
||||
to create a database token with permissions for reading and writing data in
|
||||
your {{% product-name %}} instance.
|
||||
|
||||
In your terminal, run the `influxdb3 create token` command and provide the following:
|
||||
|
||||
- `--permission` flag to create a token with permissions
|
||||
- `--name` flag with a unique description of the token
|
||||
- _Options_, for example:
|
||||
- `--expiry` option with the token expiration time as a duration.
|
||||
If an expiration isn't set, the token does not expire until revoked.
|
||||
- Token permissions (read and write) in the `RESOURCE_TYPE:RESOURCE_NAMES:ACTIONS` format--for example:
|
||||
|
||||
```
|
||||
db:DATABASE1,DATABASE2:read,write
|
||||
```
|
||||
|
||||
- `db:`: The `db` resource type, which specifies the token is for a database.
|
||||
- `DATABASE1,DATABASE2`: The names of the databases to grant permissions to.
|
||||
The resource names part supports the `*` wildcard, which grants read or write permissions to all databases.
|
||||
- `read,write`: The permissions to grant to the token.
|
||||
|
||||
{{% code-placeholders "DATABASE1|DATABASE2|1y" %}}
|
||||
|
||||
```bash
|
||||
influxdb3 create token \
|
||||
--permission \
|
||||
--expiry 1y \
|
||||
--name "Read-write on DATABASE1, DATABASE2" \
|
||||
"db:DATABASE1,DATABASE2:read,write"
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE1`{{% /code-placeholder-key %}}, {{% code-placeholder-key %}}`DATABASE2`{{% /code-placeholder-key %}}:
|
||||
your {{% product-name %}} [database](/influxdb3/enterprise/admin/databases/)
|
||||
- {{% code-placeholder-key %}}`1y`{{% /code-placeholder-key %}}:
|
||||
the token expiration time as a
|
||||
duration.
|
||||
|
||||
The output is the token string in plain text.
|
||||
|
||||
<!-------------------------------- END INFLUXDB3 ------------------------------>
|
||||
{{% /tab-content %}}
|
||||
{{% tab-content %}}
|
||||
<!------------------------------- BEGIN cURL ---------------------------------->
|
||||
|
||||
Send a request to the following {{% product-name %}} endpoint:
|
||||
|
||||
{{% api-endpoint endpoint="http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" method="post" %}}
|
||||
|
||||
Provide the following request headers:
|
||||
|
||||
- `Accept: application/json` to ensure the response body is JSON content
|
||||
- `Content-Type: application/json` to indicate the request body is JSON content
|
||||
- `Authorization: Bearer` and the [admin token](/influxdb3/enterprise/admin/tokens/admin/)
|
||||
for your instance to authorize the request
|
||||
|
||||
In the request body, provide the following parameters:
|
||||
|
||||
- `token_name`: a description of the token, unique within the instance
|
||||
- `resource_type`: the resource type for the token, which is always `db`
|
||||
- `resource_identifier`: an array of database names to grant permissions to
|
||||
- The resource identifier field supports the `*` wildcard, which grants read or write
|
||||
permissions to all databases.
|
||||
- `permissions`: an array of token permission actions (`"read"`, `"write"`) for the database
|
||||
- `expiry_secs`: Specify the token expiration time in seconds.
|
||||
|
||||
The following example shows how to use the HTTP API to create a database token:
|
||||
|
||||
{{% code-placeholders "DATABASE1|DATABASE2|300000" %}}
|
||||
|
||||
```bash
|
||||
curl \
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"token_name": "Read-write for DATABASE1, DATABASE2",
|
||||
"permissions": [{
|
||||
"resource_type": "db",
|
||||
"resource_identifier": ["DATABASE1","DATABASE2"],
|
||||
"actions": ["read","write"]
|
||||
}],
|
||||
"expiry_secs": 300000
|
||||
}'
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace the following in your request:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE1`{{% /code-placeholder-key %}}, {{% code-placeholder-key %}}`DATABASE2`{{% /code-placeholder-key %}}:
|
||||
your {{% product-name %}} [database](/influxdb3/enterprise/admin/databases/)
|
||||
- {{% code-placeholder-key %}}`300000`{{% /code-placeholder-key %}}:
|
||||
the token expiration time in seconds.
|
||||
|
||||
The response body contains token details, including the `token` field with the
|
||||
token string in plain text.
|
||||
|
||||
<!------------------------------- END cURL ------------------------------------>
|
||||
{{% /tab-content %}}
|
||||
{{< /tabs-wrapper >}}
|
||||
|
||||
### Examples
|
||||
|
||||
- [Create a token with read and write access to a database](#create-a-token-with-read-and-write-access-to-a-database)
|
||||
- [Create a token with read and write access to all databases](#create-a-token-with-read-and-write-access-to-all-databases)
|
||||
- [Create a token with read-only access to a database](#create-a-token-with-read-only-access-to-a-database)
|
||||
- [Create a token with read-only access to multiple databases](#create-a-token-with-read-only-access-to-multiple-databases)
|
||||
- [Create a token with mixed permissions to multiple databases](#create-a-token-with-mixed-permissions-to-multiple-databases)
|
||||
- [Create a token that expires in seven days](#create-a-token-that-expires-in-seven-days)
|
||||
|
||||
In the examples below, replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}: your {{< product-name >}} [database](/influxdb3/enterprise/admin/databases/)
|
||||
- {{% code-placeholder-key %}}`DATABASE2_NAME`{{% /code-placeholder-key %}}: your {{< product-name >}} [database](/influxdb3/enterprise/admin/databases/)
|
||||
- {{% code-placeholder-key %}}`ADMIN TOKEN`{{% /code-placeholder-key %}}: the [admin token](/influxdb3/enterprise/admin/tokens/admin/) for your {{% product-name %}} instance
|
||||
{{% code-placeholders "DATABASE_NAME|DATABASE2_NAME|ADMIN_TOKEN" %}}
|
||||
|
||||
#### Create a token with read and write access to a database
|
||||
|
||||
{{< code-tabs-wrapper >}}
|
||||
{{% code-tabs %}}
|
||||
[influxdb3](#)
|
||||
[HTTP API](#)
|
||||
{{% /code-tabs %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
influxdb3 create token \
|
||||
--permission \
|
||||
--name "Read/write token for DATABASE_NAME" \
|
||||
db:DATABASE_NAME:read,write
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
curl \
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--data '{
|
||||
"token_name": "Read/write token for DATABASE_NAME",
|
||||
"permissions": [{
|
||||
"resource_type": "db",
|
||||
"resource_identifier": ["DATABASE_NAME"],
|
||||
"actions": ["read","write"]
|
||||
}]
|
||||
}'
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
||||
#### Create a token with read and write access to all databases
|
||||
|
||||
{{< code-tabs-wrapper >}}
|
||||
{{% code-tabs %}}
|
||||
[influxdb3](#)
|
||||
[HTTP API](#)
|
||||
{{% /code-tabs %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
influxdb3 create token \
|
||||
--permission \
|
||||
--name "Read/write token for all databases" \
|
||||
db:*:read,write
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
curl \
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--data '{
|
||||
"token_name": "Read/write token for all databases",
|
||||
"permissions": [{
|
||||
"resource_type": "db",
|
||||
"resource_identifier": ["*"],
|
||||
"actions": ["read","write"]
|
||||
}]
|
||||
}'
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
||||
#### Create a token with read-only access to a database
|
||||
|
||||
{{< code-tabs-wrapper >}}
|
||||
{{% code-tabs %}}
|
||||
[influxdb3](#)
|
||||
[HTTP API](#)
|
||||
{{% /code-tabs %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
influxdb3 create token \
|
||||
--permission \
|
||||
--name "Read-only token for DATABASE_NAME" \
|
||||
db:DATABASE_NAME:read
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
curl \
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--data '{
|
||||
"token_name": "Read-only token for DATABASE_NAME",
|
||||
"permissions": [{
|
||||
"resource_type": "db",
|
||||
"resource_identifier": ["DATABASE_NAME"],
|
||||
"actions": ["read"]
|
||||
}]
|
||||
}'
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
||||
#### Create a token with read-only access to multiple databases
|
||||
|
||||
{{< code-tabs-wrapper >}}
|
||||
{{% code-tabs %}}
|
||||
[influxdb3](#)
|
||||
[HTTP API](#)
|
||||
{{% /code-tabs %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
influxdb3 create token \
|
||||
--permission \
|
||||
--name "Read-only token for DATABASE_NAME and DATABASE2_NAME" \
|
||||
db:DATABASE_NAME,DATABASE2_NAME:read
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
curl \
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--data '{
|
||||
"token_name": "Read-only token for DATABASE_NAME and DATABASE2_NAME",
|
||||
"permissions": [{
|
||||
"resource_type": "db",
|
||||
"resource_identifier": ["DATABASE_NAME","DATABASE2_NAME"],
|
||||
"actions": ["read"]
|
||||
}]
|
||||
}'
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
||||
#### Create a token that expires in seven days
|
||||
|
||||
{{< code-tabs-wrapper >}}
|
||||
{{% code-tabs %}}
|
||||
[influxdb3](#)
|
||||
[HTTP API](#)
|
||||
{{% /code-tabs %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
influxdb3 create token \
|
||||
--permission \
|
||||
--expiry 7d \
|
||||
--name "Read/write token for DATABASE_NAME with 7d expiration" \
|
||||
db:DATABASE_NAME:read,write
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
|
||||
```bash
|
||||
curl \
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--data '{
|
||||
"token_name": "Read/write token for DATABASE_NAME with 7d expiration",
|
||||
"permissions": [{
|
||||
"resource_type": "db",
|
||||
"resource_identifier": ["DATABASE_NAME"],
|
||||
"actions": ["read","write"]
|
||||
}],
|
||||
"expiry_secs": 604800
|
||||
}'
|
||||
```
|
||||
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
## Create a system token
|
||||
|
||||
System tokens have the `system` resource type and allow for read-only access
|
||||
to system information and metrics from your server.
|
||||
|
||||
You can create system tokens for the following system resources:
|
||||
|
||||
- `health`: system health information from the `/health` HTTP API endpoint
|
||||
- `metrics`: system metrics information from the `/metrics` HTTP API endpoint
|
||||
- `ping`: system ping information from the `/ping` HTTP API endpoint
|
||||
|
||||
{{< tabs-wrapper >}}
|
||||
{{% tabs %}}
|
||||
[influxdb3](#)
|
||||
[HTTP API](#)
|
||||
{{% /tabs %}}
|
||||
{{% tab-content %}}
|
||||
|
||||
<!------------------------------- BEGIN INFLUXDB3 ----------------------------->
|
||||
|
||||
Use the [`influxdb3 create token` command](/influxdb3/enterprise/reference/cli/influxdb3/create/token/)
|
||||
to create a system token with permissions for reading system information from
|
||||
your {{% product-name %}} instance.
|
||||
|
||||
In your terminal, run the `influxdb3 create token` command and provide the following:
|
||||
|
||||
- `--permission` flag to create a token with permissions
|
||||
- `--name` flag with a unique description of the token
|
||||
- _Options_, for example:
|
||||
- `--expiry` option with the token expiration time as a duration.
|
||||
If an expiration isn't set, the token does not expire until revoked.
|
||||
- Token permissions in the `RESOURCE_TYPE:RESOURCE_NAMES:ACTIONS` format--for example:
|
||||
|
||||
```
|
||||
system:health:read
|
||||
```
|
||||
|
||||
- `system:`: The `system` resource type, which specifies the token is for system information.
|
||||
- `health`: The specific system resource to grant permissions to.
|
||||
- `read`: The permission to grant to the token (system tokens are always read-only).
|
||||
|
||||
{{% code-placeholders "1y" %}}
|
||||
|
||||
```bash
|
||||
influxdb3 create token \
|
||||
--permission \
|
||||
--expiry 1y \
|
||||
--name "System health token" \
|
||||
"system:health:read"
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`1y`{{% /code-placeholder-key %}}:
|
||||
the token expiration time as a
|
||||
duration.
|
||||
|
||||
The output is the token string in plain text.
|
||||
|
||||
<!-------------------------------- END INFLUXDB3 ------------------------------>
|
||||
{{% /tab-content %}}
|
||||
{{% tab-content %}}
|
||||
<!------------------------------- BEGIN cURL ---------------------------------->
|
||||
Send a request to the following {{% product-name %}} endpoint:
|
||||
|
||||
{{% api-endpoint endpoint="http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" method="post" %}}
|
||||
|
||||
Provide the following request headers:
|
||||
|
||||
- `Accept: application/json` to ensure the response body is JSON content
|
||||
- `Content-Type: application/json` to indicate the request body is JSON content
|
||||
- `Authorization: Bearer` and the [admin token](/influxdb3/enterprise/admin/tokens/admin/)
|
||||
for your instance to authorize the request
|
||||
|
||||
In the request body, provide the following parameters:
|
||||
|
||||
- `token_name`: a description of the token, unique within the instance
|
||||
- `resource_type`: the resource type for the token, which is `system` for system tokens
|
||||
- `resource_identifier`: an array of system resource names to grant permissions to
|
||||
- The resource identifier field supports the `*` wildcard, which grants read or write
|
||||
permissions to all system information resources.
|
||||
- `permissions`: an array of token permission actions (only `"read"` for system tokens)
|
||||
- `expiry_secs`: Specify the token expiration time in seconds.
|
||||
|
||||
The following example shows how to use the HTTP API to create a system token:
|
||||
|
||||
{{% code-placeholders "300000" %}}
|
||||
|
||||
```bash
|
||||
curl \
|
||||
"http://{{< influxdb/host >}}/api/v3/enterprise/configure/token" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--data '{
|
||||
"token_name": "System health token",
|
||||
"permissions": [{
|
||||
"resource_type": "system",
|
||||
"resource_identifier": ["health"],
|
||||
"actions": ["read"]
|
||||
}],
|
||||
"expiry_secs": 300000
|
||||
}'
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace the following in your request:
|
||||
|
||||
- {{% code-placeholder-key %}}`300000`{{% /code-placeholder-key %}}:
|
||||
the token expiration time in seconds.
|
||||
|
||||
The response body contains token details, including the `token` field with the
|
||||
token string in plain text.
|
||||
|
||||
<!------------------------------- END cURL ------------------------------------>
|
||||
{{% /tab-content %}}
|
||||
{{< /tabs-wrapper >}}
|
||||
|
||||
|
||||
## Output format
|
||||
|
||||
The `influxdb3 create token` command supports the `--format json` option.
|
||||
By default, the command outputs the token string.
|
||||
For easier programmatic access to the command output, include `--format json`
|
||||
with your command to format the output as JSON.
|
||||
|
||||
The `/api/v3/configure/token` endpoint outputs JSON format in the response body.
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: List resource tokens
|
||||
description: >
|
||||
Use the `influxdb3 show tokens` command
|
||||
to list resource tokens in your InfluxDB 3 Enterprise instance.
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Resource tokens
|
||||
weight: 202
|
||||
list_code_example: |
|
||||
##### CLI
|
||||
```bash
|
||||
influxdb3 show tokens \
|
||||
--token ADMIN_TOKEN
|
||||
--host http://{{< influxdb/host >}}
|
||||
```
|
||||
aliases:
|
||||
- /influxdb3/enterprise/admin/tokens/list/
|
||||
related:
|
||||
- /influxdb3/enterprise/reference/cli/influxdb3/token/list/
|
||||
- /influxdb3/enterprise/reference/api/
|
||||
source: /shared/influxdb3-admin/tokens/admin/list.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-admin/tokens/admin/list.md
|
||||
-->
|
|
@ -39,7 +39,7 @@ influxdb3 [GLOBAL-OPTIONS] [COMMAND]
|
|||
| Option | | Description |
|
||||
| :----- | :------------------------------------ | :------------------------------------------------------------------------------------------------ |
|
||||
| | `--num-threads` | Maximum number of IO runtime threads to use |
|
||||
| | `--io-runtime-type` | IO tokio runtime type (`current-thread`, `multi-thread` _(default)_, or `multi-thread-alt`) |
|
||||
| | `--io-runtime-type` | IO tokio runtime type (`current-thread`, `multi-thread` _(default)_, or `multi-thread-alt`) |
|
||||
| | `--io-runtime-disable-lifo-slot` | Disable LIFO slot of IO runtime |
|
||||
| | `--io-runtime-event-interval` | Number of scheduler ticks after which the IOtokio runtime scheduler will poll for external events |
|
||||
| | `--io-runtime-global-queue-interval` | Number of scheduler ticks after which the IO runtime scheduler will poll the global task queue |
|
||||
|
@ -48,6 +48,7 @@ influxdb3 [GLOBAL-OPTIONS] [COMMAND]
|
|||
| | `--io-runtime-thread-keep-alive` | Custom timeout for a thread in the blocking pool of the tokio IO runtime |
|
||||
| | `--io-runtime-thread-priority` | Set thread priority tokio IO runtime workers |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
| `-V` | `--version` | Print version |
|
||||
|
||||
### Option environment variables
|
||||
|
|
|
@ -59,6 +59,7 @@ influxdb3 serve [OPTIONS] \
|
|||
| | `--object-store-max-retries` | _See [configuration options](/influxdb3/enterprise/reference/config-options/#object-store-max-retries)_ |
|
||||
| | `--object-store-retry-timeout` | _See [configuration options](/influxdb3/enterprise/reference/config-options/#object-store-retry-timeout)_ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
| | `--object-store-cache-endpoint` | _See [configuration options](/influxdb3/enterprise/reference/config-options/#object-store-cache-endpoint)_ |
|
||||
| | `--log-filter` | _See [configuration options](/influxdb3/enterprise/reference/config-options/#log-filter)_ |
|
||||
| `-v` | `--verbose` | Enable verbose output |
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: Glossary
|
||||
description: >
|
||||
Terms related to InfluxData products and platforms.
|
||||
weight: 109
|
||||
menu:
|
||||
influxdb3_enterprise:
|
||||
parent: Reference
|
||||
influxdb3/enterprise/tags: [glossary]
|
||||
source: /shared/influxdb3-reference/glossary.md
|
||||
---
|
||||
|
||||
<!-- The content for this page is at
|
||||
// SOURCE content/shared/influxdb3-reference/glossary.md
|
||||
-->
|
|
@ -0,0 +1,106 @@
|
|||
|
||||
The {{< product-name >}} Distinct Value Cache (DVC) lets you cache distinct
|
||||
values of one or more columns in a table, improving the performance of
|
||||
queries that return distinct tag and field values.
|
||||
|
||||
The DVC is an in-memory cache that stores distinct values for specific columns
|
||||
in a table. When you create an DVC, you can specify what columns' distinct
|
||||
values to cache, the maximum number of distinct value combinations to cache, and
|
||||
the maximum age of cached values. A DVC is associated with a table, which can
|
||||
have multiple DVCs.
|
||||
|
||||
{{< children type="anchored-list" >}}
|
||||
- [Important things to know about the Distinct Value Cache](#important-things-to-know-about-the-distinct-value-cache)
|
||||
- [High cardinality limits](#high-cardinality-limits)
|
||||
{{% show-in "core" %}}
|
||||
- [Distinct Value Caches are flushed when the server stops](#distinct-value-caches-are-flushed-when-the-server-stops)
|
||||
{{% /show-in %}}
|
||||
{{% show-in "enterprise" %}}
|
||||
- [Distinct Value Caches are rebuilt on restart](#distinct-value-caches-are-rebuilt-on-restart)
|
||||
{{% /show-in %}}
|
||||
|
||||
Consider a dataset with the following schema:
|
||||
|
||||
- wind_data (table)
|
||||
- tags:
|
||||
- country
|
||||
- _multiple European countries_
|
||||
- county
|
||||
- _multiple European counties_
|
||||
- city
|
||||
- _multiple European cities_
|
||||
- fields:
|
||||
- wind_speed (float)
|
||||
- wind_direction (integer)
|
||||
|
||||
If you cache distinct values for `country`, `county`, and `city`, the DVC looks
|
||||
similar to this:
|
||||
|
||||
| country | county | city |
|
||||
| :------------- | :---------------- | :----------- |
|
||||
| Austria | Salzburg | Salzburg |
|
||||
| Austria | Vienna | Vienna |
|
||||
| Belgium | Antwerp | Antwerp |
|
||||
| Belgium | West Flanders | Bruges |
|
||||
| Czech Republic | Liberec Region | Liberec |
|
||||
| Czech Republic | Prague | Prague |
|
||||
| Denmark | Capital Region | Copenhagen |
|
||||
| Denmark | Southern Denmark | Odense |
|
||||
| Estonia | Ida-Viru County | Kohtla-Järve |
|
||||
| Estonia | Ida-Viru County | Narva |
|
||||
| ... | ... | ... |
|
||||
|
||||
> [!Important]
|
||||
> #### Repeated values in DVC results
|
||||
>
|
||||
> Distinct values may appear multiple times in a column when querying the DVC,
|
||||
> but only when associated with distinct values in other columns.
|
||||
> If you query a single column in the DVC, no values are repeated in the results.
|
||||
|
||||
> [!Note]
|
||||
> #### Null column values
|
||||
>
|
||||
> _Null_ column values are still considered values and are cached in the DVC.
|
||||
> If you write data to a table and don't provide a value for an existing column,
|
||||
> the column value is cached as _null_ and treated as a distinct value.
|
||||
|
||||
{{< children hlevel="h2" >}}
|
||||
|
||||
## Important things to know about the Distinct Value Cache
|
||||
|
||||
DVCs are stored in memory; the larger the cache, the more memory your InfluxDB 3
|
||||
node requires to maintain it. Consider the following:
|
||||
|
||||
- [High cardinality limits](#high-cardinality-limits)
|
||||
{{% show-in "core" %}}
|
||||
- [Distinct Value Caches are flushed when the server stops](#distinct-value-caches-are-flushed-when-the-server-stops)
|
||||
{{% /show-in %}}
|
||||
{{% show-in "enterprise" %}}
|
||||
- [Distinct Value Caches are rebuilt on restart](#distinct-value-caches-are-rebuilt-on-restart)
|
||||
{{% /show-in %}}
|
||||
|
||||
### High cardinality limits
|
||||
|
||||
“Cardinality” refers to the number of unique key column combinations in your
|
||||
cached data and essentially defines the maximum number of rows to store in your
|
||||
DVC. While the InfluxDB 3 storage engine is not limited by cardinality,
|
||||
it does affect the DVC. You can define a custom maximum cardinality limit for
|
||||
a DVC, but higher cardinality increases memory requirements for
|
||||
storing the DVC and can affect DVC query performance.
|
||||
|
||||
{{% show-in "core" %}}
|
||||
### Distinct Value Caches are flushed when the server stops
|
||||
|
||||
Because the DVC is an in-memory cache, the cache is flushed any time the server
|
||||
stops. After a server restart, {{% product-name %}} only writes new values to
|
||||
the DVC when you write data, so there may be a period of time when some values are
|
||||
unavailable in the DVC.
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
### Distinct Value Caches are rebuilt on restart
|
||||
|
||||
Because the DVC is an in-memory cache, the cache is flushed any time the server
|
||||
stops. After a server restarts, {{< product-name >}} uses persisted data to
|
||||
rebuild the DVC.
|
||||
{{% /show-in %}}
|
|
@ -0,0 +1,108 @@
|
|||
|
||||
Use the [`influxdb3 create distinct_cache` command](/influxdb3/version/reference/cli/influxdb3/create/distinct_cache/)
|
||||
to create a Distinct Value Cache (DVC). Provide the following:
|
||||
|
||||
- **Database** (`-d`, `--database`): _({{< req >}})_ The name of the database to
|
||||
associate the DVC with. You can also use the `INFLUXDB3_DATABASE_NAME`
|
||||
environment variable to specify the database.
|
||||
- **Token** (`--token`): _({{< req >}})_ Your {{< product-name >}}
|
||||
{{% show-in "enterprise" %}}admin {{% /show-in %}}authentication token.
|
||||
You can also use the `INFLUXDB3_AUTH_TOKEN` environment variable to specify
|
||||
the token.
|
||||
- **Table** (`-t`, `--table`): _({{< req >}})_ The name of the table to
|
||||
associate the DVC with.
|
||||
{{% show-in "enterprise" %}}
|
||||
- **Node specification** (`-n`, `--node-spec`): Specify which nodes the DVC
|
||||
should be configured on.
|
||||
{{% /show-in %}}
|
||||
- **Columns** (`--columns`): _({{< req >}})_ Specify which columns to cache
|
||||
distinct values for. These are typically tag columns but can also be
|
||||
string fields.
|
||||
- **Maximum cardinality** (`--max-cardinality`): Specify the maximum number of
|
||||
distinct value combinations to store in the cache. The default maximum
|
||||
cardinality is `100000`.
|
||||
- **Maximum age** (`--max-age`): Specify the maximum age of distinct values to
|
||||
keep in the DVC in
|
||||
[humantime](https://docs.rs/humantime/latest/humantime/fn.parse_duration.html)
|
||||
form. The default maximum age is `24 hours`.
|
||||
- **Cache name**: A unique name for the cache. If you don’t provide one,
|
||||
InfluxDB automatically generates a cache name for you.
|
||||
|
||||
{{% show-in "core" %}}
|
||||
<!----------------------------- BEGIN CORE EXAMPLE ---------------------------->
|
||||
{{% code-placeholders "(DATABASE|TABLE|DVC)_NAME|AUTH_TOKEN|NODE_SPEC|COLUMNS|MAX_(CARDINALITY|AGE)" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create distinct_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
--columns COLUMNS \
|
||||
--max-cardinality MAX_CARDINALITY \
|
||||
--max-age MAX_AGE \
|
||||
DVC_NAME
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
<!------------------------------ END CORE EXAMPLE ----------------------------->
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
<!-------------------------- BEGIN ENTERPRISE EXAMPLE ------------------------->
|
||||
{{% code-placeholders "(DATABASE|TABLE|DVC)_NAME|AUTH_TOKEN|NODE_SPEC|COLUMNS|MAX_(CARDINALITY|AGE)" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create distinct_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
--node_spec NODE_SPEC \
|
||||
--columns COLUMNS \
|
||||
--max-cardinality MAX_CARDINALITY \
|
||||
--max-age MAX_AGE \
|
||||
DVC_NAME
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
<!--------------------------- END ENTERPRISE EXAMPLE -------------------------->
|
||||
{{% /show-in %}}
|
||||
|
||||
Replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the database to associate the DVC with
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
your {{< product-name >}} {{% show-in "enterprise" %}}admin {{% /show-in %}}
|
||||
authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the table to associate the DVC with
|
||||
{{% show-in "enterprise" %}}
|
||||
- {{% code-placeholder-key %}}`NODE_SPEC`{{% /code-placeholder-key %}}:
|
||||
a comma-delimited list of node IDs to configure the DVC on--for example:
|
||||
`node-01,node-02`.
|
||||
{{% /show-in %}}
|
||||
- {{% code-placeholder-key %}}`COLUMNS`{{% /code-placeholder-key %}}:
|
||||
a comma-delimited list of columns to cache distinct values for--for example:
|
||||
`country,county,city`
|
||||
- {{% code-placeholder-key %}}`MAX_CARDINALITY`{{% /code-placeholder-key %}}:
|
||||
the maximum number of distinct value combinations to cache--for example: `10000`
|
||||
- {{% code-placeholder-key %}}`MAX_AGE`{{% /code-placeholder-key %}}:
|
||||
the maximum age of distinct values to keep in the cache in
|
||||
[humantime](https://docs.rs/humantime/latest/humantime/fn.parse_duration.html)
|
||||
form--for example: `6h`, `1 day`, `1 week`
|
||||
- {{% code-placeholder-key %}}`DVC_NAME`{{% /code-placeholder-key %}}:
|
||||
a unique name for the DVC
|
||||
|
||||
> [!Note]
|
||||
> #### Values are cached on write
|
||||
>
|
||||
> Values are cached on write. When you create a cache, it will not cache
|
||||
> previously written points, only newly written points.
|
||||
>
|
||||
> #### DVC size and persistence
|
||||
>
|
||||
> The DVC is stored in memory, so it's important to consider the size and
|
||||
> persistence of the cache. For more information, see
|
||||
> [Important things to know about the Distinct Value Cache](/influxdb3/version/admin/distinct-value-cache/#important-things-to-know-about-the-distinct-value-cache).
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
Use the [`influxdb3 delete distinct_cache` command](/influxdb3/version/reference/cli/influxdb3/delete/distinct_cache/)
|
||||
to delete a Distinct Value Cache (DVC). Provide the following:
|
||||
|
||||
- **Database** (`-d`, `--database`): _({{< req >}})_ The name of the database
|
||||
that the DVC you want to delete is associated with. You can also use the
|
||||
`INFLUXDB3_DATABASE_NAME` environment variable to specify the database.
|
||||
- **Token** (`--token`): _({{< req >}})_ Your {{< product-name >}}
|
||||
{{% show-in "enterprise" %}}admin {{% /show-in %}}authentication token.
|
||||
You can also use the `INFLUXDB3_AUTH_TOKEN` environment variable to specify
|
||||
the token.
|
||||
- **Table** (`-t`, `--table`): _({{< req >}})_ The name of the table that the
|
||||
DVC you want to delete is associated with.
|
||||
- **Cache name**: The name of the DVC to delete.
|
||||
|
||||
{{% code-placeholders "(DATABASE|TABLE|DVC)_NAME|AUTH_TOKEN" %}}
|
||||
```bash
|
||||
influxdb3 delete distinct_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
DVC_NAME
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the database that the DVC you want to delete is associated with
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
your {{< product-name >}} admin authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the table associated with the DVC you want to delete
|
||||
- {{% code-placeholder-key %}}`DVC_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the DVC to delete
|
||||
|
||||
> [!Caution]
|
||||
> This is a destructive action that cannot be undone. Once deleted, any queries
|
||||
> against the deleted DVC will return an error.
|
|
@ -0,0 +1,33 @@
|
|||
|
||||
Use the [`distinct_cache()` SQL function](/influxdb3/version/reference/sql/functions/cache/#distinct_cache)
|
||||
in the `FROM` clause of an SQL `SELECT` statement to query data from the
|
||||
Distinct Value Cache (DVC).
|
||||
|
||||
> [!Important]
|
||||
> You must use SQL to query the DVC.
|
||||
> InfluxQL does not support the `distinct_cache()` function.
|
||||
|
||||
`distinct_cache()` supports the following arguments:
|
||||
|
||||
- **table_name**: _({{< req >}})_ The name of the table the DVC is associated with
|
||||
formatted as a string literal.
|
||||
- **cache_name**: The name of the DVC to query formatted as a string literal.
|
||||
This argument is only required if there is more than one DVC associated with
|
||||
the specified table.
|
||||
|
||||
```sql
|
||||
SELECT * FROM distinct_cache('table_name', 'cache_name')
|
||||
```
|
||||
|
||||
You can use other [SQL clauses](/influxdb3/version/reference/sql/#statements-and-clauses)
|
||||
to modify query results. For example, you can use the `WHERE` clause to return
|
||||
the distinct tag values associated with another distinct tag value:
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
city
|
||||
FROM
|
||||
distinct_cache('wind_data', 'windDistinctCache')
|
||||
WHERE
|
||||
country = 'Spain'
|
||||
```
|
|
@ -0,0 +1,69 @@
|
|||
|
||||
Use the [`influxdb3 show system table` command](/influxdb3/version/reference/cli/influxdb3/show/syste/table/)
|
||||
to query and output Distinct Value Cache information from the `distinct_caches`
|
||||
system table.
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
table distinct_caches
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
This returns a table similar to the following:
|
||||
|
||||
| table | name | column_ids | column_names | max_cardinality | max_age_seconds |
|
||||
| :-------- | :--------------- | :--------- | :---------------------- | --------------: | --------------: |
|
||||
| wind_data | wind_distinct | [0, 1, 2] | [country, county, city] | 100000 | 86400 |
|
||||
| weather | weather_distinct | [0] | [location] | 100 | 604800 |
|
||||
| bitcoin | bitcoin_dis | [0, 1] | [code, crypto] | 5000 | 86400 |
|
||||
| home | home_distinct | [0, 1] | [room, wall] | 12000 | 15770000 |
|
||||
|
||||
## Query specific columns from the distinct_caches system table
|
||||
|
||||
Use the `--select` option to query specific columns from the `distinct_caches`
|
||||
system table. Provide a comma-delimited list of columns to return:
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
table distinct_caches \
|
||||
--select name,column_names,max_age_seconds
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
## Sort distinct_caches system table output
|
||||
|
||||
Use the `--order-by` option to sort data from the `distinct_caches` system table by
|
||||
specific columns. Provide a comma-delimited list of columns to sort by:
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
table distinct_caches \
|
||||
--order-by max_cardinality,max_age_seconds
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
> [!Note]
|
||||
> Results are sorted in ascending order based on the provided columns.
|
||||
|
||||
In the examples above, replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the database to query system data from
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
your {{< product-name >}} {{% show-in "enterprise" %}}admin {{% /show-in %}}
|
||||
authentication token
|
|
@ -0,0 +1,160 @@
|
|||
|
||||
The {{< product-name >}} Last Value Cache (LVC) lets you cache the most recent
|
||||
values for specific fields in a table, improving the performance of queries that
|
||||
return the most recent value of a field for specific series or the last N values
|
||||
of a field.
|
||||
|
||||
The LVC is an in-memory cache that stores the last N number of values for
|
||||
specific fields of series in a table. When you create an LVC, you can specify
|
||||
what fields to cache, what tags to use to identify each series, and the
|
||||
number of values to cache for each unique series.
|
||||
An LVC is associated with a table, which can have multiple LVCs.
|
||||
|
||||
{{< children type="anchored-list" >}}
|
||||
- [Important things to know about the Last Value Cache](#important-things-to-know-about-the-last-value-cache)
|
||||
- [High cardinality key columns](#high-cardinality-key-columns)
|
||||
- [Value count](#value-count)
|
||||
{{% show-in "core" %}}
|
||||
- [Last Value Caches are flushed when the server stops](#last-value-caches-are-flushed-when-the-server-stops)
|
||||
{{% /show-in %}}
|
||||
{{% show-in "enterprise" %}}
|
||||
- [Last Value Caches are rebuilt on restart](#last-value-caches-are-rebuilt-on-restart)
|
||||
{{% /show-in %}}
|
||||
- [Defining value columns](#defining-value-columns)
|
||||
|
||||
Consider a dataset with the following schema (similar to the
|
||||
[home sensor sample dataset](/influxdb3/version/reference/sample-data/#home-sensor-data)):
|
||||
|
||||
- home (table)
|
||||
- tags:
|
||||
- room
|
||||
- kitchen
|
||||
- living room
|
||||
- wall
|
||||
- north
|
||||
- east
|
||||
- south
|
||||
- fields:
|
||||
- co (integer)
|
||||
- temp (float)
|
||||
- hum (float)
|
||||
|
||||
If you cache the last value for each field per room and wall, the LVC looks
|
||||
similar to this:
|
||||
|
||||
{{% influxdb/custom-timestamps %}}
|
||||
|
||||
| room | wall | co | hum | temp | time |
|
||||
| :---------- | :---- | --: | ---: | ---: | :------------------- |
|
||||
| Kitchen | east | 26 | 36.5 | 22.7 | 2022-01-01T20:00:00Z |
|
||||
| Living Room | north | 17 | 36.4 | 22.2 | 2022-01-01T20:00:00Z |
|
||||
| Living Room | south | 16 | 36.3 | 22.1 | 2022-01-01T20:00:00Z |
|
||||
|
||||
If you cache the last four values of each field per room and wall, the LVC looks
|
||||
similar to the following:
|
||||
|
||||
| room | wall | co | hum | temp | time |
|
||||
| :---------- | :---- | --: | ---: | ---: | :------------------ |
|
||||
| Kitchen | east | 26 | 36.5 | 22.7 | 2022-01-01T20:00:00Z |
|
||||
| Kitchen | east | 9 | 36.0 | 22.7 | 2022-01-01T17:00:00Z |
|
||||
| Kitchen | east | 3 | 36.2 | 22.7 | 2022-01-01T15:00:00Z |
|
||||
| Kitchen | east | 0 | 36.1 | 22.7 | 2022-01-01T10:00:00Z |
|
||||
| Living Room | north | 17 | 36.4 | 22.2 | 2022-01-01T20:00:00Z |
|
||||
| Living Room | north | 5 | 35.9 | 22.6 | 2022-01-01T17:00:00Z |
|
||||
| Living Room | north | 1 | 36.1 | 22.3 | 2022-01-01T15:00:00Z |
|
||||
| Living Room | north | 0 | 36.0 | 21.8 | 2022-01-01T10:00:00Z |
|
||||
| Living Room | south | 16 | 36.3 | 22.1 | 2022-01-01T20:00:00Z |
|
||||
| Living Room | south | 4 | 35.8 | 22.5 | 2022-01-01T17:00:00Z |
|
||||
| Living Room | south | 0 | 36.0 | 22.3 | 2022-01-01T15:00:00Z |
|
||||
| Living Room | south | 0 | 35.9 | 21.8 | 2022-01-01T10:00:00Z |
|
||||
|
||||
{{% /influxdb/custom-timestamps %}}
|
||||
|
||||
> [!Note]
|
||||
> #### Null column values
|
||||
>
|
||||
> _Null_ column values are still considered values and are cached in the LVC.
|
||||
> If you write data to a table and don't provide a value for an existing column,
|
||||
> the column value is cached as _null_.
|
||||
|
||||
{{< children hlevel="h2" >}}
|
||||
|
||||
## Important things to know about the Last Value Cache
|
||||
|
||||
LVCs are stored in memory; the larger the cache, the more memory your InfluxDB 3 node requires to
|
||||
maintain it. Consider the following:
|
||||
|
||||
- [High cardinality key columns](#high-cardinality-key-columns)
|
||||
- [Value count](#value-count)
|
||||
{{% show-in "core" %}}
|
||||
- [Last Value Caches are flushed when the server stops](#last-value-caches-are-flushed-when-the-server-stops)
|
||||
{{% /show-in %}}
|
||||
{{% show-in "enterprise" %}}
|
||||
- [Last Value Caches are rebuilt on restart](#last-value-caches-are-rebuilt-on-restart)
|
||||
{{% /show-in %}}
|
||||
- [Defining value columns](#defining-value-columns)
|
||||
|
||||
### High cardinality key columns
|
||||
|
||||
“Cardinality” refers to the number of unique key column combinations in your
|
||||
cached data. While the InfluxDB 3 storage engine is not limited by cardinality,
|
||||
it does affect the LVC. Higher cardinality increases memory requirements for
|
||||
storing the LVC and can affect LVC query performance. We recommend the
|
||||
following:
|
||||
|
||||
- Only use tags important to your query workload as key columns in the LVC.
|
||||
Caching unnecessary tags or fields as key columns results in higher
|
||||
cardinality without any benefit.
|
||||
- Avoid including high-cardinality key columns in your LVC.
|
||||
- Don’t include multiple high-cardinality key columns in your LVC.
|
||||
|
||||
To estimate total key column cardinality in an LVC, use the
|
||||
following equation:
|
||||
|
||||
```txt
|
||||
num_uniq_col_val_N [× num_uniq_col_val_N …] = key_column_cardinality
|
||||
```
|
||||
|
||||
### Value count
|
||||
|
||||
By increasing the number of values to store in the LVC, you increase the number
|
||||
of rows stored in the cache and the amount of memory required to store them. Be
|
||||
judicious with the number of values to store. This count is per unique key
|
||||
column combination. If you include two tags as key columns, one with three
|
||||
unique values and the other with 10, you could have up to 30 unique key column
|
||||
combinations. If you want to keep the last 10 values, you could potentially
|
||||
have 300+ rows in the cache.
|
||||
|
||||
To get an idea of the number of rows required to cache the specified number of
|
||||
values, use the following equation:
|
||||
|
||||
```txt
|
||||
key_column_cardinality × count = number_of_rows
|
||||
```
|
||||
|
||||
{{% show-in "core" %}}
|
||||
### Last Value Caches are flushed when the server stops
|
||||
|
||||
Because the LVC is an in-memory cache, the cache is flushed any time the server
|
||||
stops. After a server restart, {{% product-name %}} only writes new values to the LVC when
|
||||
you write data, so there may be a period of time when some values are
|
||||
unavailable in the LVC.
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
### Last Value Caches are rebuilt on restart
|
||||
|
||||
Because the LVC is an in-memory cache, the cache is flushed any time the server
|
||||
stops. After a server restarts, {{< product-name >}} uses persisted data to
|
||||
rebuild the LVC.
|
||||
{{% /show-in %}}
|
||||
|
||||
### Defining value columns
|
||||
|
||||
When creating an LVC, if you include the `--value-columns` options to specify
|
||||
which fields to cache as value columns, any new fields added in the future will
|
||||
not be added to the cache.
|
||||
|
||||
However, if you omit the `--value-columns` option, all columns other than those
|
||||
specified as `--key-columns` are cached as value columns, including columns that
|
||||
are added later.
|
|
@ -0,0 +1,122 @@
|
|||
|
||||
Use the [`influxdb3 create last_cache` command](/influxdb3/version/reference/cli/influxdb3/create/last_cache/)
|
||||
to create a Last Value Cache (LVC). Provide the following:
|
||||
|
||||
- **Database** (`-d`, `--database`): _({{< req >}})_ The name of the database to
|
||||
associate the LVC with. You can also use the `INFLUXDB3_DATABASE_NAME`
|
||||
environment variable to specify the database.
|
||||
- **Token** (`--token`): _({{< req >}})_ Your {{< product-name >}}
|
||||
{{% show-in "enterprise" %}}admin {{% /show-in %}}authentication token.
|
||||
You can also use the `INFLUXDB3_AUTH_TOKEN` environment variable to specify
|
||||
the token.
|
||||
- **Table** (`-t`, `--table`): _({{< req >}})_ The name of the table to
|
||||
associate the LVC with.
|
||||
{{% show-in "enterprise" %}}
|
||||
- **Node specification** (`-n`, `--node-spec`): Specify which nodes the LVC
|
||||
should be configured on.
|
||||
{{% /show-in %}}
|
||||
- **Key columns** (`--key-columns`): Specify which columns to include in the
|
||||
primary key of the cache. Rows in the LVC are uniquely identified by their
|
||||
timestamp and key columns, so include all the columns you need to identify
|
||||
each row. These are typically tags, but you can use any columns with the
|
||||
following types:
|
||||
|
||||
- String
|
||||
- Integer
|
||||
- Unsigned integer
|
||||
- Boolean
|
||||
|
||||
- **Value columns** (`--value-columns`): Specify which columns to cache as value
|
||||
columns. These are typically fields but can also be tags. By default, `time` and
|
||||
columns other than those specified as `--key-columns` are cached as value columns.
|
||||
- **Count** (`--count`): The number of values to cache per unique key column combination.
|
||||
The supported range is `[1-10]`. The default count is `1`.
|
||||
- **Time-to-Live (TTL)** (`--ttl`): The time-to-live for cached values in
|
||||
[humantime](https://docs.rs/humantime/latest/humantime/fn.parse_duration.html)
|
||||
form. The default TTL is four hours.
|
||||
- **Cache name**: A unique name for the cache. If you don’t provide one,
|
||||
InfluxDB automatically generates a cache name for you.
|
||||
|
||||
{{% show-in "core" %}}
|
||||
<!----------------------------- BEGIN CORE EXAMPLE ---------------------------->
|
||||
{{% code-placeholders "(DATABASE|TABLE|LVC)_NAME|AUTH_TOKEN|(KEY|VALUE)_COLUMNS|COUNT|TTL" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create last_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
--key-columns KEY_COLUMNS \
|
||||
--value-columns VALUE_COLUMNS \
|
||||
--count COUNT \
|
||||
--ttl TTL\
|
||||
LVC_NAME
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
<!------------------------------ END CORE EXAMPLE ----------------------------->
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
<!-------------------------- BEGIN ENTERPRISE EXAMPLE ------------------------->
|
||||
{{% code-placeholders "(DATABASE|TABLE|LVC)_NAME|AUTH_TOKEN|NODE_SPEC|(KEY|VALUE)_COLUMNS|COUNT|TTL" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create last_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
--node_spec NODE_SPEC \
|
||||
--key-columns KEY_COLUMNS \
|
||||
--value-columns VALUE_COLUMNS \
|
||||
--count COUNT \
|
||||
--ttl TTL\
|
||||
LVC_NAME
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
<!--------------------------- END ENTERPRISE EXAMPLE -------------------------->
|
||||
{{% /show-in %}}
|
||||
|
||||
Replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the database to associate the LVC with
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
your {{< product-name >}} {{% show-in "enterprise" %}}admin {{% /show-in %}}
|
||||
authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the table to associate the LVC with
|
||||
{{% show-in "enterprise" %}}
|
||||
- {{% code-placeholder-key %}}`NODE_SPEC`{{% /code-placeholder-key %}}:
|
||||
a comma-delimited list of node IDs to configure the LVC on--for example:
|
||||
`node-01,node-02`.
|
||||
{{% /show-in %}}
|
||||
- {{% code-placeholder-key %}}`KEY_COLUMNS`{{% /code-placeholder-key %}}:
|
||||
a comma-delimited list of columns to use to unique identify each series--for
|
||||
example: `room,wall`
|
||||
- {{% code-placeholder-key %}}`VALUE_COLUMNS`{{% /code-placeholder-key %}}:
|
||||
a comma-delimited list of columns to cache as value columns--for
|
||||
example: `temp,hum,co`
|
||||
- {{% code-placeholder-key %}}`COUNT`{{% /code-placeholder-key %}}:
|
||||
the number of last values to cache per series--for example: `5`
|
||||
- {{% code-placeholder-key %}}`TTL`{{% /code-placeholder-key %}}:
|
||||
the TTL of cached values in
|
||||
[humantime](https://docs.rs/humantime/latest/humantime/fn.parse_duration.html)
|
||||
form--for example: `10s`, `1min 30sec`, `3 hours`
|
||||
- {{% code-placeholder-key %}}`LVC_NAME`{{% /code-placeholder-key %}}:
|
||||
a unique name for the LVC
|
||||
|
||||
> [!Note]
|
||||
> #### Values are cached on write
|
||||
>
|
||||
> Values are cached on write. When you create a cache, it will not cache
|
||||
> previously written points, only newly written points.
|
||||
>
|
||||
> #### LVC size and persistence
|
||||
>
|
||||
> The LVC is stored in memory, so it's important to consider the size and persistence
|
||||
> of the cache. For more information, see
|
||||
> [Important things to know about the Last Value Cache](/influxdb3/version/admin/last-value-cache/#important-things-to-know-about-the-last-value-cache).
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
Use the [`influxdb3 delete last_cache` command](/influxdb3/version/reference/cli/influxdb3/delete/last_cache/)
|
||||
to delete a Last Value Cache (LVC). Provide the following:
|
||||
|
||||
- **Database** (`-d`, `--database`): _({{< req >}})_ The name of the database
|
||||
that the LVC you want to delete is associated with. You can also use the
|
||||
`INFLUXDB3_DATABASE_NAME` environment variable to specify the database.
|
||||
- **Token** (`--token`): _({{< req >}})_ Your {{< product-name >}}
|
||||
{{% show-in "enterprise" %}}admin {{% /show-in %}}authentication token.
|
||||
You can also use the `INFLUXDB3_AUTH_TOKEN` environment variable to specify
|
||||
the database.
|
||||
- **Table** (`-t`, `--table`): _({{< req >}})_ The name of the table that the
|
||||
LVC you want to delete is associated with.
|
||||
- **Cache name**: The name of the LVC to delete.
|
||||
|
||||
{{% code-placeholders "(DATABASE|TABLE|LVC)_NAME|AUTH_TOKEN" %}}
|
||||
```bash
|
||||
influxdb3 delete last_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
LVC_NAME
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
Replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the database that the LVC you want to delete is associated with
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
your {{< product-name >}} {{% show-in "enterprise" %}}admin {{% /show-in %}}
|
||||
authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the table that the LVC you want to delete is associated with
|
||||
- {{% code-placeholder-key %}}`LVC`{{% /code-placeholder-key %}}:
|
||||
the name of the LVC to delete
|
||||
|
||||
> [!Caution]
|
||||
> This is a destructive action that cannot be undone. Once deleted, any queries
|
||||
> against the deleted LVC will return an error.
|
|
@ -0,0 +1,34 @@
|
|||
|
||||
Use the [`last_cache()` SQL function](/influxdb3/version/reference/sql/functions/cache/#last_cache)
|
||||
in the `FROM` clause of an SQL `SELECT` statement to query data from the
|
||||
Last Value Cache (LVC).
|
||||
|
||||
> [!Important]
|
||||
> You must use SQL to query the LVC.
|
||||
> InfluxQL does not support the `last_cache()` function.
|
||||
|
||||
`last_cache()` supports the following arguments:
|
||||
|
||||
- **table_name**: _({{< req >}})_ The name of the table the LVC is associated with
|
||||
formatted as a string literal.
|
||||
- **cache_name**: The name of the LVC to query formatted as a string literal.
|
||||
This argument is only required if there is more than one LVC associated with the specified
|
||||
table.
|
||||
|
||||
```sql
|
||||
SELECT * FROM last_cache('table_name', 'cache_name')
|
||||
```
|
||||
|
||||
You can use other [SQL clauses](/influxdb3/version/reference/sql/#statements-and-clauses)
|
||||
to modify query results. For example, you can use the `WHERE` clause to return
|
||||
the last value for a specific tag set:
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
room,
|
||||
temp
|
||||
FROM
|
||||
last_cache('home', 'homeCache')
|
||||
WHERE
|
||||
room = 'Kitchen'
|
||||
```
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
Use the [`influxdb3 show system table` command](/influxdb3/version/reference/cli/influxdb3/show/syste/table/)
|
||||
to query and output Last Value Cache information from the `last_caches` system table.
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
table last_caches
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
This returns a table similar to the following:
|
||||
|
||||
| table | name | key_column_ids | key_column_names | value_column_ids | value_column_names | count | ttl |
|
||||
| ------- | ------------ | -------------- | ---------------- | ---------------- | ------------------------------------------------ | ----- | ----- |
|
||||
| weather | weather_last | [0] | [location] | [2, 3, 4, 5, 1] | [precip, temp_avg, temp_max, temp_min, wind_avg] | 1 | 86400 |
|
||||
| bitcoin | bitcoin_last | [0, 1] | [code, crypto] | [4] | [price] | 1 | 14400 |
|
||||
| numbers | numbers_last | [] | [] | [0, 1] | [a, b] | 5 | 14400 |
|
||||
| home | home_last | [0] | [room] | [1, 2, 3] | [temp, hum, co] | 5 | 60 |
|
||||
|
||||
## Query specific columns from the last_caches system table
|
||||
|
||||
Use the `--select` option to query specific columns from the `last_caches`
|
||||
system table. Provide a comma-delimited list of columns to return:
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
table last_caches \
|
||||
--select name,key_column_names,value_column_names
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
## Sort last_caches system table output
|
||||
|
||||
Use the `--order-by` option to sort data from the `last_caches` system table by
|
||||
specific columns. Provide a comma-delimited list of columns to sort by:
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
|
||||
<!-- pytest.mark.skip -->
|
||||
|
||||
```bash
|
||||
influxdb3 show system \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
table last_caches \
|
||||
--order-by table,ttl
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
> [!Note]
|
||||
> Results are sorted in ascending order based on the provided columns.
|
||||
|
||||
In the examples above, replace the following:
|
||||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the database to query system data from
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
your {{< product-name >}} {{% show-in "enterprise" %}}admin {{% /show-in %}}
|
||||
authentication token
|
|
@ -0,0 +1,10 @@
|
|||
Manage tokens to authenticate and authorize access to resources and data in your
|
||||
{{< product-name >}} instance.
|
||||
|
||||
> [!Note]
|
||||
> #### Store secure tokens in a secret store
|
||||
>
|
||||
> Token strings are returned _only_ on token creation.
|
||||
> We recommend storing database tokens in a **secure secret store**.
|
||||
|
||||
{{< children hlevel="h2" readmore=true hr=true >}}
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
Manage admin tokens in your {{< product-name >}} instance.
|
||||
An admin token grants
|
||||
access to all actions (CLI commands and API endpoints) for the server.
|
||||
|
||||
{{< children hlevel="h2" readmore=true hr=true >}}
|
|
@ -0,0 +1,33 @@
|
|||
|
||||
Use the [`influxdb3 create token --admin` subcommand](/influxdb3/version/reference/cli/influxdb3/create/token/)
|
||||
or the [HTTP API](/influxdb3/version/api/v3/)
|
||||
to create an [admin token](/influxdb3/version/admin/tokens/admin/) for your {{< product-name omit="Clustered" >}} instance.
|
||||
An admin token grants full access to all actions for your InfluxDB 3 instance.
|
||||
|
||||
> [!Note]
|
||||
> #### Store secure tokens in a secret store
|
||||
>
|
||||
> Token strings are returned _only_ on token creation.
|
||||
> We recommend storing database tokens in a **secure secret store**.
|
||||
> If you lose the admin token string, you must regenerate the token.
|
||||
|
||||
## Create an admin token
|
||||
|
||||
- [Use the influxdb3 CLI](#use-the-influxdb3-cli)
|
||||
- [Use the HTTP API](#use-the-http-api)
|
||||
|
||||
### Use the influxdb3 CLI
|
||||
|
||||
Use the `influxdb3 create token --admin` command:
|
||||
|
||||
```bash
|
||||
influxdb3 create token --admin
|
||||
```
|
||||
|
||||
The command returns the token string in plain text.
|
||||
|
||||
To use the token as the default for later commands, and to persist the token
|
||||
across sessions, assign the token string to the `INFLUXDB3_AUTH_TOKEN` environment variable.
|
||||
|
||||
> [!Caution]
|
||||
> Protect your admin token. Anyone with access to the admin token has full control over your {{< product-name >}} instance.
|
|
@ -0,0 +1,29 @@
|
|||
Use the `influxdb3` CLI to list tokens, including admin tokens.
|
||||
|
||||
## Use the CLI
|
||||
|
||||
```bash
|
||||
influxdb3 show tokens
|
||||
```
|
||||
|
||||
The command lists metadata for all tokens in your InfluxDB 3 instance, including
|
||||
the `_admin` token.
|
||||
The token metadata includes the hash of the token string.
|
||||
InfluxDB 3 does not store the token string.
|
||||
|
||||
### Output formats
|
||||
|
||||
The `influxdb3 show tokens` command supports output formats:
|
||||
|
||||
- `pretty` _(default)_
|
||||
- `json`
|
||||
- `jsonl`
|
||||
- `csv`
|
||||
<!-- - `parquet` _(must [output to a file](#output-to-a-parquet-file))_ -->
|
||||
|
||||
Use the `--format` flag to specify the output format:
|
||||
|
||||
```sh
|
||||
influxdb3 show tokens \
|
||||
--format json
|
||||
```
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
## Use the CLI to regenerate an admin token
|
||||
|
||||
To regenerate an admin token, you can use the `--regenerate` flag with the `influxdb3 create token --admin` subcommand. This revokes the existing admin token.
|
||||
|
||||
```bash
|
||||
influxdb3 create token --admin \
|
||||
--token ADMIN_TOKEN
|
||||
--host {{< influxdb/host >}}
|
||||
--regenerate
|
||||
```
|
||||
|
||||
In your command, replace `ADMIN_TOKEN` with the current token string.
|
||||
|
||||
By default, `influxdb3` asks for confirmation before regenerating the token.
|
|
@ -12,8 +12,8 @@ influxdb3 create <SUBCOMMAND>
|
|||
|
||||
## Subcommands
|
||||
|
||||
| Subcommand | Description |
|
||||
| :------------------------------------------------------------------------------------- | :---------------------------------------------- |
|
||||
| Subcommand | Description |
|
||||
| :---------------------------------------------------------------------------------- | :---------------------------------------------- |
|
||||
| [database](/influxdb3/version/reference/cli/influxdb3/create/database/) | Create a new database |
|
||||
| [file_index](/influxdb3/version/reference/cli/influxdb3/create/file_index/) | Create a new file index for a database or table |
|
||||
| [last_cache](/influxdb3/version/reference/cli/influxdb3/create/last_cache/) | Create a new last value cache |
|
||||
|
@ -22,10 +22,11 @@ influxdb3 create <SUBCOMMAND>
|
|||
| [table](/influxdb3/version/reference/cli/influxdb3/create/table/) | Create a new table in a database |
|
||||
| [token](/influxdb3/version/reference/cli/influxdb3/create/token/) | Create a new authentication token |
|
||||
| [trigger](/influxdb3/version/reference/cli/influxdb3/create/trigger/) | Create a new trigger for the processing engine |
|
||||
| help | Print command help or the help of a subcommand |
|
||||
| help | Print command help or the help of a subcommand |
|
||||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------- | :--------------------- |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :------------------------------ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
|
|
@ -23,7 +23,9 @@ influxdb3 create database [OPTIONS] <DATABASE_NAME>
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ The `influxdb3 create distinct_cache` command creates a new distinct value cache
|
|||
```bash
|
||||
influxdb3 create distinct_cache [OPTIONS] \
|
||||
--database <DATABASE_NAME> \
|
||||
--token <AUTH_TOKEN>
|
||||
--table <TABLE> \
|
||||
--columns <COLUMNS> \
|
||||
[CACHE_NAME]
|
||||
|
@ -24,12 +25,14 @@ influxdb3 create distinct_cache [OPTIONS] \
|
|||
| :----- | :------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-t` | `--table` | _({{< req >}})_ Table to create the cache for |
|
||||
| | `--columns` | _({{< req >}})_ Comma-separated list of columns to cache distinct values for--for example: `col1,col2,col3` (see [Metadata cache hierarchy](#metadata-cache-hierarchy)) |
|
||||
| | `--max-cardinality` | Maximum number of distinct value combinations to hold in the cache |
|
||||
| | `--max-age` | Maximum age of an entry in the cache entered as a human-readable duration--for example: `30d`, `24h` |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
> [!Important]
|
||||
>
|
||||
|
|
|
@ -7,7 +7,10 @@ database or table.
|
|||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 create file_index [OPTIONS] --database <DATABASE_NAME> <COLUMNS>...
|
||||
influxdb3 create file_index [OPTIONS] \
|
||||
--database <DATABASE_NAME> \
|
||||
--token <AUTH_TOKEN> \
|
||||
<COLUMNS>...
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
@ -20,9 +23,11 @@ influxdb3 create file_index [OPTIONS] --database <DATABASE_NAME> <COLUMNS>...
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-t` | `--table` | Table to apply the file index too |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -43,10 +48,12 @@ In the examples below, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
Table name
|
||||
|
||||
{{% code-placeholders "(DATABASE|TABLE)_NAME" %}}
|
||||
{{% code-placeholders "(DATABASE|TABLE)_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
### Create a new file index for a database
|
||||
|
||||
|
@ -55,6 +62,7 @@ In the examples below, replace the following:
|
|||
```bash
|
||||
influxdb3 create file_index \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
column1 column2 column3
|
||||
```
|
||||
|
||||
|
@ -65,6 +73,7 @@ influxdb3 create file_index \
|
|||
```bash
|
||||
influxdb3 create file_index \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
column1 column2 column3
|
||||
```
|
||||
|
|
|
@ -20,13 +20,15 @@ influxdb3 create last_cache [OPTIONS] --database <DATABASE_NAME> --table <TABLE>
|
|||
| :----- | :---------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-t` | `--table` | _({{< req >}})_ Table to create the cache for |
|
||||
| | `--key-columns` | Comma-separated list of columns to use as keys in the cache--for example: `foo,bar,baz` |
|
||||
| | `--value-columns` | Comma-separated list of columns to store as values in the cache--for example: `foo,bar,baz` |
|
||||
| | `--count` | Number of entries per unique key column combination to store in the cache |
|
||||
| | `--ttl` | Cache entries' time-to-live (TTL) in [Humantime form](https://docs.rs/humantime/latest/humantime/fn.parse_duration.html)--for example: `10s`, `1min 30sec`, `3 hours` |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ The `influxdb3 create plugin` command creates a new processing engine plugin.
|
|||
```bash
|
||||
influxdb3 create plugin [OPTIONS] \
|
||||
--database <DATABASE_NAME> \
|
||||
--token <AUTH_TOKEN> \
|
||||
--filename <PLUGIN_FILENAME> \
|
||||
--entry-point <FUNCTION_NAME> \
|
||||
<PLUGIN_NAME>
|
||||
|
@ -23,11 +24,13 @@ influxdb3 create plugin [OPTIONS] \
|
|||
| :----- | :-------------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--filename` | _({{< req >}})_ Name of the plugin Python file in the plugin directory |
|
||||
| | `--entry-point` | _({{< req >}})_ Entry point function name for the plugin |
|
||||
| | `--plugin-type` | Type of trigger the plugin processes (default is `wal_rows`) |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ The `influxdb3 create table` command creates a table in a database.
|
|||
influxdb3 create table [OPTIONS] \
|
||||
--tags [<TAGS>...] \
|
||||
--database <DATABASE_NAME> \
|
||||
--token <AUTH_TOKEN> \
|
||||
<TABLE_NAME>
|
||||
```
|
||||
|
||||
|
@ -22,10 +23,12 @@ influxdb3 create table [OPTIONS] \
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--tags` | _({{< req >}})_ Comma-separated list of tag columns to include in the table |
|
||||
| | `--fields` | Comma-separated list of field columns and their types to include in the table |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
> [!Important]
|
||||
>
|
||||
|
@ -53,6 +56,8 @@ In the examples below, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
Table name
|
||||
|
||||
|
@ -64,6 +69,7 @@ In the examples below, replace the following:
|
|||
influxdb3 create table \
|
||||
--tags tag1,tag2,tag3 \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
TABLE_NAME
|
||||
```
|
||||
|
||||
|
@ -76,6 +82,7 @@ influxdb3 create table \
|
|||
--tags room,sensor_id \
|
||||
--fields temp:float64,hum:float64,co:int64 \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
TABLE_NAME
|
||||
```
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ influxdb3 create token
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------- | :--------------------- |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :------------------------------ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
|
|
@ -9,6 +9,7 @@ processing engine.
|
|||
```bash
|
||||
influxdb3 create trigger [OPTIONS] \
|
||||
--database <DATABASE_NAME> \
|
||||
--token <AUTH_TOKEN> \
|
||||
--plugin <PLUGIN_NAME> \
|
||||
--trigger-spec <TRIGGER_SPECIFICATION> \
|
||||
<TRIGGER_NAME>
|
||||
|
@ -24,11 +25,13 @@ influxdb3 create trigger [OPTIONS] \
|
|||
| :----- | :--------------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--plugin` | Plugin to execute when the trigger fires |
|
||||
| | `--trigger-spec` | Trigger specification--for example `table:<TABLE_NAME>` or `all_tables` |
|
||||
| | `--disabled` | Create the trigger in disabled state |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ influxdb3 delete <SUBCOMMAND>
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------- | :--------------------- |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :------------------------------ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
|
|
@ -21,7 +21,9 @@ influxdb3 delete database [OPTIONS] <DATABASE_NAME>
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -18,13 +18,15 @@ influxdb3 delete distinct_cache [OPTIONS] \
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| `-t` | `--table` | _({{< req >}})_ Table to delete the cache for |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-t` | `--table` | _({{< req >}})_ Table to delete the cache for |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -40,13 +42,14 @@ You can use the following environment variables to set command options:
|
|||
|
||||
### Delete a distinct value cache
|
||||
|
||||
{{% code-placeholders "(DATABASE|TABLE|CACHE)_NAME" %}}
|
||||
{{% code-placeholders "(DATABASE|TABLE|CACHE)_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete distinct_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
CACHE_NAME
|
||||
```
|
||||
|
@ -57,6 +60,8 @@ In the example above, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
Table name
|
||||
- {{% code-placeholder-key %}}`CACHE_NAME`{{% /code-placeholder-key %}}:
|
||||
|
|
|
@ -16,9 +16,11 @@ influxdb3 delete file_index [OPTIONS] --database <DATABASE_NAME>
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| `-t` | `--table` | Table to delete the file index from |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-t` | `--table` | Table to delete the file index from |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -39,17 +41,21 @@ In the examples below, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
Table name
|
||||
|
||||
{{% code-placeholders "(DATABASE|TABLE)_NAME" %}}
|
||||
{{% code-placeholders "(DATABASE|TABLE)_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
### Delete a file index from a database
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete file_index --database DATABASE_NAME
|
||||
influxdb3 delete file_index \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN
|
||||
```
|
||||
|
||||
### Delete a file index from a specific table
|
||||
|
@ -57,7 +63,10 @@ influxdb3 delete file_index --database DATABASE_NAME
|
|||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete file_index --database DATABASE_NAME --table TABLE_NAME
|
||||
influxdb3 delete file_index \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
|
|
@ -15,13 +15,15 @@ influxdb3 delete last_cache [OPTIONS] --database <DATABASE_NAME> --table <TABLE>
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :---------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| `-t` | `--table` | _({{< req >}})_ Table to delete the cache from |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-t` | `--table` | _({{< req >}})_ Table to delete the cache from |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -37,13 +39,14 @@ You can use the following environment variables to set command options:
|
|||
|
||||
### Delete a last value cache
|
||||
|
||||
{{% code-placeholders "(DATABASE|TABLE|CACHE)_NAME" %}}
|
||||
{{% code-placeholders "(DATABASE|TABLE|CACHE)_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete last_cache \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--table TABLE_NAME \
|
||||
CACHE_NAME
|
||||
```
|
||||
|
@ -54,6 +57,8 @@ In the example above, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
Table name
|
||||
- {{% code-placeholder-key %}}`CACHE_NAME`{{% /code-placeholder-key %}}:
|
||||
|
|
|
@ -15,12 +15,14 @@ influxdb3 delete plugin [OPTIONS] --database <DATABASE_NAME> <PLUGIN_NAME>
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :---------------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -36,12 +38,15 @@ You can use the following environment variables to set command options:
|
|||
|
||||
### Delete a plugin
|
||||
|
||||
{{% code-placeholders "(DATABASE|PLUGIN)_NAME" %}}
|
||||
{{% code-placeholders "(DATABASE|PLUGIN)_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete plugin --database DATABASE_NAME PLUGIN_NAME
|
||||
influxdb3 delete plugin \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
PLUGIN_NAME
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
@ -50,5 +55,7 @@ In the example above, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`PLUGIN_NAME`{{% /code-placeholder-key %}}:
|
||||
Name of the plugin to delete
|
||||
|
|
|
@ -15,12 +15,14 @@ influxdb3 delete table [OPTIONS] --database <DATABASE_NAME> <TABLE_NAME>
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :-------------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -36,12 +38,15 @@ You can use the following environment variables to set command options:
|
|||
|
||||
### Delete a table
|
||||
|
||||
{{% code-placeholders "(DATABASE|TABLE)_NAME" %}}
|
||||
{{% code-placeholders "(DATABASE|TABLE)_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete table --database DATABASE_NAME TABLE_NAME
|
||||
influxdb3 delete table \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
TABLE_NAME
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
@ -50,5 +55,7 @@ In the example above, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}:
|
||||
Name of the table to delete
|
||||
|
|
|
@ -19,9 +19,11 @@ influxdb3 delete trigger [OPTIONS] --database <DATABASE_NAME> <TRIGGER_NAME>
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--force` | Force delete even if the trigger is active |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -42,17 +44,22 @@ In the examples below, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`TRIGGER_NAME`{{% /code-placeholder-key %}}:
|
||||
Name of the trigger to delete
|
||||
|
||||
{{% code-placeholders "(DATABASE|TRIGGER)_NAME" %}}
|
||||
{{% code-placeholders "(DATABASE|TRIGGER)_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
### Delete a trigger
|
||||
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete trigger --database DATABASE_NAME TRIGGER_NAME
|
||||
influxdb3 delete trigger \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
TRIGGER_NAME
|
||||
```
|
||||
|
||||
### Force delete an active trigger
|
||||
|
@ -60,7 +67,11 @@ influxdb3 delete trigger --database DATABASE_NAME TRIGGER_NAME
|
|||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 delete trigger --force --database DATABASE_NAME TRIGGER_NAME
|
||||
influxdb3 delete trigger \
|
||||
--force \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
TRIGGER_NAME
|
||||
```
|
||||
|
||||
{{% /code-placeholders %}}
|
||||
|
|
|
@ -18,6 +18,7 @@ influxdb3 disable <SUBCOMMAND>
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------- | :--------------------- |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :------------------------------ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
|
@ -19,8 +19,10 @@ influxdb3 disable trigger [OPTIONS] --database <DATABASE_NAME> <TRIGGER_NAME>
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -11,13 +11,14 @@ influxdb3 enable <SUBCOMMAND>
|
|||
|
||||
## Subcommands
|
||||
|
||||
| Subcommand | Description |
|
||||
| :----------------------------------------------------------------------- | :--------------------------------------------- |
|
||||
| Subcommand | Description |
|
||||
| :-------------------------------------------------------------------- | :--------------------------------------------- |
|
||||
| [trigger](/influxdb3/version/reference/cli/influxdb3/enable/trigger/) | Enable a trigger to enable plugin execution |
|
||||
| help | Print command help or the help of a subcommand |
|
||||
| help | Print command help or the help of a subcommand |
|
||||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------- | :--------------------- |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :------------------------------ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
|
|
@ -19,8 +19,10 @@ influxdb3 enable trigger [OPTIONS] --database <DATABASE_NAME> <TRIGGER_NAME>
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -28,12 +28,14 @@ influxdb3 query [OPTIONS] --database <DATABASE_NAME> [QUERY]...
|
|||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-l` | `--language` | Query language of the query string (`sql` _(default)_ or `influxql`) |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, `parquet`) |
|
||||
| `-o` | `--output` | Output query results to the specified file |
|
||||
| `-f` | `--file` | A file that contains the query to execute |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -70,21 +72,29 @@ with the name of the database to query.
|
|||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 query --database DATABASE_NAME 'SELECT * FROM home'
|
||||
influxdb3 query \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
'SELECT * FROM home'
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 query --database DATABASE_NAME --file ./query.sql
|
||||
influxdb3 query \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--file ./query.sql
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
cat ./query.sql | influxdb3 query --database DATABASE_NAME
|
||||
cat ./query.sql | influxdb3 query \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
@ -104,6 +114,7 @@ cat ./query.sql | influxdb3 query --database DATABASE_NAME
|
|||
influxdb3 query \
|
||||
--language influxql \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
'SELECT * FROM home'
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -114,6 +125,7 @@ influxdb3 query \
|
|||
influxdb3 query \
|
||||
--language influxql \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--file ./query.influxql
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -123,7 +135,8 @@ influxdb3 query \
|
|||
```bash
|
||||
cat ./query.influxql | influxdb3 query \
|
||||
--language influxql \
|
||||
--database DATABASE_NAME
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
@ -143,6 +156,7 @@ cat ./query.influxql | influxdb3 query \
|
|||
influxdb3 query \
|
||||
--format json \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
'SELECT * FROM home'
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -153,6 +167,7 @@ influxdb3 query \
|
|||
influxdb3 query \
|
||||
--format json \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--file ./query.sql
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -162,7 +177,8 @@ influxdb3 query \
|
|||
```bash
|
||||
cat ./query.sql | influxdb3 query \
|
||||
--format json \
|
||||
--database DATABASE_NAME
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
@ -182,6 +198,7 @@ cat ./query.sql | influxdb3 query \
|
|||
influxdb3 query \
|
||||
--output /path/to/results.txt \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
'SELECT * FROM home'
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -192,6 +209,7 @@ influxdb3 query \
|
|||
influxdb3 query \
|
||||
--output /path/to/results.txt \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--file ./query.sql
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -201,7 +219,8 @@ influxdb3 query \
|
|||
```bash
|
||||
cat ./query.sql | influxdb3 query \
|
||||
--output /path/to/results.txt \
|
||||
--database DATABASE_NAME
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
|
|
@ -19,6 +19,7 @@ influxdb3 show <SUBCOMMAND>
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------- | :--------------------- |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :------------------------------ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
|
|
@ -15,11 +15,12 @@ influxdb3 show databases [OPTIONS]
|
|||
| Option | | Description |
|
||||
| :----- | :--------------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--show-deleted` | Include databases marked as deleted in the output |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, or `parquet`) |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -25,12 +25,13 @@ system tables.
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :--------------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
|
|
@ -12,11 +12,13 @@ influxdb3 show system --database <DATABASE_NAME> summary [OPTIONS]
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :--------- | :--------------------------------------------------------------------------------------------- |
|
||||
| `-l` | `--limit` | Maximum number of entries from each table to display (default is `10`, `0` indicates no limit) |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, or `parquet`) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :--------------------------------------------------------------------------------------------- |
|
||||
| `-l` | `--limit` | Maximum number of entries from each table to display (default is `10`, `0` indicates no limit) |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, or `parquet`) |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -11,10 +11,12 @@ influxdb3 show system --database <DATABASE_NAME> table-list [OPTIONS]
|
|||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :--------- | :--------------------------------------------------------------------------------------------- |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, or `parquet`) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :----------------------------------------------------------------------------------- |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, or `parquet`) |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -20,8 +20,10 @@ influxdb3 show system --database <DATABASE_NAME> table [OPTIONS] <SYSTEM_TABLE>
|
|||
| `-l` | `--limit` | Maximum number of tables entries to display (default is `10`, `0` indicates no limit) |
|
||||
| `-o` | `--order-by` | Order by the specified columns |
|
||||
| `-s` | `--select` | Select specific columns from the system table |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, or `parquet`) |
|
||||
| | `--format` | Output format (`pretty` _(default)_, `json`, `jsonl`, `csv`, or `parquet`) |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -11,13 +11,14 @@ influxdb3 test <SUBCOMMAND>
|
|||
|
||||
## Subcommands
|
||||
|
||||
| Subcommand | Description |
|
||||
| :--------------------------------------------------------------------------- | :--------------------------------------------- |
|
||||
| Subcommand | Description |
|
||||
| :------------------------------------------------------------------------ | :--------------------------------------------- |
|
||||
| [wal_plugin](/influxdb3/version/reference/cli/influxdb3/test/wal_plugin/) | Test a write-ahead log (WAL) plugin |
|
||||
| help | Print command help or the help of a subcommand |
|
||||
| help | Print command help or the help of a subcommand |
|
||||
|
||||
## Options
|
||||
|
||||
| Option | | Description |
|
||||
| :----- | :------- | :--------------------- |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| Option | | Description |
|
||||
| :----- | :----------- | :------------------------------ |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
|
|
@ -20,11 +20,13 @@ influxdb3 test wal_plugin [OPTIONS] --database <DATABASE_NAME> <PLUGIN_NAME>
|
|||
| :----- | :------------------ | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| | `--lp` | Line protocol to use as input |
|
||||
| | `--file` | Line protocol file to use as input |
|
||||
| | `--input-arguments` | Map of string key-value pairs as to use as plugin input arguments |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
|
||||
### Option environment variables
|
||||
|
@ -48,12 +50,14 @@ In the examples below, replace the following:
|
|||
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
Database name
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
- {{% code-placeholder-key %}}`PLUGIN_DIR`{{% /code-placeholder-key %}}:
|
||||
Plugin directory name
|
||||
- {{% code-placeholder-key %}}`PLUGIN_NAME`{{% /code-placeholder-key %}}:
|
||||
Plugin file name
|
||||
|
||||
{{% code-placeholders "(DATABASE|PLUGIN)_(NAME|DIR)" %}}
|
||||
{{% code-placeholders "(DATABASE|PLUGIN)_(NAME|DIR)|AUTH_TOKEN" %}}
|
||||
|
||||
### Test a WAL plugin
|
||||
|
||||
|
@ -62,6 +66,7 @@ In the examples below, replace the following:
|
|||
```bash
|
||||
influxdb3 test wal_plugin \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
PLUGIN_DIR/PLUGIN_NAME.py
|
||||
```
|
||||
|
||||
|
@ -73,6 +78,7 @@ influxdb3 test wal_plugin \
|
|||
influxdb3 test wal_plugin \
|
||||
--lp 'home,room=Kitchen temp=21.0,hum=35.9,co=0i' \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
PLUGIN_DIR/PLUGIN_NAME.py
|
||||
```
|
||||
|
||||
|
@ -84,6 +90,7 @@ influxdb3 test wal_plugin \
|
|||
influxdb3 test wal_plugin \
|
||||
--file PLUGIN_DIR/PLUGIN_NAME_test/input-file.lp`
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
PLUGIN_DIR/PLUGIN_NAME.py
|
||||
```
|
||||
|
||||
|
@ -95,6 +102,7 @@ influxdb3 test wal_plugin \
|
|||
influxdb3 test wal_plugin \
|
||||
--input-arguments arg1=foo,arg2=baz \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
PLUGIN_DIR/PLUGIN_NAME.py
|
||||
```
|
||||
|
||||
|
|
|
@ -28,10 +28,12 @@ influxdb3 write [OPTIONS] --database <DATABASE_NAME> [LINE_PROTOCOL]...
|
|||
| :----- | :----------------- | :--------------------------------------------------------------------------------------- |
|
||||
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
|
||||
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
|
||||
| | `--token` | Authentication token |
|
||||
| | `--token` | _({{< req >}})_ Authentication token |
|
||||
| `-f` | `--file` | A file that contains line protocol to write |
|
||||
| | `--accept-partial` | Accept partial writes |
|
||||
| | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) |
|
||||
| `-h` | `--help` | Print help information |
|
||||
| | `--help-all` | Print detailed help information |
|
||||
|
||||
### Option environment variables
|
||||
|
||||
|
@ -48,11 +50,14 @@ You can use the following environment variables to set command options:
|
|||
- [Write line protocol to your InfluxDB 3 server](#write-line-protocol-to-your-influxdb-3-server)
|
||||
- [Write line protocol and accept partial writes](#write-line-protocol-and-accept-partial-writes)
|
||||
|
||||
In the examples below, replace
|
||||
{{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
with the name of the database to query.
|
||||
In the examples below, replace the following:
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME" %}}
|
||||
- {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}:
|
||||
the name of the database to query
|
||||
- {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}:
|
||||
Authentication token
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
|
||||
|
||||
### Write line protocol to your InfluxDB 3 server
|
||||
|
||||
|
@ -67,7 +72,9 @@ with the name of the database to query.
|
|||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 write --database DATABASE_NAME \
|
||||
influxdb3 write \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
'home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1641024000'
|
||||
```
|
||||
{{% /influxdb/custom-timestamps %}}
|
||||
|
@ -76,14 +83,19 @@ influxdb3 write --database DATABASE_NAME \
|
|||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
influxdb3 write --database DATABASE_NAME --file ./data.lp
|
||||
influxdb3 write \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--file ./data.lp
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{% code-tab-content %}}
|
||||
<!--pytest.mark.skip-->
|
||||
|
||||
```bash
|
||||
cat ./data.lp | influxdb3 write --database DATABASE_NAME
|
||||
cat ./data.lp | influxdb3 write \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
@ -104,6 +116,7 @@ cat ./data.lp | influxdb3 write --database DATABASE_NAME
|
|||
influxdb3 write \
|
||||
--accept-partial \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
'home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1641024000'
|
||||
```
|
||||
{{% /influxdb/custom-timestamps %}}
|
||||
|
@ -115,6 +128,7 @@ influxdb3 write \
|
|||
influxdb3 write \
|
||||
--accept-partial \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN \
|
||||
--file ./data.lp
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -125,6 +139,7 @@ influxdb3 write \
|
|||
cat ./data.lp | influxdb3 write \
|
||||
--accept-partial \
|
||||
--database DATABASE_NAME \
|
||||
--token AUTH_TOKEN
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
{{< /code-tabs-wrapper >}}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue