SlideShare a Scribd company logo
Jess Ingrassellino, Engineering Manager
Data Acquisition & Telegraf
Get Your Data Into
InfluxDB
© 2021 InfluxData. All rights reserved. 2
| Get Your Data Into InfluxDB: Agenda
Telegraf
Client Libraries
API
Command Line Tools
UI Data Loading
Flux from
Best Practices
Extensive Plugin Ecosystem
Telegraf
© 2021 InfluxData. All rights reserved. 4
© 2021 InfluxData. All rights reserved. 5
~ 300 plugins (input, output, processor, aggregator)
Single Binary
Extensible in any language with ExecD
Low and no-code options
Robust Agent: scheduling, streaming, metrics routing, more
| What’s so great about Telegraf?
© 2021 InfluxData. All rights reserved. 6
Using Telegraf
Download telegraf binary for your operating system
Edit the configuration file to use the plugins of your choice (via UI or in the
text editor of your choice)
Run Telegraf
Getting data in using different languages
Client Libraries
© 2021 InfluxData. All rights reserved. 8
Client Libraries
Arduino
C#
Go
Java
Kotlin
Node.js
PHP
Python
Ruby
Scala
Swift
Write API to /write endpoint
Direct API
© 2021 InfluxData. All rights reserved. 10
https:/
/docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/api/
What’s required for a request?
© 2021 InfluxData. All rights reserved. 11
https:/
/docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/api/
A sample request (uncompressed)
© 2021 InfluxData. All rights reserved. 12
https:/
/docs.influxdata.com/influxdb/v2.0/api/#operation/PostWrite
Expected Response Codes
CSV and Line Protocol
Command Line Tools
© 2021 InfluxData. All rights reserved. 14
InfluxDB Write
https:/
/docs.influxdata.com/influxdb/v2.0/reference/cli/influx/write/
Writes data to InfluxDB via stdin or from a specified file, files, url, or urls
Line Protocol, annotated CSV, or extended annotated CSV
© 2021 InfluxData. All rights reserved. 15
InfluxDB Write: Examples
https:/
/docs.influxdata.com/influxdb/v2.0/reference/cli/influx/write/
Test and Explore with Low and No-code options
UI Data Loading
© 2021 InfluxData. All rights reserved. 17
Load Data with the UI
Login to your cloud account and select your client library, telegraf plugin, or template
Edit your configuration in the UI and get url for your cloud instance
Run your configuration and see your data flow!
Flux from
© 2021 InfluxData. All rights reserved. 19
| Using Flux from
Flux from retrieves data from an InfluxDB data source
Returns a stream of tables from a specified bucket
Contains each unique series in its own table
Each record in the table is a single point in the series
https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
© 2021 InfluxData. All rights reserved. 20
| Flux from example usage
https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
Data Input
Best Practices
© 2021 InfluxData. All rights reserved. 22
| Optimize Writes
Batch Writes
Sort Tags By Key
Use the coarsest time precision possible
Use gzip compression
Synchronize hosts with NTP
Write multiple data points with one request
https:/
/docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
© 2021 InfluxData. All rights reserved. 23
| Handle Duplicate Data Points
Duplicate Data Points
Preserve Duplicate Data Points
Add arbitrary tag
Implement the timestamp
https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/duplicate-points/
© 2021 InfluxData. All rights reserved. 24
| Schema Design Recommendations
Storing data
Store commonly-queried meta data in tags.
Store data in fields if each data point contains a different value.
Store numeric values as fields (tag values only support string values).
Use recommended naming conventions
avoid keywords in tag and field names
avoid the same tag and field name
avoid encoding data in measurement names
avoid more than one piece of information in one tag
Avoid too many series
https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/schema-design/
Thank you!

More Related Content

