InfluxDB Docs

Create a bucket

Use the InfluxDB user interface (UI) or the influx command line interface (CLI) to create a bucket.

Create a bucket in the InfluxDB UI

  1. Click Load Data in the navigation bar.

  2. Select Buckets.

  3. Click Create Bucket in the upper right.

  4. Enter a Name for the bucket.

  5. Select when to Delete Data:

    • Never to retain data forever.
    • Older than to choose a specific retention policy.
  6. Click Create to create the bucket.

Create a bucket using the influx CLI

Use the influx bucket create command to create a new bucket. A bucket requires the following:

  • bucket name
  • organization name or ID
  • retention period duration (ns, us, ms, s, or h)

    # Syntax
    influx bucket create -n <bucket-name> -o <org-name> -r <retention-period-duration>
    # Example
    influx bucket create -n my-bucket -o my-org -r 72h