updated all latest links with latest shortcode, refactored related partial
parent
1eda96d85f
commit
671964f515
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
title: InfluxDB v2.0 documentation
|
||||
description: >
|
||||
InfluxDB is an open source time series database designed to handle high write and query loads.
|
||||
Learn how to use and leverage InfluxDB in use cases such as monitoring metrics, IoT data, and events.
|
||||
|
|
|
@ -61,7 +61,7 @@ WHERE time > now() - 15m
|
|||
### h3 This is a header3
|
||||
This is a paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc rutrum, metus id scelerisque euismod, erat ante suscipit nibh, ac congue enim risus id est. Etiam tristique nisi et tristique auctor. Morbi eu bibendum erat. Sed ullamcorper, dui id lobortis efficitur, mauris odio pharetra neque, vel tempor odio dolor blandit justo.
|
||||
|
||||
![Test image](http://docs.influxdata.com/img/chronograf/v1.7/alerts-conditions.png)
|
||||
![Test image](/img/chronograf/1-6-alerts-conditions.png)
|
||||
|
||||
{{< img-hd src="/img/test-image-2.png" alt="Test Image" />}}
|
||||
|
||||
|
|
|
@ -45,8 +45,8 @@ By default, the `/query` compatibility endpoint returns results in **JSON**.
|
|||
To return results as **CSV**, include the `Accept: application/csv` header.
|
||||
|
||||
## Database and retention policy mapping
|
||||
InfluxDB 2.0 combines the 1.x concept of [databases](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#database)
|
||||
and [retention policies](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp)
|
||||
InfluxDB 2.0 combines the 1.x concept of [databases](/influxdb/v1.8/concepts/glossary/#database)
|
||||
and [retention policies](/influxdb/v1.8/concepts/glossary/#retention-policy-rp)
|
||||
into [buckets](/v2.0/reference/glossary/#bucket).
|
||||
To support InfluxDB 1.x query and write patterns in InfluxDB 2.0, databases and retention
|
||||
policies are mapped to buckets using the **database and retention policy (DBRP) mapping service**.
|
||||
|
|
|
@ -17,8 +17,8 @@ related:
|
|||
- /influxdb/v2.0/api/#tag/DBRPs, InfluxDB 2.0 API /dbrps endpoint
|
||||
---
|
||||
|
||||
The InfluxDB 1.x data model includes [databases](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#database)
|
||||
and [retention policies](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp).
|
||||
The InfluxDB 1.x data model includes [databases](/influxdb/v1.8/concepts/glossary/#database)
|
||||
and [retention policies](/influxdb/v1.8/concepts/glossary/#retention-policy-rp).
|
||||
InfluxDB 2.0 replaces both with [buckets](/v2.0/reference/glossary/#bucket).
|
||||
To support InfluxDB 1.x query and write patterns in InfluxDB 2.0, databases and retention
|
||||
policies are mapped to buckets using the **database and retention policy (DBRP) mapping service**.
|
||||
|
|
|
@ -1056,7 +1056,7 @@ store = "bolt"
|
|||
Path to TLS certificate file.
|
||||
Requires the [`tls-key`](#tls-key) to be set.
|
||||
|
||||
_For more information, see [Enable TLS encryption](https://v2.docs.influxdata.com/v2.0/security/enable-tls/)._
|
||||
_For more information, see [Enable TLS encryption](/influxdb/v2.0/security/enable-tls/)._
|
||||
|
||||
| influxd flag | Environment variable | Configuration key |
|
||||
|:------------ |:-------------------- |:----------------- |
|
||||
|
@ -1104,7 +1104,7 @@ tls-cert = "/path/to/influxdb.crt"
|
|||
Path to TLS key file.
|
||||
Requires the [`tls-cert`](#tls-cert) to be set.
|
||||
|
||||
_For more information, see [Enable TLS encryption](https://v2.docs.influxdata.com/v2.0/security/enable-tls/)._
|
||||
_For more information, see [Enable TLS encryption](/influxdb/v2.0/security/enable-tls/)._
|
||||
|
||||
| influxd flag | Environment variable | Configuration key |
|
||||
|:------------ |:-------------------- |:----------------- |
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-inputs
|
||||
weight: 401
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#from-clause, InfluxQL - FROM
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#from-clause, InfluxQL - FROM
|
||||
---
|
||||
|
||||
The `from()` function retrieves data from an InfluxDB data source.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-outputs
|
||||
weight: 401
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-into-clause, InfluxQL – SELECT INTO
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#the-into-clause, InfluxQL – SELECT INTO
|
||||
---
|
||||
|
||||
The `to()` function writes data to an **InfluxDB v2.0** bucket.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-outputs
|
||||
weight: 401
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-basic-select-statement, InfluxQL – SELECT AS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#the-basic-select-statement, InfluxQL – SELECT AS
|
||||
---
|
||||
|
||||
The `yield()` function indicates the input tables received should be delivered as a result of the query.
|
||||
|
|
|
@ -11,8 +11,8 @@ menu:
|
|||
weight: 501
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/window-aggregate/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#aggregations, InfluxQL – Aggregate functions
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/explore-data/#the-group-by-clause, InfluxQL – GROUP BY time()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#aggregations, InfluxQL – Aggregate functions
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/explore-data/#the-group-by-clause, InfluxQL – GROUP BY time()
|
||||
---
|
||||
|
||||
The `aggregateWindow()` function applies an aggregate or selector function
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#count, InfluxQL – COUNT()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#count, InfluxQL – COUNT()
|
||||
---
|
||||
|
||||
The `count()` function outputs the number of records in a column.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#integral, InfluxQL – INTEGRAL()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#integral, InfluxQL – INTEGRAL()
|
||||
---
|
||||
|
||||
The `integral()` function computes the area under the curve per [`unit`](#unit) of time of subsequent non-null records.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#mean, InfluxQL – MEAN()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#mean, InfluxQL – MEAN()
|
||||
---
|
||||
|
||||
The `mean()` function computes the mean or average of non-null records in the input table.
|
||||
|
|
|
@ -13,7 +13,7 @@ menu:
|
|||
weight: 501
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/median/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#median, InfluxQL – MEDIAN()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#median, InfluxQL – MEDIAN()
|
||||
---
|
||||
|
||||
The `median()` function is a special application of the [`quantile()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile)
|
||||
|
|
|
@ -11,7 +11,7 @@ menu:
|
|||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#mode, InfluxQL – MODE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#mode, InfluxQL – MODE()
|
||||
---
|
||||
|
||||
The `mode()` function computes the mode or value that occurs most often in a
|
||||
|
|
|
@ -12,7 +12,7 @@ menu:
|
|||
weight: 501
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/percentile-quantile/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#percentile, InfluxQL – PERCENTILE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#percentile, InfluxQL – PERCENTILE()
|
||||
---
|
||||
|
||||
The `quantile()` function returns records from an input table with `_value`s that fall within
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#spread, InfluxQL – SPREAD()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#spread, InfluxQL – SPREAD()
|
||||
---
|
||||
|
||||
The `spread()` function outputs the difference between the minimum and maximum values in a specified column.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#stddev, InfluxQL – STDDEV()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#stddev, InfluxQL – STDDEV()
|
||||
---
|
||||
|
||||
The `stddev()` function computes the standard deviation of non-null records in a specified column.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-aggregates
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#sum, InfluxQL – SUM()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#sum, InfluxQL – SUM()
|
||||
---
|
||||
|
||||
The `sum()` function computes the sum of non-null records in a specified column.
|
||||
|
|
|
@ -12,7 +12,7 @@ menu:
|
|||
parent: built-in-transformations
|
||||
weight: 402
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#triple-exponential-moving-average, InfluxQL CHANDE_MOMENTUM_OSCILLATOR()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#triple-exponential-moving-average, InfluxQL CHANDE_MOMENTUM_OSCILLATOR()
|
||||
---
|
||||
|
||||
The `chandeMomentumOscillator()` function applies the technical momentum indicator
|
||||
|
|
|
@ -13,10 +13,10 @@ menu:
|
|||
parent: built-in-transformations
|
||||
weight: 402
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-measurements, InfluxQL – SHOW MEASUREMENTS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-field-keys, InfluxQL – SHOW FIELD KEYS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW TAG KEYS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW SERIES
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-measurements, InfluxQL – SHOW MEASUREMENTS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-field-keys, InfluxQL – SHOW FIELD KEYS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW TAG KEYS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW SERIES
|
||||
---
|
||||
|
||||
The `columns()` function lists the column labels of input tables.
|
||||
|
|
|
@ -11,7 +11,7 @@ menu:
|
|||
weight: 402
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/cumulativesum/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#cumulative-sum, InfluxQL – CUMULATIVE_SUM()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#cumulative-sum, InfluxQL – CUMULATIVE_SUM()
|
||||
---
|
||||
|
||||
The `cumulativeSum()` function computes a running sum for non-null records in the table.
|
||||
|
|
|
@ -13,7 +13,7 @@ aliases:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/derivative
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/rate/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#derivative, InfluxQL – DERIVATIVE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#derivative, InfluxQL – DERIVATIVE()
|
||||
---
|
||||
|
||||
The `derivative()` function computes the rate of change per [`unit`](#unit) of time between subsequent non-null records.
|
||||
|
|
|
@ -12,7 +12,7 @@ weight: 402
|
|||
aliases:
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/difference
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#difference, InfluxQL – DIFFERENCE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#difference, InfluxQL – DIFFERENCE()
|
||||
---
|
||||
|
||||
The `difference()` function computes the difference between subsequent records.
|
||||
|
|
|
@ -17,7 +17,7 @@ related:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/tripleema/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/timedmovingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#double-exponential-moving-average, InfluxQL DOUBLE_EXPONENTIAL_MOVING_AVERAGE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#double-exponential-moving-average, InfluxQL DOUBLE_EXPONENTIAL_MOVING_AVERAGE()
|
||||
---
|
||||
|
||||
The `doubleEMA()` function calculates the exponential moving average of values in
|
||||
|
|
|
@ -16,7 +16,7 @@ related:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/timedmovingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/doubleema/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/tripleema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#exponential-moving-average, InfluxQL EXPONENTIAL_MOVING_AVERAGE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#exponential-moving-average, InfluxQL EXPONENTIAL_MOVING_AVERAGE()
|
||||
---
|
||||
|
||||
The `exponentialMovingAverage()` function calculates the exponential moving average of values
|
||||
|
|
|
@ -11,7 +11,7 @@ menu:
|
|||
weight: 402
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/fill/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#group-by-time-intervals-and-fill, InfluxQL – FILL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#group-by-time-intervals-and-fill, InfluxQL – FILL
|
||||
---
|
||||
|
||||
The `fill()` function replaces all null values in an input stream with a non-null value.
|
||||
|
|
|
@ -14,7 +14,7 @@ related:
|
|||
- /influxdb/v2.0/query-data/flux/query-fields/
|
||||
- /influxdb/v2.0/query-data/flux/conditional-logic/
|
||||
- /influxdb/v2.0/query-data/flux/exists/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-basic-select-statement, InfluxQL – SELECT
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#the-basic-select-statement, InfluxQL – SELECT
|
||||
---
|
||||
|
||||
The `filter()` function filters data based on conditions defined in a predicate function ([`fn`](#fn)).
|
||||
|
|
|
@ -11,7 +11,7 @@ menu:
|
|||
weight: 402
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/group-data/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-group-by-clause, InfluxQL – GROUP BY
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#the-group-by-clause, InfluxQL – GROUP BY
|
||||
---
|
||||
|
||||
The `group()` function groups records based on their values for specific columns.
|
||||
|
|
|
@ -12,7 +12,7 @@ menu:
|
|||
parent: built-in-transformations
|
||||
weight: 402
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#holt-winters, InfluxQL HOLT_WINTERS()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#holt-winters, InfluxQL HOLT_WINTERS()
|
||||
---
|
||||
|
||||
The `holtWinters()` function applies the Holt-Winters forecasting method to input tables.
|
||||
|
|
|
@ -13,7 +13,7 @@ menu:
|
|||
weight: 402
|
||||
related:
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/kaufmanser/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#kaufmans-adaptive-moving-average, InfluxQL KAUFMANS_ADAPTIVE_MOVING_AVERAGE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#kaufmans-adaptive-moving-average, InfluxQL KAUFMANS_ADAPTIVE_MOVING_AVERAGE()
|
||||
---
|
||||
|
||||
The `kaufmansAMA()` function calculates the Kaufman's Adaptive Moving Average (KAMA)
|
||||
|
|
|
@ -13,7 +13,7 @@ menu:
|
|||
weight: 402
|
||||
related:
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/kaufmansama/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#kaufmans-efficiency-ratio, InfluxQL KAUFMANS_EFFICIENCY_RATIO()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#kaufmans-efficiency-ratio, InfluxQL KAUFMANS_EFFICIENCY_RATIO()
|
||||
---
|
||||
|
||||
The `kaufmansER()` function calculates the Kaufman's Efficiency Ratio (KER) using
|
||||
|
|
|
@ -13,10 +13,10 @@ menu:
|
|||
parent: built-in-transformations
|
||||
weight: 402
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-measurements, InfluxQL – SHOW MEASUREMENTS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-field-keys, InfluxQL – SHOW FIELD KEYS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW TAG KEYS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW SERIES
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-measurements, InfluxQL – SHOW MEASUREMENTS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-field-keys, InfluxQL – SHOW FIELD KEYS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW TAG KEYS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW SERIES
|
||||
---
|
||||
|
||||
The `keys()` function outputs the group key of input tables.
|
||||
|
|
|
@ -10,11 +10,11 @@ menu:
|
|||
parent: built-in-transformations
|
||||
weight: 402
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-measurements, InfluxQL – SHOW MEASUREMENTS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-field-keys, InfluxQL – SHOW FIELD KEYS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW TAG KEYS
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-tag-values, InfluxQL – SHOW TAG VALUES
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-serie, InfluxQL – SHOW SERIES
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-measurements, InfluxQL – SHOW MEASUREMENTS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-field-keys, InfluxQL – SHOW FIELD KEYS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-tag-keys, InfluxQL – SHOW TAG KEYS
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-tag-values, InfluxQL – SHOW TAG VALUES
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration/#show-serie, InfluxQL – SHOW SERIES
|
||||
---
|
||||
|
||||
The `keyValues()` function returns a table with the input table's group key plus two columns,
|
||||
|
|
|
@ -12,7 +12,7 @@ weight: 402
|
|||
related:
|
||||
- /influxdb/v2.0/query-data/flux/sort-limit/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/tail/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-limit-and-slimit-clauses, InfluxQL LIMIT
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#the-limit-and-slimit-clauses, InfluxQL LIMIT
|
||||
---
|
||||
|
||||
The `limit()` function limits each output table to the first [`n`](#n) records.
|
||||
|
|
|
@ -16,7 +16,7 @@ related:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/doubleema/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/tripleema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE()
|
||||
---
|
||||
|
||||
The `movingAverage()` function calculates the mean of values in the `_values` column
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-transformations
|
||||
weight: 402
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-where-clause, InfluxQL – WHERE
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#the-where-clause, InfluxQL – WHERE
|
||||
---
|
||||
|
||||
The `range()` function filters records based on time bounds.
|
||||
|
|
|
@ -15,7 +15,7 @@ related:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/movingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/timedmovingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#relative-strength-index, InfluxQL RELATIVE_STRENGTH_INDEX()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#relative-strength-index, InfluxQL RELATIVE_STRENGTH_INDEX()
|
||||
---
|
||||
|
||||
The `relativeStrengthIndex()` function measures the relative speed and change of
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-selectors
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#bottom, InfluxQL – BOTTOM()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#bottom, InfluxQL – BOTTOM()
|
||||
---
|
||||
|
||||
The `bottom()` function sorts a table by columns and keeps only the bottom `n` records.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-selectors
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#distinct, InfluxQL – DISTINCT()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#distinct, InfluxQL – DISTINCT()
|
||||
---
|
||||
|
||||
The `distinct()` function returns the unique values for a given column.
|
||||
|
|
|
@ -11,7 +11,7 @@ menu:
|
|||
weight: 501
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/first-last/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#first, InfluxQL – FIRST()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#first, InfluxQL – FIRST()
|
||||
---
|
||||
|
||||
The `first()` function selects the first non-null record from an input table.
|
||||
|
|
|
@ -11,7 +11,7 @@ menu:
|
|||
weight: 501
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/first-last/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#last, InfluxQL – LAST()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#last, InfluxQL – LAST()
|
||||
---
|
||||
|
||||
The `last()` function selects the last non-null record from an input table.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-selectors
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#max, InfluxQL – MAX()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#max, InfluxQL – MAX()
|
||||
---
|
||||
|
||||
The `max()` function selects record with the highest `_value` from the input table.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-selectors
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#min, InfluxQL – MIN()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#min, InfluxQL – MIN()
|
||||
---
|
||||
|
||||
The `min()` function selects record with the lowest `_value` from the input table.
|
||||
|
|
|
@ -10,7 +10,7 @@ menu:
|
|||
parent: built-in-selectors
|
||||
weight: 501
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#sample, InfluxQL – SAMPLE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#sample, InfluxQL – SAMPLE()
|
||||
---
|
||||
|
||||
The `sample()` function selects a subset of the records from the input table.
|
||||
|
|
|
@ -16,7 +16,7 @@ related:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/doubleema/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/tripleema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE()
|
||||
---
|
||||
|
||||
The `timedMovingAverage()` function calculates the mean of values in a defined time
|
||||
|
|
|
@ -17,7 +17,7 @@ related:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/doubleema/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/timedmovingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#triple-exponential-moving-average, InfluxQL TRIPLE_EXPONENTIAL_MOVING_AVERAGE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#triple-exponential-moving-average, InfluxQL TRIPLE_EXPONENTIAL_MOVING_AVERAGE()
|
||||
---
|
||||
|
||||
The `tripleEMA()` function calculates the exponential moving average of values in
|
||||
|
|
|
@ -18,7 +18,7 @@ related:
|
|||
- /v2.0/reference/flux/stdlib/built-in/transformations/tripleema/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/timedmovingaverage/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/exponentialmovingaverage/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#triple-exponential-derivative, InfluxQL TRIPLE_EXPONENTIAL_DERIVATIVE()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/functions/#triple-exponential-derivative, InfluxQL TRIPLE_EXPONENTIAL_DERIVATIVE()
|
||||
---
|
||||
|
||||
The `tripleExponentialDerivative()` function calculates a triple exponential
|
||||
|
|
|
@ -12,7 +12,7 @@ weight: 402
|
|||
related:
|
||||
- /influxdb/v2.0/query-data/flux/window-aggregate/
|
||||
- /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-group-by-clause, InfluxQL – GROUP BY time()
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/data_exploration/#the-group-by-clause, InfluxQL – GROUP BY time()
|
||||
---
|
||||
|
||||
The `window()` function groups records based on a time value.
|
||||
|
|
|
@ -7,7 +7,7 @@ menu:
|
|||
parent: InfluxDB v1
|
||||
weight: 301
|
||||
related:
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-databases, SHOW DATABASES in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-databases, SHOW DATABASES in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.databases()` function returns a list of databases in an **InfluxDB 1.7+ instance**.
|
||||
|
|
|
@ -9,7 +9,7 @@ weight: 301
|
|||
influxdb/v2.0/tags: [fields]
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/explore-schema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-field-keys, SHOW FIELD KEYS in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-field-keys, SHOW FIELD KEYS in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.fieldKeys()` function returns field keys in a bucket.
|
||||
|
|
|
@ -9,7 +9,7 @@ weight: 301
|
|||
influxdb/v2.0/tags: [fields]
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/explore-schema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-field-keys, SHOW FIELD KEYS in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-field-keys, SHOW FIELD KEYS in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.measurementFieldKeys()` function returns a list of fields in a measurement.
|
||||
|
|
|
@ -11,7 +11,7 @@ weight: 301
|
|||
influxdb/v2.0/tags: [measurements]
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/explore-schema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-measurements, SHOW MEASUREMENTS in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-measurements, SHOW MEASUREMENTS in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.measurements()` function returns a list of measurements in a specific bucket.
|
||||
|
|
|
@ -11,7 +11,7 @@ weight: 301
|
|||
influxdb/v2.0/tags: [tags]
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/explore-schema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-tag-keys, SHOW TAG KEYS in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-tag-keys, SHOW TAG KEYS in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.measurementTagKeys()` function returns a list of tag keys for a specific measurement.
|
||||
|
|
|
@ -11,7 +11,7 @@ weight: 301
|
|||
influxdb/v2.0/tags: [tags]
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/explore-schema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-tag-values, SHOW TAG VALUES in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-tag-values, SHOW TAG VALUES in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.measurementTagValues()` function returns a list of tag values for a specific measurement.
|
||||
|
|
|
@ -11,7 +11,7 @@ weight: 301
|
|||
influxdb/v2.0/tags: [tags]
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/explore-schema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-tag-keys, SHOW TAG KEYS in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-tag-keys, SHOW TAG KEYS in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.tagKeys()` function returns a list of tag keys for all series that match the [`predicate`](#predicate).
|
||||
|
|
|
@ -11,7 +11,7 @@ weight: 301
|
|||
influxdb/v2.0/tags: [tags]
|
||||
related:
|
||||
- /influxdb/v2.0/query-data/flux/explore-schema/
|
||||
- https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration#show-tag-values, SHOW TAG VALUES in InfluxQL
|
||||
- /{{< latest "influxdb" "v1" >}}/query_language/schema_exploration#show-tag-values, SHOW TAG VALUES in InfluxQL
|
||||
---
|
||||
|
||||
The `v1.tagValues()` function returns a list unique values for a given tag.
|
||||
|
|
|
@ -860,7 +860,7 @@ The series cardinality would remain unchanged at 6, as `firstname` is already sc
|
|||
| cliff@influxdata.com | start | clifford |
|
||||
| cliff@influxdata.com | finish | clifford |
|
||||
|
||||
<!--See [SHOW CARDINALITY](/influxdb/latest/query_language/spec/#show-cardinality) to learn about the InfluxQL commands for series cardinality. -->
|
||||
<!--See [SHOW CARDINALITY](/{{< latest "influxdb" "v1" >}}/query_language/spec/#show-cardinality) to learn about the InfluxQL commands for series cardinality. -->
|
||||
|
||||
Related entries: [field key](#field-key),[measurement](#measurement), [tag key](#tag-key), [tag set](#tag-set)
|
||||
|
||||
|
@ -910,7 +910,7 @@ Related entries: [series](#series), [shard duration](#shard-duration), [shard gr
|
|||
|
||||
The shard duration determines how much time each shard group spans.
|
||||
The specific interval is determined by the `SHARD DURATION` of the retention policy.
|
||||
<!-- See [Retention Policy management](/influxdb/latest/query_language/database_management/#retention-policy-management) for more information.
|
||||
<!-- See [Retention Policy management](/{{< latest "influxdb" "v1" >}}/query_language/database_management/#retention-policy-management) for more information.
|
||||
|
||||
For example, given a retention policy with `SHARD DURATION` set to `1w`, each shard group will span a single week and contain all points with timestamps in that week.
|
||||
|
||||
|
@ -1057,7 +1057,7 @@ To enable tracing or set other InfluxDB configuration options, see [InfluxDB con
|
|||
### transformation
|
||||
|
||||
An InfluxQL function that returns a value or a set of values calculated from specified points, but does not return an aggregated value across those points.
|
||||
See [InfluxQL functions](http://docs.influxdata.com/influxdb/latest/query_language/functions/#transformations) for a complete list of the available and upcoming aggregations.
|
||||
See [InfluxQL functions](/{{< latest "influxdb" "v1" >}}/query_language/functions/#transformations) for a complete list of the available and upcoming aggregations.
|
||||
|
||||
Related entries: [aggregate](#aggregate), [function](#function), [selector](#selector)
|
||||
|
||||
|
@ -1072,7 +1072,7 @@ The Time Series Logs (TSL) extension (`.tsl`) identifies Time Series Index (TSI)
|
|||
### TSM (Time Structured Merge tree)
|
||||
|
||||
A data storage format that allows greater compaction and higher write and read throughput than B+ or LSM tree implementations.
|
||||
For more information, see [Storage engine](http://docs.influxdata.com/influxdb/latest/concepts/storage_engine/).
|
||||
For more information, see [Storage engine](/{{< latest "influxdb" "v1" >}}/concepts/storage_engine/).
|
||||
|
||||
Related entries: [TSI](#tsi-time-series-index)
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ _Used in [Query SQL data sources](/v2.0/query-data/flux/sql/)._
|
|||
Bird migration data is adapted from the
|
||||
[Movebank: Animal Tracking data set on Kaggle](https://www.kaggle.com/pulkit8595/movebank-animal-tracking)
|
||||
and represents animal migratory movements throughout 2019.
|
||||
Use the [Flux Geo package](https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/experimental/geo/#geo-schema-requirements)
|
||||
Use the [Flux Geo package](/influxdb/v2.0/reference/flux/stdlib/experimental/geo/#geo-schema-requirements)
|
||||
to query and analyze the geo-temporal data in this sample data set.
|
||||
|
||||
<a class="btn" href="https://github.com/influxdata/influxdb2-sample-data/tree/master/bird-migration-data" target="\_blank">
|
||||
|
|
|
@ -119,7 +119,7 @@ InfluxDB supports three types of TLS certificates:
|
|||
|
||||
## Connect Telegraf to a secured InfluxDB instance
|
||||
|
||||
To connect [Telegraf](https://docs.influxdata.com/telegraf/latest/) to an InfluxDB 2.0 instance with TLS enabled,
|
||||
To connect [Telegraf](/{{< latest "telegraf" >}}/) to an InfluxDB 2.0 instance with TLS enabled,
|
||||
update the following `influxdb_v2` output settings in your Telegraf configuration file:
|
||||
|
||||
- Update URLs to use HTTPS instead of HTTP.
|
||||
|
|
|
@ -66,7 +66,7 @@ v1.tagValues(bucket: "bucket-name", tag: "host")
|
|||
## List Docker containers
|
||||
List all Docker containers when using the Docker Telegraf plugin.
|
||||
|
||||
_**Telegraf plugin:** [Docker](https://docs.influxdata.com/telegraf/latest/plugins/inputs/#docker)_
|
||||
_**Telegraf plugin:** [Docker](/{{< latest "telegraf" >}}/plugins/inputs/#docker)_
|
||||
_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/)_
|
||||
_**Flux functions:** [v1.tagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues/)_
|
||||
|
||||
|
@ -78,7 +78,7 @@ v1.tagValues(bucket: "bucket-name", tag: "container_name")
|
|||
## List Kubernetes pods
|
||||
List all Kubernetes pods when using the Kubernetes Telegraf plugin.
|
||||
|
||||
_**Telegraf plugin:** [Kubernetes](https://docs.influxdata.com/telegraf/latest/plugins/inputs/#kubernetes)_
|
||||
_**Telegraf plugin:** [Kubernetes](/{{< latest "telegraf" >}}/plugins/inputs/#kubernetes)_
|
||||
_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/)_
|
||||
_**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues/)_
|
||||
|
||||
|
@ -94,7 +94,7 @@ v1.measurementTagValues(
|
|||
## List Kubernetes nodes
|
||||
List all Kubernetes nodes when using the Kubernetes Telegraf plugin.
|
||||
|
||||
_**Telegraf plugin:** [Kubernetes](https://docs.influxdata.com/telegraf/latest/plugins/inputs/#kubernetes)_
|
||||
_**Telegraf plugin:** [Kubernetes](/{{< latest "telegraf" >}}/plugins/inputs/#kubernetes)_
|
||||
_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/)_
|
||||
_**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues/)_
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ Choose from the following demo data sets:
|
|||
3. The Demo Data bucket appears in your list of buckets.
|
||||
|
||||
## Explore demo data
|
||||
Use the [Data Explorer](https://v2.docs.influxdata.com/v2.0/visualize-data/explore-metrics/)
|
||||
Use the [Data Explorer](/influxdb/v2.0/visualize-data/explore-metrics/)
|
||||
to query and visualize data in demo data buckets.
|
||||
|
||||
In the navigation menu on the left, click **Explore (Data Explorer)**.
|
||||
|
|
|
@ -50,9 +50,9 @@ To configure Apache JMeter, complete the following steps in InfluxDB and JMeter.
|
|||
|
||||
##### In InfluxDB
|
||||
|
||||
1. [Find the name of your organization](https://v2.docs.influxdata.com/v2.0/organizations/view-orgs/) (needed to create a bucket and token).
|
||||
2. [Create a bucket using the influx CLI](https://v2.docs.influxdata.com/v2.0/organizations/buckets/create-bucket/#create-a-bucket-using-the-influx-cli) and name it `jmeter`.
|
||||
3. [Create a token](https://v2.docs.influxdata.com/v2.0/security/tokens/create-token/).
|
||||
1. [Find the name of your organization](/influxdb/v2.0/organizations/view-orgs/) (needed to create a bucket and token).
|
||||
2. [Create a bucket using the influx CLI](/influxdb/v2.0/organizations/buckets/create-bucket/#create-a-bucket-using-the-influx-cli) and name it `jmeter`.
|
||||
3. [Create a token](/influxdb/v2.0/security/tokens/create-token/).
|
||||
|
||||
##### In JMeter
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ For a list of available plugins, see [Telegraf plugins](/v2.0/reference/telegraf
|
|||
#### Requirements
|
||||
- **Telegraf 1.9.2 or greater**.
|
||||
_For information about installing Telegraf, see the
|
||||
[Telegraf Installation instructions](https://docs.influxdata.com/telegraf/latest/introduction/installation/)._
|
||||
[Telegraf Installation instructions](/{{< latest "telegraf" >}}/introduction/installation/)._
|
||||
|
||||
{{< youtube qFS2zANwIrc >}}
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ The timezone We'll set this to the Unix TZ value where our bike data takes place
|
|||
|
||||
## Start Telegraf and verify data appears
|
||||
|
||||
[Start the Telegraf service](https://docs.influxdata.com/telegraf/v1.14/introduction/getting-started/).
|
||||
[Start the Telegraf service](/telegraf/v1.14/introduction/getting-started/).
|
||||
|
||||
To test that the data is being sent to InfluxDB, run the following (replacing `telegraf.conf` with the path to your configuration file):
|
||||
|
||||
|
|
Loading…
Reference in New Issue