PDF
Andy Charlton [InfluxData] | Managing Your Dashboards, Tasks and Alerts Made ...
PDF
Dominik Obermaier and Anja Helmbrecht-Schaar [HiveMQ] | IIoT Monitoring with ...
PDF
Tim Hall and Ryan Betts [InfluxData] | InfluxDB Roadmap and Engineering Updat...
PDF
Vasilis Papavasiliou [Mist.io] | Integrating Telegraf, InfluxDB and Mist to M...
PDF
Kristina Robinson [InfluxData] | Understand and Visualize Your Data with Infl...
PDF
How to Store and Visualize CAN Bus Telematic Data with InfluxDB Cloud and Gra...
PPTX
InfluxDB Cloud Product Update
PDF
Michael Hall [InfluxData] | InfluxDB Community Update | InfluxDays EMEA 2021
Andy Charlton [InfluxData] | Managing Your Dashboards, Tasks and Alerts Made ...
Dominik Obermaier and Anja Helmbrecht-Schaar [HiveMQ] | IIoT Monitoring with ...
Tim Hall and Ryan Betts [InfluxData] | InfluxDB Roadmap and Engineering Updat...
Vasilis Papavasiliou [Mist.io] | Integrating Telegraf, InfluxDB and Mist to M...
Kristina Robinson [InfluxData] | Understand and Visualize Your Data with Infl...
How to Store and Visualize CAN Bus Telematic Data with InfluxDB Cloud and Gra...
InfluxDB Cloud Product Update
Michael Hall [InfluxData] | InfluxDB Community Update | InfluxDays EMEA 2021

What's hot (20)

PDF
Jacob Marble [InfluxData] | Observability with InfluxDB IOx and OpenTelemetry...
PDF
Taming the Tiger: Tips and Tricks for Using Telegraf
PDF
Sebastian Spaink [InfluxData] | Layer by Layer: Printing Your Own External In...
PDF
Evan Kaplan [InfluxData] | InfluxDays Opening Remarks | InfluxDays EMEA 2021
PDF
How to Gain Real-Time Visibility into Your IaaS with vBridge, InfluxDB, Grafana
PDF
Bernard Paques & Kevin Polossat [AWS] | Combining the Power of InfluxDB and A...
PDF
Aengus Rooney [Grafana] | What's New with Grafana and InfluxDB | InfluxDays E...
PDF
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays EMEA 2021
PDF
InfluxDB + Telegraf Operator: Easy Kubernetes Monitoring
PDF
Catalogs - Turning a Set of Parquet Files into a Data Set
PDF
Three Ways InfluxDB Enables You to Use Time Series Data Across Your Entire En...
PDF
Monitor Kubernetes in Rancher using InfluxData
PPTX
How to Create a Modern IIoT Monitoring Solution On iOS Using Swift, MQTT and ...
PDF
How to Monitor Your Gaming Computer with a Time Series Database
PPTX
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
PDF
Nicolas Steinmetz [CérénIT] | Sustain Your Observability from Bare Metal TICK...
PDF
Introduction to InfluxDB 2.0 & Your First Flux Query by Sonia Gupta, Develope...
PDF
InfluxData Architecture for IoT | Noah Crowley | InfluxData
PDF
Ana-Maria Calin [InfluxData] | Migrating from OSS to InfluxDB Cloud | InfluxD...
PPTX
Giacomo Tirabassi [InfluxData] | Istio at InfluxData | InfluxDays Virtual Exp...
Jacob Marble [InfluxData] | Observability with InfluxDB IOx and OpenTelemetry...
Taming the Tiger: Tips and Tricks for Using Telegraf
Sebastian Spaink [InfluxData] | Layer by Layer: Printing Your Own External In...
Evan Kaplan [InfluxData] | InfluxDays Opening Remarks | InfluxDays EMEA 2021
How to Gain Real-Time Visibility into Your IaaS with vBridge, InfluxDB, Grafana
Bernard Paques & Kevin Polossat [AWS] | Combining the Power of InfluxDB and A...
Aengus Rooney [Grafana] | What's New with Grafana and InfluxDB | InfluxDays E...
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays EMEA 2021
InfluxDB + Telegraf Operator: Easy Kubernetes Monitoring
Catalogs - Turning a Set of Parquet Files into a Data Set
Three Ways InfluxDB Enables You to Use Time Series Data Across Your Entire En...
Monitor Kubernetes in Rancher using InfluxData
How to Create a Modern IIoT Monitoring Solution On iOS Using Swift, MQTT and ...
How to Monitor Your Gaming Computer with a Time Series Database
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
Nicolas Steinmetz [CérénIT] | Sustain Your Observability from Bare Metal TICK...
Introduction to InfluxDB 2.0 & Your First Flux Query by Sonia Gupta, Develope...
InfluxData Architecture for IoT | Noah Crowley | InfluxData
Ana-Maria Calin [InfluxData] | Migrating from OSS to InfluxDB Cloud | InfluxD...
Giacomo Tirabassi [InfluxData] | Istio at InfluxData | InfluxDays Virtual Exp...
Ad

