docs-v2/content/influxdb/v2.0/write-data/no-code/load-data.md

4.1 KiB

title seotitle list_title weight description menu
Load data from sources in the InfluxDB user interface (UI) Load data source in UI Load data source in UI 101 Load data from sources in the InfluxDB user interface (UI). Choose from popular client libraries (such as Python, Ruby, Scala, and more!) or load data with a Telegraf plugin (like MQTT Consumer, MySQL, File, and many more!).
influxdb_2_0
name parent
Load data source in UI Write data

Load data from the following sources in the InfluxDB user interface (UI):

Load CSV or line protocol in UI

Load CSV or line protocol data by uploading a file or pasting the data manually into the UI.

  1. In the navigation menu on the left, click Data (Load Data) > Sources. {{< nav-icon "data" >}}

  2. Under File Upload, select the type of data to upload:

    • Annotated CSV. Verify your CSV file follows the supported annotated CSV syntax.
    • Line Protocol. Verify your line protocol file adheres to the following conventions:
  3. Select the bucket to write to.

  4. Select the Precision in the dropdown menu. By default, the precision is set to nanoseconds.

  5. Do one of the following:

    • To upload file, drag and drop your file onto the UI, and then click Write Data.
    • To enter data manually, select the Enter Manually tab, paste your data, and then click Write Data.

Load data from a client library in the UI

  1. In the navigation menu on the left, click Data (Load Data) > Sources. {{< nav-icon "data" >}}
  2. Do one of the following:
    • Enter a specific client library to search for in the Search data writing methods field.
    • Scroll down to browse available client libraries.
  3. Click the client library to load data from.
  4. Under Code Sample Options, you'll see a list of your InfluxDB tokens and buckets. Select both an API token and a bucket to write your data to. The selected API token and bucket are automatically added to scripts on the page that you can use to initialize a client and write data.
  5. Click the Copy to Clipboard buttons under a script to easily paste the script into your terminal or save the script to reuse for automation.
  6. Run the scripts on the page to do the following as needed:
    • Install the package, libraries, or client
    • Write data
    • Execute a Flux query

Load data from a Telegraf plugin in the UI

  1. In the navigation menu on the left, click Data (Load Data) > Sources. {{< nav-icon "data" >}}
  2. Do one of the following:
    • Enter a specific Telegraf plugin to search for in the Search data writing methods field.
    • Scroll down to browse available plugins.
  3. Click the plugin to load data from.
  4. Install Telegraf.
  5. Copy the default configuration script in the UI, and then add the script to Configure Telegraf.
  6. Adjust configuration settings as needed. To find configuration settings for a specific plugin, see Telegraf plugins.
  7. (Optional) To add the Telegraf configuration to InfluxDB, see Telegraf configuration.