Sample data
Use sample data to familiarize yourself with time series data and InfluxDB. InfluxData provides many sample time series datasets to use with InfluxDB. You can also use the Flux InfluxDB sample package to view, download, and output sample datasets.
Live datasets
Live sample datasets are continually updated with new data. These sets can be loaded once and treated as a “static” dataset, or you can create an InfluxDB task to periodically collect and write new data.
Air sensor sample data
Air sensor sample data represents an “Internet of Things” (IoT) use case by simulating temperature, humidity, and carbon monoxide levels for multiple rooms in a building.
To continually download and write updated air sensor sample data to a bucket,
create an InfluxDB task
with the following Flux query.
Replace example-bucket
with your target bucket.
import "influxdata/influxdb/sample"
option task = {
name: "Collect air sensor sample data",
every: 15m,
}
sample.data(set: "airSensor")
|> to(bucket: "example-bucket")
Bitcoin sample data
The Bitcoin sample dataset provides Bitcoin prices from the last 30 days—Powered by CoinDesk.
To continually download and write updated Bitcoin sample data to a bucket,
create an InfluxDB task
with the following Flux query.
Replace example-bucket
with your target bucket.
import "influxdata/influxdb/sample"
option task = {
name: "Collect Bitcoin sample data",
every: 15m,
}
sample.data(set: "bitcoin")
|> to(bucket: "example-bucket")
NOAA NDBC data
The National Oceanic and Atmospheric Administration (NOAA) National Data Buoy Center (NDBC) dataset provides the latest observations from the NOAA NDBC network of buoys throughout the world.
To continually download and write updated NOAA NDBC sample data to a bucket,
create an InfluxDB task
with the following Flux query.
Replace example-bucket
with your target bucket.
import "influxdata/influxdb/sample"
option task = {
name: "Collect NOAA NDBC sample data",
every: 15m,
}
sample.data(set: "noaa")
|> to(bucket: "example-bucket")
USGS Earthquake data
The United States Geological Survey (USGS) earthquake dataset contains observations collected from USGS seismic sensors around the world over the last week.
To continually download and write updated USGS earthquake sample data to a bucket,
create an InfluxDB task
with the following Flux query.
Replace example-bucket
with your target bucket.
import "influxdata/influxdb/sample"
option task = {
name: "Collect USGS sample data",
every: 15m,
}
sample.data(set: "usgs")
|> to(bucket: "example-bucket")
Static datasets
Static datasets are fixed datasets from a specific past time range.
Bird migration sample data
Bird migration sample data is adapted from the Movebank: Animal Tracking dataset and represents animal migratory movements throughout 2019.
To download and write the bird migration sample data to a bucket, run the
following Flux query.
Replace example-bucket
with your target bucket.
import "influxdata/influxdb/sample"
sample.data(set: "birdMigration")
|> to("example-bucket")
The bird migration sample dataset is used in the Work with geo-temporal data guide to demonstrate how to query and analyze geo-temporal data.
Machine production sample data
The machine production sample dataset includes states and metrics reported from four automated grinding wheel stations on a production line.
To download and write the machine production sample data to a bucket, run the
following Flux query.
Replace example-bucket
with your target bucket.
import "influxdata/influxdb/sample"
sample.data(set: "machineProduction")
|> to(bucket: "example-bucket")
The machine production data is used in the IoT sensor common query guide.
NOAA water sample data
The National Oceanic and Atmospheric Administration (NOAA) water sample dataset is static dataset extracted from NOAA Center for Operational Oceanographic Products and Services data. The sample dataset includes 15,258 observations of water levels (ft) collected every six minutes at two stations (Santa Monica, CA (ID 9410840) and Coyote Creek, CA (ID 9414575)) over the period from August 17, 2019 through September 17, 2019.
To download and write the NOAA water sample data to a bucket, run the
following Flux query.
Replace example-bucket
with your target bucket.
import "influxdata/influxdb/sample"
sample.data(set: "noaaWater")
|> to(bucket: "example-bucket")
The NOAA water sample dataset is used to demonstrate Flux queries in the Common queries and Common tasks guides.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.