Similar to Jess Ingrassellino [InfluxData] | How to Get Data Into InfluxDB | InfluxDays EMEA 2021 (20)

PDF
InfluxDB Live Product Training
PDF
Getting Started: Intro to Telegraf - July 2021
PPTX
How to Use Telegraf and Its Plugin Ecosystem
PDF
Intro to Telegraf
PDF
INTERFACE by apidays 2023 - Data Collection Basics, Anais Dotis-Georgiou, Inf...
PDF
Virtual training intro to InfluxDB - June 2021
PDF
Samantha Wang [InfluxData] | Data Collection Overview | InfluxDays 2022
PDF
OSMC 2024 | Telegraf – A data collection agent by Sven Rebhan.pdf
PDF
Ryan Betts [InfluxData] | Influxdays Keynote: Engineering Update | InfluxDays...
PPTX
InfluxDB Roadmap: What’s New and What’s Coming
PDF
Optimizing Time Series Performance in the Real World
PPTX
Tim Hall [InfluxData] | InfluxDB Roadmap | InfluxDays Virtual Experience NA 2020
PDF
Write your own telegraf plugin
PDF
Sensor Data in InfluxDB by David Simmons, IoT Developer Evangelist | InfluxData
PDF
Optimizing the Grafana Platform for Flux
PPTX
Improving Clinical Data Accuracy: How to Streamline a Data Pipeline Using Nod...
PDF
Barbara Nelson [InfluxData] | Build, Ship, Repeat: Milestones for InfluxDB | ...
PDF
Getting Ready to Move to InfluxDB 2.0 | Tim Hall | InfluxData
PPTX
Ryan Betts [InfluxData] | InfluxDB Platform Performance | InfluxDays Virtual ...
PDF
InfluxDB Live Product Training
InfluxDB Live Product Training
Getting Started: Intro to Telegraf - July 2021
How to Use Telegraf and Its Plugin Ecosystem
Intro to Telegraf
INTERFACE by apidays 2023 - Data Collection Basics, Anais Dotis-Georgiou, Inf...
Virtual training intro to InfluxDB - June 2021
Samantha Wang [InfluxData] | Data Collection Overview | InfluxDays 2022
OSMC 2024 | Telegraf – A data collection agent by Sven Rebhan.pdf
Ryan Betts [InfluxData] | Influxdays Keynote: Engineering Update | InfluxDays...
InfluxDB Roadmap: What’s New and What’s Coming
Optimizing Time Series Performance in the Real World
Tim Hall [InfluxData] | InfluxDB Roadmap | InfluxDays Virtual Experience NA 2020
Write your own telegraf plugin
Sensor Data in InfluxDB by David Simmons, IoT Developer Evangelist | InfluxData
Optimizing the Grafana Platform for Flux
Improving Clinical Data Accuracy: How to Streamline a Data Pipeline Using Nod...
Barbara Nelson [InfluxData] | Build, Ship, Repeat: Milestones for InfluxDB | ...
Getting Ready to Move to InfluxDB 2.0 | Tim Hall | InfluxData
Ryan Betts [InfluxData] | InfluxDB Platform Performance | InfluxDays Virtual ...
InfluxDB Live Product Training
Ad

