The examples above represent 2020-01-01T00:00:00Z UTC.
+ +Related entries: [timestamp](#timestamp), [RFC3339 timestamp](#rfc3339-timestamp) + ### user InfluxDB users are granted permission to access to InfluxDB. @@ -1082,13 +1101,18 @@ Users are added as a member of an organization and are given a unique authentica ## V -## values per second +### values per second The preferred measurement of the rate at which data are persisted to InfluxDB. Write speeds are generally quoted in values per second. -To calculate the values per second rate, multiply the number of points written per second by the number of values stored per point. -For example, if the points have four fields each, and a batch of 5000 points is written 10 times per second, the values per second rate is `4 field values per point * 5000 points per batch * 10 batches per second = 200,000 values per second`. +To calculate the values per second rate, multiply the number of points written +per second by the number of values stored per point. +For example, if the points have four fields each, and a batch of 5000 points is +written 10 times per second, the values per second rate is: + +**4 field values per point** × **5000 points per batch** × **10 batches per second** = **200,000 values per second** + Related entries: [batch](#batch), [field](#field), [point](#point) diff --git a/content/v2.0/reference/key-concepts/data-elements.md b/content/v2.0/reference/key-concepts/data-elements.md index f8ca28895..89cb7484f 100644 --- a/content/v2.0/reference/key-concepts/data-elements.md +++ b/content/v2.0/reference/key-concepts/data-elements.md @@ -40,7 +40,7 @@ _Hover over highlighted terms to get acquainted with InfluxDB terminology and la ## Timestamp -All data stored in InfluxDB has a `_time` column that stores timestamps. On disk, timestamps are stored in epoch nanosecond format. InfluxDB formats timestamps show the date and time in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) UTC associated with data. Timestamp precision is important when you write data. +All data stored in InfluxDB has a `_time` column that stores timestamps. On disk, timestamps are stored in epoch nanosecond format. InfluxDB formats timestamps show the date and time in [RFC3339](/v2.0/reference/glossary/#rfc3339-timestamp) UTC associated with data. Timestamp precision is important when you write data. ## Measurement diff --git a/content/v2.0/reference/release-notes/influxdb.md b/content/v2.0/reference/release-notes/influxdb.md index 075ca38d9..827286226 100644 --- a/content/v2.0/reference/release-notes/influxdb.md +++ b/content/v2.0/reference/release-notes/influxdb.md @@ -8,6 +8,25 @@ menu: weight: 101 --- +## v2.0.0-beta.10 [2020-05-07] + +### Features + +- Add ability to delete a stack and all associated resources. +- Enforce DNS name compliance on the `metadata.name` field in all `pkger` resources. +- Add stateful `pkg` management with stacks. + +### Bug Fixes + +- Ensure `UpdateUser` cleans up the index when updating names. +- Ensure Checks can be set for zero values. + +### UI Improvements + +- Create buckets in the Data Explorer and Cell Editor. + +--- + ## v2.0.0-beta.9 [2020-04-23] ### Bug Fixes @@ -20,6 +39,8 @@ weight: 101 - Sort dashboards on Getting Started page by recently modified. - Add single-color schemes for visualizations: Solid Red, Solid Blue, Solid Yellow, Solid Green, and Solid Purple. +--- + ## v2.0.0-beta.8 [2020-04-10] ### Features @@ -40,6 +61,8 @@ weight: 101 - Update layout of Alerts page to work on all screen sizes. - Sort dashboards on Getting Started page by recently modified. +--- + ## v2.0.0-beta.7 [2020-03-27] ### Features @@ -131,6 +154,8 @@ weight: 101 - Remove pkger gauge chart requirement for color threshold type. - Remove secret confirmation from `influx secret update`. +--- + ## v2.0.0-beta.4 [2020-02-14] ### Features diff --git a/content/v2.0/reference/syntax/line-protocol.md b/content/v2.0/reference/syntax/line-protocol.md index 7bfae3b61..ea15303b6 100644 --- a/content/v2.0/reference/syntax/line-protocol.md +++ b/content/v2.0/reference/syntax/line-protocol.md @@ -10,6 +10,8 @@ weight: 102 v2.0/tags: [write, line protocol, syntax] aliases: - /v2.0/reference/line-protocol +related: + - /v2.0/write-data/ --- InfluxDB uses line protocol to write data points. @@ -87,20 +89,18 @@ measurementName fieldKey="field string value" 1556813561098000000 ### Timestamp _**Optional**_ – -The Unix nanosecond timestamp for the data point. +The [unix timestamp](/v2.0/reference/glossary/#unix-timestamp) for the data point. InfluxDB accepts one timestamp per point. If no timestamp is provided, InfluxDB uses the system time (UTC) of its host machine. _**Data type:** [Unix timestamp](#unix-timestamp)_ {{% note %}} -To ensure a data point includes the time a metric is observed (not received by InfluxDB), -include the timestamp. -{{% /note %}} - -{{% note %}} -_Use the default nanosecond precision timestamp or specify an alternative precision -when [writing the data](/v2.0/write-data/#timestamp-precision)._ +#### Important notes about timestamps +- To ensure a data point includes the time a metric is observed (not received by InfluxDB), + include the timestamp. +- If your timestamps are not in nanoseconds, specify the precision of your timestamps + when [writing the data to InfluxDB](/v2.0/write-data/#timestamp-precision). {{% /note %}} ### Whitespace @@ -191,7 +191,8 @@ Quoted field values are interpreted as strings. {{% /note %}} ### Unix timestamp -Unix nanosecond timestamp. +Unix timestamp in a [specified precision](/v2.0/reference/glossary/#unix-timestamp). +Default precision is nanoseconds (`ns`). | Minimum timestamp | Maximum timestamp | | ----------------- | ----------------- | diff --git a/content/v2.0/security/secrets/_index.md b/content/v2.0/security/secrets/_index.md index 42435639b..77db72005 100644 --- a/content/v2.0/security/secrets/_index.md +++ b/content/v2.0/security/secrets/_index.md @@ -1,6 +1,6 @@ --- title: Store and use secrets -description: +description: Use BoltDB or Vault to store secrets for InfluxDB. v2.0/tags: [secrets, security] menu: v2_0: diff --git a/content/v2.0/visualize-data/explore-metrics.md b/content/v2.0/visualize-data/explore-metrics.md index 9105307ef..ac4116aa5 100644 --- a/content/v2.0/visualize-data/explore-metrics.md +++ b/content/v2.0/visualize-data/explore-metrics.md @@ -31,7 +31,7 @@ See [Get started with Flux](/v2.0/query-data/get-started) to learn more about Fl {{< nav-icon "data-explorer" >}} 2. Use the Flux builder in the bottom panel to create a Flux query: - - Select a bucket to define your data source. + - Select a bucket to define your data source or select `+ Create Bucket` to add a new bucket. - Edit your time range with the [time range option](#select-time-range) in the dropdown menu. - Add filters to narrow your data by selecting attributes or columns in the dropdown menu. - Select **Group** from the **Filter** dropdown menu to group data into tables. For more about how grouping data in Flux works, see [Group data](/v2.0/query-data/flux/group-data/). diff --git a/content/v2.0/visualize-data/variables/_index.md b/content/v2.0/visualize-data/variables/_index.md index fc7bc6c76..9548119b4 100644 --- a/content/v2.0/visualize-data/variables/_index.md +++ b/content/v2.0/visualize-data/variables/_index.md @@ -23,7 +23,7 @@ Reference each variable using dot-notation (e.g. `v.variableName`). ```js from(bucket: v.bucket) - |> range(start: v.timeRangeStart, stop: v.timeRangeStart) + |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r._measurement == v.measurement and r._field == v.field) |> aggregateWindow(every: v.windowPeriod, fn: mean) ``` @@ -35,6 +35,10 @@ in the **Variables** tab next to the Functions tab. Click a variable name to add it to your query and select a value from the **Value** dropdown. +## Link to dashboards with variables defined in the URL + +When you apply a variable to your dashboard, `&vars[variable_name]=value` is appended to the URL so you can share the link with the variables included. + ## Predefined dashboard variables The InfluxDB user interface (UI) provides the following predefined dashboard variables: diff --git a/content/v2.0/write-data/_index.md b/content/v2.0/write-data/_index.md index 127812d3e..e94db17ea 100644 --- a/content/v2.0/write-data/_index.md +++ b/content/v2.0/write-data/_index.md @@ -26,7 +26,8 @@ the InfluxDB user interface (UI), and client libraries. - [User Interface](#user-interface) - [influx CLI](#influx-cli) - [InfluxDB API](#influxdb-api) - - [Others](#others) + - [Other ways to write data](#other-ways-to-write-data) +- [Next steps](#next-steps) ### What you'll need @@ -56,7 +57,7 @@ mem,host=host1 used_percent=21.83599203 1556892777007291000 ``` #### Timestamp precision -Timestamps are essential in InfluxDB. +When writing data to InfluxDB, we [recommend including a timestamp](/v2.0/reference/syntax/line-protocol/#timestamp) with each point. If a data point does not include a timestamp when it is received by the database, InfluxDB uses the current system time (UTC) of its host machine. @@ -70,7 +71,8 @@ InfluxDB accepts the following precisions: - `ms` - Milliseconds - `s` - Seconds -_For more details about line protocol, see the [Line protocol reference](/v2.0/reference/syntax/line-protocol) and [Best practices for writing data](/v2.0/write-data/best-practices/)._ +_For more details about line protocol, see the [Line protocol reference](/v2.0/reference/syntax/line-protocol) +and [Best practices for writing data](/v2.0/write-data/best-practices/)._ ## Ways to write data into InfluxDB @@ -179,7 +181,7 @@ influx write \ ### InfluxDB API Write data to InfluxDB using an HTTP request to the InfluxDB API `/write` endpoint. -Include the following in your request: +Use the `POST` request method and include the following in your request: | Requirement | Include by | |:----------- |:---------- | @@ -189,19 +191,50 @@ Include the following in your request: | Authentication token | Use the `Authorization: Token` header. | | Line protocol | Pass as plain text in your request body. | -##### Example API write request +#### Example API write request Below is an example API write request using `curl`. -The URL depends on the version and location of your InfluxDB 2.0 instance. +The URL depends on the version and location of your InfluxDB 2.0 instance _(see [InfluxDB URLs](/v2.0/reference/urls/))_. +To compress data when writing to InfluxDB, set the `Content-Encoding` header to `gzip`. +Compressing write requests reduces network bandwidth, but increases server-side load. +{{< code-tabs-wrapper >}} +{{% code-tabs %}} +[Uncompressed](#) +[Compressed](#) +{{% /code-tabs %}} +{{% code-tab-content %}} ```sh curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \ --header "Authorization: Token YOURAUTHTOKEN" \ - --data-raw "mem,host=host1 used_percent=23.43234543 1556896326" + --data-raw " +mem,host=host1 used_percent=23.43234543 1556896326 +mem,host=host2 used_percent=26.81522361 1556896326 +mem,host=host1 used_percent=22.52984738 1556896336 +mem,host=host2 used_percent=27.18294630 1556896336 +" ``` +{{% /code-tab-content %}} +{{% code-tab-content %}} +```bash +curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \ + --header "Authorization: Token YOURAUTHTOKEN" \ + --header "Content-Encoding: gzip" \ + --data-raw " +mem,host=host1 used_percent=23.43234543 1556896326 +mem,host=host2 used_percent=26.81522361 1556896326 +mem,host=host1 used_percent=22.52984738 1556896336 +mem,host=host2 used_percent=27.18294630 1556896336 +" +``` +{{% /code-tab-content %}} +{{< /code-tabs-wrapper >}} -### Others +_For information about **InfluxDB API response codes**, see +[InfluxDB API Write documentation](/v2.0/api/#operation/PostWrite)._ + +## Other ways to write data {{< children >}} @@ -209,3 +242,23 @@ curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET& Use language-specific client libraries to integrate with the InfluxDB v2 API. See [Client libraries reference](/v2.0/reference/api/client-libraries/) for more information. + +--- + +## Next steps +With your data in InfluxDB, you're ready to do one or more of the following: + +### Query and explore your data +Query data using Flux, the UI, and the `influx` command line interface. +See [Query data](/v2.0/query-data/). + +### Process your data +Use InfluxDB tasks to process and downsample data. See [Process data](/v2.0/process-data/). + +### Visualize your data +Build custom dashboards to visualize your data. +See [Visualize data](/v2.0/visualize-data/). + +### Monitor your data and send alerts +Monitor your data and sends alerts based on specified logic. +See [Monitor and alert](/v2.0/monitor-alert/). diff --git a/content/v2.0/write-data/use-telegraf/manual-config.md b/content/v2.0/write-data/use-telegraf/manual-config.md index 7671dd1e7..6bdc200af 100644 --- a/content/v2.0/write-data/use-telegraf/manual-config.md +++ b/content/v2.0/write-data/use-telegraf/manual-config.md @@ -44,7 +44,17 @@ To send data to an InfluxDB v2.0 instance, enable in the [`influxdb_v2` output plugin](https://github.com/influxdata/telegraf/blob/master/plugins/outputs/influxdb_v2/README.md) in the `telegraf.conf`. -Specify the following: +To find an example InfluxDB v2 output plugin configuration in the UI: + +1. In the navigation menu on the left, select **Data (Load Data)** > **Telegraf**. + + {{< nav-icon "load data" >}} + +2. Click **InfluxDB Output Plugin**. +3. Click **Copy to Clipboard** to copy the example configuration or **Download Config** to save a copy. +4. Paste the example configuration into your `telegraf.conf` and specify the options below. + +The InfluxDB output plugin configuration contains the following options: ##### urls An array of URLs for your InfluxDB v2.0 instances. diff --git a/data/telegraf_plugins.yml b/data/telegraf_plugins.yml index f30542dbb..4b5ed5e56 100644 --- a/data/telegraf_plugins.yml +++ b/data/telegraf_plugins.yml @@ -932,7 +932,7 @@ input: The MQTT Consumer input plugin reads from specified MQTT topics and adds messages to InfluxDB. Messages are in the [Telegraf input data formats](https://docs.influxdata.com/telegraf/latest/data_formats/input/). introduced: 0.10.3 - tags: [linux, macos, windows, messaging] + tags: [linux, macos, windows, messaging, IoT] - name: Multifile id: multifile @@ -1864,7 +1864,7 @@ output: The MQTT Producer output plugin writes to the MQTT server using [supported output data formats](https://docs.influxdata.com/telegraf/latest/data_formats/output/). introduced: 0.2.0 - tags: [linux, macos, windows, messaging] + tags: [linux, macos, windows, messaging, IoT] - name: NATS Output id: nats diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ffeb7d230..e8f367bbf 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -17,6 +17,7 @@ {{ partial "header/canonical.html" . }} {{ partial "header/stylesheets.html" }} {{ partial "header/google-fonts.html" }} + {{ partial "header/marketing.html" }} {{ partial "header/javascript.html" }} diff --git a/layouts/partials/header/marketing.html b/layouts/partials/header/marketing.html new file mode 100644 index 000000000..1f393934f --- /dev/null +++ b/layouts/partials/header/marketing.html @@ -0,0 +1,36 @@ + + + + +