Successfully reported this slideshow.

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

0

Share

Loading in …3
×
1 of 25
1 of 25

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

0

Share

Download to read offline

There are many ways to collect and store data in InfluxDB. Learn more about Telegraf, Client SDKs, Direct API, CLI, UI Uploader and Flux. InfluxDB's CLI can handle CSV’s and Line Protocol. Discover how to use Flux pull data into InfluxDB.

There are many ways to collect and store data in InfluxDB. Learn more about Telegraf, Client SDKs, Direct API, CLI, UI Uploader and Flux. InfluxDB's CLI can handle CSV’s and Line Protocol. Discover how to use Flux pull data into InfluxDB.

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

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

  1. 1. Jess Ingrassellino, Engineering Manager Data Acquisition & Telegraf Get Your Data Into InfluxDB
  2. 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
  3. 3. Extensive Plugin Ecosystem Telegraf
  4. 4. © 2021 InfluxData. All rights reserved. 4
  5. 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. 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. 7. Getting data in using different languages Client Libraries
  8. 8. © 2021 InfluxData. All rights reserved. 8 Client Libraries Arduino C# Go Java Kotlin Node.js PHP Python Ruby Scala Swift
  9. 9. Write API to /write endpoint Direct API
  10. 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. 11. © 2021 InfluxData. All rights reserved. 11 https:/ /docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/api/ A sample request (uncompressed)
  12. 12. © 2021 InfluxData. All rights reserved. 12 https:/ /docs.influxdata.com/influxdb/v2.0/api/#operation/PostWrite Expected Response Codes
  13. 13. CSV and Line Protocol Command Line Tools
  14. 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. 15. © 2021 InfluxData. All rights reserved. 15 InfluxDB Write: Examples https:/ /docs.influxdata.com/influxdb/v2.0/reference/cli/influx/write/
  16. 16. Test and Explore with Low and No-code options UI Data Loading
  17. 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!
  18. 18. Flux from
  19. 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. 20. © 2021 InfluxData. All rights reserved. 20 | Flux from example usage https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
  21. 21. Data Input Best Practices
  22. 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. 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. 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/
  25. 25. Thank you!

×