migrated all updates to master into the v1-merge branch

pull/1387/head
Scott Anderson 2020-08-20 11:46:25 -06:00
parent a13aacbbfb
commit 30cea4540b
31 changed files with 65 additions and 128 deletions

View File

@ -11,7 +11,7 @@
padding: .35rem .6rem;
font-style: italic;
font-weight: $medium;
color: rgba($article-text, .75);
color: rgba($article-text, .75) !important;
font-size: .8rem;
border-radius: 1rem;
@ -21,7 +21,7 @@
}
&:hover {
color: $g20-white;
color: $g20-white !important;
}
}
}

View File

@ -13,7 +13,7 @@ menu:
parent: Account management
name: Pricing plans
products: [cloud]
v2.0/tags: [VPC]
influxdb/v2.0/tags: [VPC]
---
InfluxDB Cloud 2.0 offers two pricing plans:

View File

@ -3,10 +3,10 @@ title: Monitor with templates
description: >
Use community templates to monitor data in many supported environments. Monitor infrastructure, networking, IoT, software, security, TICK stack, and more.
menu:
v2_0:
influxdb_2_0:
parent: Monitor & alert
weight: 104
v2.0/tags: [monitor, templates]
influxdb/v2.0/tags: [monitor, templates]
---
Use one of our community templates to quickly set up InfluxDB (with a bucket and dashboard) to collect, analyze, and monitor data in supported environments.

View File

@ -3,10 +3,10 @@ title: Monitor infrastructure
description: >
Use one of our community templates to quickly set up InfluxDB (with a bucket and dashboard) to collect, analyze, and monitor your infrastructure.
menu:
v2_0:
influxdb_2_0:
parent: Monitor with templates
weight: 104
v2.0/tags: [monitor, templates, infrastructure]
influxdb/v2.0/tags: [monitor, templates, infrastructure]
---
Use one of our community templates to quickly set up InfluxDB (with a bucket and dashboard) to collect, analyze, and monitor your infrastructure.

View File

