diff --git a/content/v2.0/cloud/pricing-calculator.md b/content/v2.0/cloud/pricing-calculator.md index 0ed972557..08645f9d7 100644 --- a/content/v2.0/cloud/pricing-calculator.md +++ b/content/v2.0/cloud/pricing-calculator.md @@ -45,4 +45,4 @@ Guidelines used to estimate costs for default configurations: - **Professional**. For teams monitoring multiple disparate systems or use cases. - **Enterprise**. For teams monitoring multiple domains and use cases accessing a variety of dashboards. 5. Adjust the default configuration values to match your number of devices, plugins, metrics, and so on. The **Projected Usage** costs are automatically updated as you adjust your configuration. -6. Click **Get started with InfluxDB Cloud** [to get started](https://v2.docs.influxdata.com/v2.0/cloud/get-started/). +6. Click **Get started with InfluxDB Cloud** [to get started](/v2.0/cloud/get-started/). diff --git a/content/v2.0/query-data/execute-queries.md b/content/v2.0/query-data/execute-queries.md index 68c76332f..05516e9b2 100644 --- a/content/v2.0/query-data/execute-queries.md +++ b/content/v2.0/query-data/execute-queries.md @@ -2,7 +2,7 @@ title: Execute queries seotitle: Different ways to query InfluxDB description: There are multiple ways to query data from InfluxDB including the InfluxDB UI, CLI, and API. -weight: 102 +weight: 103 menu: v2_0: name: Execute queries diff --git a/content/v2.0/query-data/common-queries/_index.md b/content/v2.0/query-data/flux/_index.md similarity index 56% rename from content/v2.0/query-data/common-queries/_index.md rename to content/v2.0/query-data/flux/_index.md index f99f574fa..f9dc8dd20 100644 --- a/content/v2.0/query-data/common-queries/_index.md +++ b/content/v2.0/query-data/flux/_index.md @@ -1,15 +1,17 @@ --- -title: Common Flux queries -description: > - placeholder -weight: 103 +title: Query data with Flux +description: Guides that walk through both common and complex queries and use cases for Flux. +weight: 102 +v2.0/tags: [flux, query] menu: v2_0: + name: Query with Flux parent: Query data - name: Common queries -v2.0/tags: [query] +alias: + - /v2.0/query-data/guides/ --- +The following guides walk through both common and complex queries and use cases for Flux. {{% note %}} #### Example data variable @@ -27,21 +29,8 @@ data = from(bucket: "example-bucket") ``` {{% /note %}} -{{< children >}} +## Flux query guides --- -- [x] SELECT-like commands -- [x] Median -- [x] Percentile -- [ ] Cumulative Sum -- [ ] Moving Average -- [ ] Increase -- [ ] Rate -- [ ] Delta -- [ ] Window -- [ ] First/Last -- [ ] Histogram -- [ ] Gap filling -- [ ] Last observation carried forward -- [ ] Last point +{{< children >}} diff --git a/content/v2.0/query-data/guides/conditional-logic.md b/content/v2.0/query-data/flux/conditional-logic.md similarity index 97% rename from content/v2.0/query-data/guides/conditional-logic.md rename to content/v2.0/query-data/flux/conditional-logic.md index 5da8eb448..c97ea9b7b 100644 --- a/content/v2.0/query-data/guides/conditional-logic.md +++ b/content/v2.0/query-data/flux/conditional-logic.md @@ -1,15 +1,18 @@ --- title: Query using conditional logic seotitle: Query using conditional logic in Flux +list_title: Use conditional logic description: > This guide describes how to use Flux conditional expressions, such as `if`, `else`, and `then`, to query and transform data. v2.0/tags: [conditionals, flux] menu: v2_0: - name: Query using conditionals - parent: How-to guides -weight: 209 + name: Use conditional logic + parent: Query with Flux +weight: 220 +aliases: + - /v2.0/query-data/guides/conditional-logic/ --- Flux provides `if`, `then`, and `else` conditional expressions that allow for powerful and flexible Flux queries. diff --git a/content/v2.0/query-data/common-queries/cumulativesum.md b/content/v2.0/query-data/flux/cumulativesum.md similarity index 94% rename from content/v2.0/query-data/common-queries/cumulativesum.md rename to content/v2.0/query-data/flux/cumulativesum.md index 7ed9db61c..ff9c26705 100644 --- a/content/v2.0/query-data/common-queries/cumulativesum.md +++ b/content/v2.0/query-data/flux/cumulativesum.md @@ -4,11 +4,11 @@ seotitle: Query cumulative sum in Flux list_title: Cumulative sum description: > Use the `cumulativeSum()` function to calculate a running total of values. -weight: 204 +weight: 210 menu: v2_0: - parent: Common queries - name: Cumulative sum + parent: Query with Flux + name: Query the cumulative sum v2.0/tags: [query, cumulative sum] --- @@ -40,7 +40,7 @@ to calculate a running total of values. {{< /flex >}} {{% note %}} -The examples below use the [example data variable](/v2.0/query-data/common-queries/#example-data-variable). +The examples below use the [example data variable](/v2.0/query-data/flux/#example-data-variable). {{% /note %}} ##### Calculate the running total of values diff --git a/content/v2.0/query-data/guides/custom-functions/_index.md b/content/v2.0/query-data/flux/custom-functions/_index.md similarity index 97% rename from content/v2.0/query-data/guides/custom-functions/_index.md rename to content/v2.0/query-data/flux/custom-functions/_index.md index d15716bcd..1c1c2c99d 100644 --- a/content/v2.0/query-data/guides/custom-functions/_index.md +++ b/content/v2.0/query-data/flux/custom-functions/_index.md @@ -5,8 +5,10 @@ v2.0/tags: [functions, custom, flux] menu: v2_0: name: Create custom functions - parent: How-to guides -weight: 208 + parent: Query with Flux +weight: 220 +aliases: + - /v2.0/query-data/guides/custom-functions/ --- Flux's functional syntax allows for custom functions. diff --git a/content/v2.0/query-data/guides/custom-functions/custom-aggregate.md b/content/v2.0/query-data/flux/custom-functions/custom-aggregate.md similarity index 99% rename from content/v2.0/query-data/guides/custom-functions/custom-aggregate.md rename to content/v2.0/query-data/flux/custom-functions/custom-aggregate.md index 94c8843da..525a66734 100644 --- a/content/v2.0/query-data/guides/custom-functions/custom-aggregate.md +++ b/content/v2.0/query-data/flux/custom-functions/custom-aggregate.md @@ -7,6 +7,8 @@ menu: name: Custom aggregate functions parent: Create custom functions weight: 301 +aliases: + - /v2.0/query-data/guides/custom-functions/custom-aggregate/ --- To aggregate your data, use the Flux diff --git a/content/v2.0/query-data/guides/exists.md b/content/v2.0/query-data/flux/exists.md similarity index 95% rename from content/v2.0/query-data/guides/exists.md rename to content/v2.0/query-data/flux/exists.md index 2d7794e54..3885e0e93 100644 --- a/content/v2.0/query-data/guides/exists.md +++ b/content/v2.0/query-data/flux/exists.md @@ -8,8 +8,10 @@ v2.0/tags: [exists] menu: v2_0: name: Check if a value exists - parent: How-to guides -weight: 209 + parent: Query with Flux +weight: 220 +aliases: + - /v2.0/query-data/guides/exists/ --- Use the Flux `exists` operator to check if an object contains a key or if that diff --git a/content/v2.0/query-data/guides/group-data.md b/content/v2.0/query-data/flux/group-data.md similarity index 99% rename from content/v2.0/query-data/guides/group-data.md rename to content/v2.0/query-data/flux/group-data.md index 49eb473af..8c06aa314 100644 --- a/content/v2.0/query-data/guides/group-data.md +++ b/content/v2.0/query-data/flux/group-data.md @@ -1,5 +1,6 @@ --- title: Group data in InfluxDB with Flux +list_title: Group data description: > This guide walks through grouping data with Flux by providing examples and illustrating how data is shaped throughout the process. @@ -7,8 +8,10 @@ v2.0/tags: [group] menu: v2_0: name: Group data - parent: How-to guides -weight: 203 + parent: Query with Flux +weight: 202 +aliases: + - /v2.0/query-data/guides/group-data/ --- With Flux, you can group data by any column in your queried data set. diff --git a/content/v2.0/query-data/guides/histograms.md b/content/v2.0/query-data/flux/histograms.md similarity index 98% rename from content/v2.0/query-data/guides/histograms.md rename to content/v2.0/query-data/flux/histograms.md index f9a9232b0..ab4e3337a 100644 --- a/content/v2.0/query-data/guides/histograms.md +++ b/content/v2.0/query-data/flux/histograms.md @@ -1,12 +1,15 @@ --- title: Create histograms with Flux +list_title: Create histograms description: This guide walks through using the `histogram()` function to create cumulative histograms with Flux. v2.0/tags: [histogram] menu: v2_0: name: Create histograms - parent: How-to guides -weight: 208 + parent: Query with Flux +weight: 210 +aliases: + - /v2.0/query-data/guides/histograms/ --- Histograms provide valuable insight into the distribution of your data. diff --git a/content/v2.0/query-data/guides/join.md b/content/v2.0/query-data/flux/join.md similarity index 99% rename from content/v2.0/query-data/guides/join.md rename to content/v2.0/query-data/flux/join.md index cf0075091..592437959 100644 --- a/content/v2.0/query-data/guides/join.md +++ b/content/v2.0/query-data/flux/join.md @@ -1,13 +1,16 @@ --- title: Join data with Flux seotitle: Join data in InfluxDB with Flux +list_title: Join data description: This guide walks through joining data with Flux and outlines how it shapes your data in the process. v2.0/tags: [join, flux] menu: v2_0: name: Join data - parent: How-to guides -weight: 205 + parent: Query with Flux +weight: 220 +aliases: + - /v2.0/query-data/guides/join/ --- The [`join()` function](/v2.0/reference/flux/stdlib/built-in/transformations/join) merges two or more diff --git a/content/v2.0/query-data/guides/manipulate-timestamps.md b/content/v2.0/query-data/flux/manipulate-timestamps.md similarity index 96% rename from content/v2.0/query-data/guides/manipulate-timestamps.md rename to content/v2.0/query-data/flux/manipulate-timestamps.md index 87bcc1d6b..d2f7302e2 100644 --- a/content/v2.0/query-data/guides/manipulate-timestamps.md +++ b/content/v2.0/query-data/flux/manipulate-timestamps.md @@ -1,12 +1,15 @@ --- title: Manipulate timestamps with Flux +list_title: Manipulate timestamps description: > Use Flux to process and manipulate timestamps. menu: v2_0: name: Manipulate timestamps - parent: How-to guides -weight: 209 + parent: Query with Flux +weight: 220 +aliases: + - /v2.0/query-data/guides/manipulate-timestamps/ --- Every point stored in InfluxDB has an associated timestamp. diff --git a/content/v2.0/query-data/guides/mathematic-operations.md b/content/v2.0/query-data/flux/mathematic-operations.md similarity index 98% rename from content/v2.0/query-data/guides/mathematic-operations.md rename to content/v2.0/query-data/flux/mathematic-operations.md index 87a268686..1d6b4d57b 100644 --- a/content/v2.0/query-data/guides/mathematic-operations.md +++ b/content/v2.0/query-data/flux/mathematic-operations.md @@ -1,13 +1,16 @@ --- title: Transform data with mathematic operations seotitle: Transform data with mathematic operations in Flux +list_title: Transform data with math description: This guide describes how to use Flux to transform data with mathematic operations. v2.0/tags: [math, flux] menu: v2_0: name: Transform data with math - parent: How-to guides -weight: 209 + parent: Query with Flux +weight: 205 +aliases: + - /v2.0/query-data/guides/mathematic-operations/ --- [Flux](/v2.0/reference/flux), InfluxData's data scripting and query language, diff --git a/content/v2.0/query-data/common-queries/median.md b/content/v2.0/query-data/flux/median.md similarity index 94% rename from content/v2.0/query-data/common-queries/median.md rename to content/v2.0/query-data/flux/median.md index 89d4a4b3e..d543ae1ec 100644 --- a/content/v2.0/query-data/common-queries/median.md +++ b/content/v2.0/query-data/flux/median.md @@ -1,18 +1,18 @@ --- -title: Query median values -seotitle: Query median values in Flux +title: Find median values +seotitle: Find median values in Flux list_title: Median description: > Use the `median()` function to return a value representing the `0.5` quantile (50th percentile) or median of input data. -weight: 202 +weight: 210 menu: v2_0: - parent: Common queries - name: Median + parent: Query with Flux + name: Find the median v2.0/tags: [query, median] related: - - /v2.0/query-data/common-queries/percentile-quantile/ + - /v2.0/query-data/flux/percentile-quantile/ --- Use the [`median()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median/) @@ -99,7 +99,7 @@ Output tables consist of a single row containing the calculated median. {{< /flex >}} {{% note %}} -The examples below use the [example data variable](/v2.0/query-data/common-queries/#example-data-variable). +The examples below use the [example data variable](/v2.0/query-data/flux/#example-data-variable). {{% /note %}} ## Find the value that represents the median diff --git a/content/v2.0/query-data/guides/monitor-states.md b/content/v2.0/query-data/flux/monitor-states.md similarity index 98% rename from content/v2.0/query-data/guides/monitor-states.md rename to content/v2.0/query-data/flux/monitor-states.md index da62068f2..e8b2ed418 100644 --- a/content/v2.0/query-data/guides/monitor-states.md +++ b/content/v2.0/query-data/flux/monitor-states.md @@ -6,8 +6,10 @@ v2.0/tags: [states, monitor, flux] menu: v2_0: name: Monitor states - parent: How-to guides -weight: 209 + parent: Query with Flux +weight: 220 +aliases: + - /v2.0/query-data/guides/monitor-states/ --- Flux helps you monitor states in your metrics and events: @@ -24,7 +26,7 @@ If you're just getting started with Flux queries, check out the following: ## Find how long a state persists 1. Use the [`stateDuration()`](/v2.0/reference/flux/stdlib/built-in/transformations/stateduration/) function to calculate how long a column value has remained the same value (or state). Include the following information: - + - **Column to search:** any tag key, tag value, field key, field value, or measurement. - **Value:** the value (or state) to search for in the specified column. - **State duration column:** a new column to store the state duration─the length of time that the specified value persists. @@ -83,7 +85,7 @@ _time _value door_closed ```js |> stateCount - (fn: (r) => + (fn: (r) => r._column_to_search == "value_to_search_for", column: "state_count"` ) @@ -148,9 +150,9 @@ Detect state changes with the `monitor.stateChanges()` function. To use the `mon {{< nav-icon "alerts" >}} -2. If you haven't already, [create a check](/v2.0/monitor-alert/checks/create/) that stores statuses (`CRIT`, `WARN`, `INFO`, `OK` or `ANY`) in the `_level` column.