More from InfluxData (20)

PPTX
Announcing InfluxDB Clustered
PDF
Best Practices for Leveraging the Apache Arrow Ecosystem
PDF
How Bevi Uses InfluxDB and Grafana to Improve Predictive Maintenance and Redu...
PDF
Power Your Predictive Analytics with InfluxDB
PDF
How Teréga Replaces Legacy Data Historians with InfluxDB, AWS and IO-Base
PDF
Build an Edge-to-Cloud Solution with the MING Stack
PDF
Meet the Founders: An Open Discussion About Rewriting Using Rust
PDF
Introducing InfluxDB Cloud Dedicated
PDF
Gain Better Observability with OpenTelemetry and InfluxDB
PPTX
How a Heat Treating Plant Ensures Tight Process Control and Exceptional Quali...
PDF
How Delft University's Engineering Students Make Their EV Formula-Style Race ...
PPTX
Introducing InfluxDB’s New Time Series Database Storage Engine
PDF
Start Automating InfluxDB Deployments at the Edge with balena
PDF
Understanding InfluxDB’s New Storage Engine
PDF
Streamline and Scale Out Data Pipelines with Kubernetes, Telegraf, and InfluxDB
PPTX
Ward Bowman [PTC] | ThingWorx Long-Term Data Storage with InfluxDB | InfluxDa...
PDF
Scott Anderson [InfluxData] | New & Upcoming Flux Features | InfluxDays 2022
PDF
Steinkamp, Clifford [InfluxData] | Closing Thoughts | InfluxDays 2022
PDF
Steinkamp, Clifford [InfluxData] | Welcome to InfluxDays 2022 - Day 2 | Influ...
PDF
Steinkamp, Clifford [InfluxData] | Closing Thoughts Day 1 | InfluxDays 2022
Announcing InfluxDB Clustered
Best Practices for Leveraging the Apache Arrow Ecosystem
How Bevi Uses InfluxDB and Grafana to Improve Predictive Maintenance and Redu...
Power Your Predictive Analytics with InfluxDB
How Teréga Replaces Legacy Data Historians with InfluxDB, AWS and IO-Base
Build an Edge-to-Cloud Solution with the MING Stack
Meet the Founders: An Open Discussion About Rewriting Using Rust
Introducing InfluxDB Cloud Dedicated
Gain Better Observability with OpenTelemetry and InfluxDB
How a Heat Treating Plant Ensures Tight Process Control and Exceptional Quali...
How Delft University's Engineering Students Make Their EV Formula-Style Race ...
Introducing InfluxDB’s New Time Series Database Storage Engine
Start Automating InfluxDB Deployments at the Edge with balena
Understanding InfluxDB’s New Storage Engine
Streamline and Scale Out Data Pipelines with Kubernetes, Telegraf, and InfluxDB
Ward Bowman [PTC] | ThingWorx Long-Term Data Storage with InfluxDB | InfluxDa...
Scott Anderson [InfluxData] | New & Upcoming Flux Features | InfluxDays 2022
Steinkamp, Clifford [InfluxData] | Closing Thoughts | InfluxDays 2022
Steinkamp, Clifford [InfluxData] | Welcome to InfluxDays 2022 - Day 2 | Influ...
Steinkamp, Clifford [InfluxData] | Closing Thoughts Day 1 | InfluxDays 2022

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
A Presentation on Artificial Intelligence
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
MYSQL Presentation for SQL database connectivity
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Electronic commerce courselecture one. Pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Approach and Philosophy of On baking technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Network Security Unit 5.pdf for BCA BBA.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
A Presentation on Artificial Intelligence
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
MYSQL Presentation for SQL database connectivity
“AI and Expert System Decision Support & Business Intelligence Systems”
Electronic commerce courselecture one. Pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Cloud computing and distributed systems.
Teaching material agriculture food technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25 Week I
Unlocking AI with Model Context Protocol (MCP)
Approach and Philosophy of On baking technology