@ -3,7 +3,7 @@ title: Monitor Amazon Web Services (AWS)
description: >
Use the [AWS CloudWatch Monitoring template](https://github.com/influxdata/community-templates/tree/master/aws_cloudwatch) to monitor data from Amazon Web Services (AWS), Amazon Elastic Compute Cloud (EC2), and Amazon Elastic Load Balancing (ELB) with the AWS CloudWatch Service.
menu:
v2_0:
influxdb_2_0:
parent: Monitor infrastructure
name: AWS CloudWatch
weight: 201

View File

@ -3,7 +3,7 @@ title: Monitor Docker
description: >
Use the [Docker Monitoring template](https://github.com/influxdata/community-templates/tree/master/docker) to monitor your Docker containers.
menu:
v2_0:
influxdb_2_0:
parent: Monitor infrastructure
name: Docker
weight: 202

View File

@ -3,7 +3,7 @@ title: Monitor vSphere
description: >
Use the [vSphere Dashboard for InfluxDB v2 template](https://github.com/influxdata/community-templates/tree/master/vsphere) to monitor your vSphere host.
menu:
v2_0:
influxdb_2_0:
parent: Monitor infrastructure
name: vSphere
weight: 206

View File

@ -3,7 +3,7 @@ title: Monitor Windows
description: >
Use the [Windows System Monitoring template](https://github.com/influxdata/community-templates/tree/master/windows_system) to monitor your Windows system.
menu:
v2_0:
influxdb_2_0:
parent: Monitor infrastructure
name: Windows
weight: 207

View File

@ -3,10 +3,10 @@ title: Monitor networks
description: >
Use one of our community templates to quickly set up InfluxDB (with a bucket and dashboard) to collect, analyze, and monitor your networks.
menu:
v2_0:
influxdb_2_0:
parent: Monitor with templates
weight: 104
v2.0/tags: [monitor, templates, networks, networking]
influxdb/v2.0/tags: [monitor, templates, networks, networking]
---
Use one of our community templates to quickly set up InfluxDB (with a bucket and dashboard) to collect, analyze, and monitor your networks.

View File

@ -3,7 +3,7 @@ title: Monitor HAProxy
description: >
Use the [HAProxy for InfluxDB v2 template](https://github.com/influxdata/community-templates/tree/master/haproxy) to monitor your HAProxy instance.
menu:
v2_0:
influxdb_2_0:
parent: Monitor networks
name: HAproxy
weight: 201

View File

@ -3,7 +3,7 @@ title: Query data with InfluxQL
description: >
Use the [InfluxDB 1.x `/query` compatibility endpoint](/v2.0/reference/api/influxdb-1x/query)
to query data in InfluxDB 2.0 with **InfluxQL**.
weight: 10
weight: 102
aliases:
- /v2.0/query-data/influxql/
influxdb/v2.0/tags: [influxql, query]

View File

@ -8,7 +8,7 @@ menu:
influxdb_2_0_ref:
name: Go
parent: Client libraries
v2.0/tags: [client libraries, Go]
influxdb/v2.0/tags: [client libraries, Go]
weight: 201
---

View File

@ -8,7 +8,7 @@ menu:
influxdb_2_0_ref:
name: JavaScript
parent: Client libraries
v2.0/tags: [client libraries, JavaScript]
influxdb/v2.0/tags: [client libraries, JavaScript]
weight: 201
---

View File

@ -3,11 +3,11 @@ title: influx dashboards
description: >
The `influx dashboards` command lists existing InfluxDB dashboards.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: influx dashboards
parent: influx
weight: 101
v2.0/tags: [telegraf]
influxdb/v2.0/tags: [telegraf]
---
The `influx dashboards` command lists existing InfluxDB dashboards.

View File

@ -5,12 +5,12 @@ description: >
The Flux InfluxDB package provides additional functions for querying data from InfluxDB.
Import the `contrib/jsternberg/influxdb` package.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: InfluxDB
identifier: contrib_influxdb
parent: Contributed
weight: 202
v2.0/tags: [functions, package, query]
influxdb/v2.0/tags: [functions, package, query]
---
The Flux InfluxDB package provides additional functions for querying data from InfluxDB.

View File

@ -5,17 +5,17 @@ description: >
and `pivot()` that returns pivoted query results and masks the `_start` and `_stop` column
Results are similar to those returned by InfluxQL `SELECT` statements.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: influxdb.select
parent: contrib_influxdb
weight: 202
v2.0/tags: [functions, package, query]
influxdb/v2.0/tags: [functions, package, query]
related:
- /v2.0/reference/flux/stdlib/built-in/inputs/from/
- /v2.0/reference/flux/stdlib/built-in/transformations/range/
- /v2.0/reference/flux/stdlib/built-in/transformations/filter/
- /v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols/
- /v2.0/reference/flux/stdlib/built-in/transformations/pivot/
- /influxdb/v2.0/reference/flux/stdlib/built-in/inputs/from/
- /influxdb/v2.0/reference/flux/stdlib/built-in/transformations/range/
- /influxdb/v2.0/reference/flux/stdlib/built-in/transformations/filter/
- /influxdb/v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols/
- /influxdb/v2.0/reference/flux/stdlib/built-in/transformations/pivot/
---
The `influxdb.select()` function is an alternate implementation of `from()`, `range()`, `filter()`

View File

@ -5,11 +5,11 @@ description: >
The Flux Rows package provides additional functions for remapping values in rows.
Import the `contrib/jsternberg/rows` package.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: Rows
parent: Contributed
weight: 202
v2.0/tags: [functions, package]
influxdb/v2.0/tags: [functions, package]
---
The Flux Rows package provides additional functions for remapping values in rows.

View File

@ -4,13 +4,13 @@ description: >
The `rows.map()` function is an alternate implementation of [`map()`](/v2.0/reference/flux/stdlib/built-in/transformations/map/)
that is faster, but more limited than `map()`.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: rows.map
parent: Rows
weight: 202
v2.0/tags: [functions, package, map]
influxdb/v2.0/tags: [functions, package, map]
related:
- /v2.0/reference/flux/stdlib/built-in/transformations/map/
- /influxdb/v2.0/reference/flux/stdlib/built-in/transformations/map/
---
The `rows.map()` function is an alternate implementation of [`map()`](/v2.0/reference/flux/stdlib/built-in/transformations/map/)

View File

@ -5,11 +5,11 @@ description: >
The Flux Array package provides functions for building tables from Flux arrays.
Import the `experimental/array` package.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: Array
parent: Experimental
weight: 301
v2.0/tags: [functions, array, package, table]
influxdb/v2.0/tags: [functions, array, package, table]
---
Flux Array functions provide tools for building tables from Flux arrays.

View File

@ -3,7 +3,7 @@ title: array.from() function
description: >
The experimental `array.from()` function constructs a table from an array of records.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: array.from
parent: Array
weight: 401

View File

@ -4,13 +4,13 @@ description: >
The `geo.s2CellLatLon()` function returns the latitude and longitude of the
center of an S2 cell.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: geo.s2CellLatLon
parent: Geo
weight: 401
v2.0/tags: [functions, geo]
influxdb/v2.0/tags: [functions, geo]
related:
- /v2.0/query-data/flux/geo/
- /influxdb/v2.0/query-data/flux/geo/
---
The `geo.s2CellLatLon()` function returns the latitude and longitude of the

View File

@ -4,13 +4,13 @@ description: >
The `geo.ST_Contains()` function tests if the specified region contains the specified
GIS geometry and returns `true` or `false`.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: geo.ST_Contains
parent: Geo
weight: 401
v2.0/tags: [functions, geo, GIS]
influxdb/v2.0/tags: [functions, geo, GIS]
related:
- /v2.0/query-data/flux/geo/
- /influxdb/v2.0/query-data/flux/geo/
---
The `geo.ST_Contains()` function tests if the specified region contains the specified

View File

@ -4,13 +4,13 @@ description: >
The `geo.ST_Distance()` function returns the distance between the specified region
and specified GIS geometry.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: geo.ST_Distance
parent: Geo
weight: 401
v2.0/tags: [functions, geo, GIS]
influxdb/v2.0/tags: [functions, geo, GIS]
related:
- /v2.0/query-data/flux/geo/
- /influxdb/v2.0/query-data/flux/geo/
---
The `geo.ST_Distance()` function returns the distance between the specified region

View File

@ -5,13 +5,13 @@ description: >
distance from the specified geographic information system (GIS) geometry and
returns `true` or `false`.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: geo.ST_DWithin
parent: Geo
weight: 401
v2.0/tags: [functions, geo, GIS]
influxdb/v2.0/tags: [functions, geo, GIS]
related:
- /v2.0/query-data/flux/geo/
- /influxdb/v2.0/query-data/flux/geo/
---
The `geo.ST_DWithin()` function tests if the specified region is within a defined

View File

@ -4,13 +4,13 @@ description: >
The `geo.ST_Intersects()` function tests if the specified geographic information
system (GIS) geometry intersects with the specified region and returns `true` or `false`.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: geo.ST_Intersects
parent: Geo
weight: 401
v2.0/tags: [functions, geo, GIS]
influxdb/v2.0/tags: [functions, geo, GIS]
related:
- /v2.0/query-data/flux/geo/
- /influxdb/v2.0/query-data/flux/geo/
---
The `geo.ST_Intersects()` function tests if the specified geographic information

View File

@ -4,13 +4,13 @@ description: >
The `geo.ST_Length()` function returns the [spherical length or distance](https://mathworld.wolfram.com/SphericalDistance.html)
of the specified geographic information system (GIS) geometry.
menu:
v2_0_ref:
influxdb_2_0_ref:
name: geo.ST_Length
parent: Geo
weight: 401
v2.0/tags: [functions, geo, GIS]
influxdb/v2.0/tags: [functions, geo, GIS]
related:
- /v2.0/query-data/flux/geo/
- /influxdb/v2.0/query-data/flux/geo/
---
The `geo.ST_Length()` function returns the [spherical length or distance](https://mathworld.wolfram.com/SphericalDistance.html)

View File

@ -4,13 +4,13 @@ description: >
The `geo.ST_LineString()` function converts a series of geographic points into
[linestring](/v2.0/reference/flux/stdlib/experimental/geo/#linestring).
menu:
v2_0_ref:
influxdb_2_0_ref:
name: geo.ST_LineString
parent: Geo
weight: 401
v2.0/tags: [functions, geo, GIS]
influxdb/v2.0/tags: [functions, geo, GIS]
related:
- /v2.0/query-data/flux/geo/
- /influxdb/v2.0/query-data/flux/geo/
---
The `geo.ST_LineString()` function converts a series of geographic points into

View File

@ -7,7 +7,7 @@ description: >
Write data to InfluxDB using third-party developer tools.
aliases:
menu:
v2_0:
influxdb_2_0:
name: Third-party developer tools
parent: Developer tools
---
@ -48,7 +48,7 @@ The [template](https://influxdata-lambda.s3.amazonaws.com/GeoLambda.yml) contain
After a few minutes, the stack deploys to your region. To view the new Lambda, select **Services > AWS Lambda**. On the Lambda functions page, you should see your new Lambda. The `CopyZipsFunction` is the helper copy function, and the `GeoPythonLambda` does the data collection and writing work:
{{< img-hd src="static/img/influxdb/cloudformation1.png" alt="GeoPythonLambda data in InfluxDB" />}}
{{< img-hd src="/img/cloudformation1.png" alt="GeoPythonLambda data in InfluxDB" />}}
### Verify your setup
@ -60,4 +60,4 @@ After a few minutes, the stack deploys to your region. To view the new Lambda, s
With the data points written, when you log into your InfluxDB UI, youll be able to explore the geolocation earthquake data:
{{< img-hd src="static/img/influxdb/cloudformation2.png" alt="GeoPythonLambda data in InfluxDB" />}}
{{< img-hd src="/img/cloudformation2.png" alt="GeoPythonLambda data in InfluxDB" />}}

View File

@ -1,63 +0,0 @@
---
title: Third-party technologies
seotitle: Write data with third-party technologies
list_title: Write data with third-party technologies
weight: 103
description: >
Write data to InfluxDB using third-party developer tools.
aliases:
menu:
v2_0:
name: Third-party developer tools
parent: Developer tools
---
Configure third-party technologies to send line protocol directly to InfluxDB.
## AWS Lambda via CloudFormation template
Write to InfluxDB with AWS Lambda, Amazon Web Services' serverless offering. This example provides a CloudFormation template that collects earthquake from the [United States Geological Survey (USGS)](https://www.usgs.gov/) every hour and outputs it as line protocol into an InfluxDB bucket.
The [template](https://influxdata-lambda.s3.amazonaws.com/GeoLambda.yml) contains the following sections:
- Lines 1-20: Define variables that the template asks for when it's installed.
- Lines 21-120: Handle a quirk of Lambda deployments that requires the Lambda assets to be in your region before deployment. As there is no elegant workaround, these 100 lines create an S3 bucket in your account in the region you're creating the stack and copies in these resources.
- Lines 121-132: Define a role with basic permission to run the Lambda.
- Lines 133-144: Define a Python library layer. This layer packages the Python HTTP library, a Python S2 Geometry library, and the InfluxDB Python client library.
- Lines 145-165: Define the Lambda function, a short Python script zipped up in a file called `geo_lambda.zip`.
- Lines 166-188: Define an event rule with permission to run the Lambda every hour.
### Deploy the template
1. Log into your free AWS account and search for the CloudFormation service. Make sure youre in the AWS region you want to deploy the Lambda to.
2. Click **Create Stack**.
3. In the **Prerequisite - Prepare Template** section, select **Template is ready**.
4. In the **Specify template** section:
- Under **Template source**, select **Amazon S3 URL**.
- In the **Amazon S3 URL** field, enter the CloudFormation template URL: `https://influxdata-lambda.s3.amazonaws.com/GeoLambda.yml`
5. Click **Next**.
6. Enter a name in the **Stack name** field.
7. Enter the following InfluxDB details:
- Organization ID
- Bucket ID of the bucket the Lambda writes to
- Token with permission to write to the bucket
- InfluxDB URL
8. Do not alter or add to any other fields. Click **Next**.
9. Select the **I acknowledge that AWS CloudFormation might create IAM resources** check box.
10. Click **Create Stack**.
After a few minutes, the stack deploys to your region. To view the new Lambda, select **Services > AWS Lambda**. On the Lambda functions page, you should see your new Lambda. The `CopyZipsFunction` is the helper copy function, and the `GeoPythonLambda` does the data collection and writing work:
{{< img-hd src="/img/cloudformation1.png" alt="GeoPythonLambda data in InfluxDB" />}}
### Verify your setup
`GeoPythonLambda` should run every hour based on the AWS Rule we set up, but you should test and confirm it works.
1. Click `GeoPythonLambda`, and then click **Test**.
2. The test requires an input definition, but this Lambda has no input requirements, so click through and save the default dataset.
3. If the test is successful, a green **Execution result: succeeded** message appears.
With the data points written, when you log into your InfluxDB UI, youll be able to explore the geolocation earthquake data:
{{< img-hd src="/img/cloudformation2.png" alt="GeoPythonLambda data in InfluxDB" />}}

View File

@ -1,5 +1,5 @@
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) .RelPermalink }}
{{ $contribPath := print "/" $currentVersion "/reference/flux/stdlib/contrib/" }}
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 1) .RelPermalink }}
{{ $contribPath := print "/influxdb/" $currentVersion "/reference/flux/stdlib/contrib/" }}
{{ if in .RelPermalink $contribPath }}
{{ if not (eq .RelPermalink $contribPath) }}

View File

@ -1,6 +1,6 @@
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) .RelPermalink }}
{{ $expRiskURL := print "/" $currentVersion "/reference/flux/stdlib/experimental/#use-experimental-functions-at-your-own-risk" }}
{{ $expPath := print "/" $currentVersion "/reference/flux/stdlib/experimental/" }}
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 1) .RelPermalink }}
{{ $expRiskURL := print "/influxdb/" $currentVersion "/reference/flux/stdlib/experimental/#use-experimental-functions-at-your-own-risk" }}
{{ $expPath := print "/influxdb/" $currentVersion "/reference/flux/stdlib/experimental/" }}
{{ if in .RelPermalink $expPath }}
{{ if not (eq .RelPermalink $expPath) }}