3. This short taste of InfluxDB University will help you
master the key areas where users commonly struggle
when getting started with InfluxDB.
Michael Hall
Community Manager, InfluxData
Michael Hall leads the Developer Relations team at
InfluxData and is an open source software developer,
community manager and technology evangelist. He has
extensive experience in developing desktop and
web-based software in a large variety of languages and
frameworks, and contributes to a number of open
source projects and communities.
Become an InfluxDB Pro in 20
Minutes
4. Agenda
1. Working with InfluxDB
2. Building a data schema for success
3. Introduction to the Flux language
4. Getting the most out of your data
5. Going to the cloud with Edge Data Replication
13. Tips for Managing Cardinality
• Use measurement names that reflect categories of data
• Limit the number of measurements per bucket
• Use tags for data you’re going to regularly filter on
• Avoid duplicating data in tags
• Avoid unbounded tag values
15. Function-based Processing
from(bucket: "stocks")
|> range(start: -1h)
|> filter(fn: (r) => r["_measurement"] == "stock_price")
|> filter(fn: (r) => r["ticker"] == "AAPL")
|> filter(fn: (r) => r["market"] == "NASDAQ")
|> filter(fn: (r) => r["_field"] == "price")
|> mean()
• Everything is a function
• Work on a stream of tables
• Data processed step by step
• Aggregates run once per-table
• Last result is returned
21. Tips for Mastering Flux
• Think in columns not rows
• Save queries in variables to use different aggregations
• Use the Data Explorer to play around
• Use multiple yield( ) calls to output multiple results
• Learn pushdowns: from( ) |> range( ) |> filter( ) |> aggregate( )
26. Tips for Better Results
• Stagger Task times with offsets to spread compute load
• Use tasks.lastSuccess( ) for resiliency
• Understand Check schedule vs Notification schedule
• Use offsets to avoid scheduling conflicts
• Only notify on escalations
• Write Tasks for more complex alerting needs
33. In this talk we’ll learn about some of the biggest
challenges beginner Flux users face. We’ll also learn
about resources and tools that developers can take
advantage of to become a Flux Pro.
Anais Dotis-Georgiou
Lead Developer Advocate
Anais Dotis-Georgiou is a developer advocate at
InfluxData with a passion for making data beautiful
using data analytics, AI, and machine learning. She
takes the data that she collects and does a mix of
research, exploration, and engineering to translate the
data into something of function, value, and beauty.
Becoming a Flux Pro
34. InfluxDB University offers free live and self-paced training on:
Scan to explore the
course catalog
influxdbu.com
• InfluxDB
• Telegraf
• Flux
35. Time to Awesome Online Book
Available for free at
awesome.influxdata.com