Paul will talk about the long-term vision for Flux the language as well as InfluxDB 2.0, Telegraf 2.0 and beyond. He’ll talk about why we’ve decided to create a language, how that plays into polyglot persistence & purpose-built time series databases, and how it enables more complex analytics and processing workloads to drive insights from data not just in InfluxDB, but everywhere.
27. Setup (operator)
• Sign up for InfluxCloud
• Collect the data
• Telegraf
• Client libraries
• InfluxDB OSS
• Prometheus, Vector, Beats, other
• UI elements to control collection, configuration, etc
43. // get all data from the telegraf db
from(bucket:”telegraf/autogen”)
// filter that by the last hour
|> range(start:-1h)
// filter further by series with a specific measurement and field
|> filter(fn: (r) => r._measurement == "cpu" and r._field == "usage_system")
67. option package = {
name: "foo", // required, must match the name of the package declaration above
description: "an example package", // required
authors: [“Paul Dix <paul@influxdata.com>”], // required, at least 1
version: "0.1.0", // required
license: "MIT", // required
homepage: "https://foo.com", // optional
documentation: "https://foo.com/docs", // optional
repository: "https://github.com/pauldix/foo", //optional
flux_versions: ["0.*.*"], // optional, versions of flux this works with
tags: ["example"], // optional
files: [
"README.md",
"stuff.flux",
"other.flux",
], // optional, all code can be contained in package.flux file
tests: [
"stuff_test.flux",
], // optional
dependencies: [
{package: "nathaniel/bar", version:”>=1.2.0”}
], // only required for any other package repo dependencies
}
68. option package = {
name: "foo", // required, must match the name of the package declaration above
description: "an example package", // required
authors: [“Paul Dix <paul@influxdata.com>”], // required, at least 1
version: "0.1.0", // required
license: "MIT", // required
homepage: "https://foo.com", // optional
documentation: "https://foo.com/docs", // optional
repository: "https://github.com/pauldix/foo", //optional
flux_versions: ["0.*.*"], // optional, versions of flux this works with
tags: ["example"], // optional
files: [
"README.md",
"stuff.flux",
"other.flux",
], // optional, all code can be contained in package.flux file
tests: [
"stuff_test.flux",
], // optional
dependencies: [
{package: "nathaniel/bar", version: “>=1.2.0”}
], // only required for any other package repo dependencies
}
72. import "/pauldix/foo", “0.1.1"
// if $FLUX_PATH/pauldix/foo exists
// 1. check package.flux version
// 2. look in _versions/ for matching
// if not, request matching version from repository
73. import "/pauldix/foo", "0.1.2"
// if $FLUX_PATH/pauldix/foo exists
// 1. check package.flux version
// 2. look in _versions/ for matching
// if not, request matching version from repository
foo.myFunc()