Jess Ingrassellino [InfluxData] | How to Get Data Into InfluxDB | InfluxDays EMEA 2021

  • 1. Jess Ingrassellino, Engineering Manager Data Acquisition & Telegraf Get Your Data Into InfluxDB
  • 2. © 2021 InfluxData. All rights reserved. 2 | Get Your Data Into InfluxDB: Agenda Telegraf Client Libraries API Command Line Tools UI Data Loading Flux from Best Practices
  • 4. © 2021 InfluxData. All rights reserved. 4
  • 5. © 2021 InfluxData. All rights reserved. 5 ~ 300 plugins (input, output, processor, aggregator) Single Binary Extensible in any language with ExecD Low and no-code options Robust Agent: scheduling, streaming, metrics routing, more | What’s so great about Telegraf?
  • 6. © 2021 InfluxData. All rights reserved. 6 Using Telegraf Download telegraf binary for your operating system Edit the configuration file to use the plugins of your choice (via UI or in the text editor of your choice) Run Telegraf
  • 7. Getting data in using different languages Client Libraries
  • 8. © 2021 InfluxData. All rights reserved. 8 Client Libraries Arduino C# Go Java Kotlin Node.js PHP Python Ruby Scala Swift
  • 9. Write API to /write endpoint Direct API
  • 10. © 2021 InfluxData. All rights reserved. 10 https:/ /docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/api/ What’s required for a request?
  • 11. © 2021 InfluxData. All rights reserved. 11 https:/ /docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/api/ A sample request (uncompressed)
  • 12. © 2021 InfluxData. All rights reserved. 12 https:/ /docs.influxdata.com/influxdb/v2.0/api/#operation/PostWrite Expected Response Codes
  • 13. CSV and Line Protocol Command Line Tools
  • 14. © 2021 InfluxData. All rights reserved. 14 InfluxDB Write https:/ /docs.influxdata.com/influxdb/v2.0/reference/cli/influx/write/ Writes data to InfluxDB via stdin or from a specified file, files, url, or urls Line Protocol, annotated CSV, or extended annotated CSV
  • 15. © 2021 InfluxData. All rights reserved. 15 InfluxDB Write: Examples https:/ /docs.influxdata.com/influxdb/v2.0/reference/cli/influx/write/
  • 16. Test and Explore with Low and No-code options UI Data Loading
  • 17. © 2021 InfluxData. All rights reserved. 17 Load Data with the UI Login to your cloud account and select your client library, telegraf plugin, or template Edit your configuration in the UI and get url for your cloud instance Run your configuration and see your data flow!
  • 19. © 2021 InfluxData. All rights reserved. 19 | Using Flux from Flux from retrieves data from an InfluxDB data source Returns a stream of tables from a specified bucket Contains each unique series in its own table Each record in the table is a single point in the series https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
  • 20. © 2021 InfluxData. All rights reserved. 20 | Flux from example usage https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
  • 22. © 2021 InfluxData. All rights reserved. 22 | Optimize Writes Batch Writes Sort Tags By Key Use the coarsest time precision possible Use gzip compression Synchronize hosts with NTP Write multiple data points with one request https:/ /docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
  • 23. © 2021 InfluxData. All rights reserved. 23 | Handle Duplicate Data Points Duplicate Data Points Preserve Duplicate Data Points Add arbitrary tag Implement the timestamp https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/duplicate-points/
  • 24. © 2021 InfluxData. All rights reserved. 24 | Schema Design Recommendations Storing data Store commonly-queried meta data in tags. Store data in fields if each data point contains a different value. Store numeric values as fields (tag values only support string values). Use recommended naming conventions avoid keywords in tag and field names avoid the same tag and field name avoid encoding data in measurement names avoid more than one piece of information in one tag Avoid too many series https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/schema-design/