Get started with InfluxDB Cloud
After you’ve signed up for InfluxDB Cloud, you’re ready to get started:
- Do one of the following:
- Add sample data.
- Use your own data to explore InfluxDB Cloud.
- Create a notebook:
-
Click Notebooks in the navigation menu on the left.
-
(Optional) Process data
-
(Optional) Monitor data
-
(Optional) Output to a new bucket and export as a task
-
Add sample data
The examples below use the NOAA NDBC sample data, but we provide other sample data sets as well.
Use sample data to quickly populate InfluxDB with sample time series data. Sample data sets delivered with Cloud are used throughout this documentation site to provide context, best practices, and clear examples for how InfluxDB Cloud features and functions work.
- Click Data > Bucket and click Create Bucket to create a bucket and name it noaa.
- Do one of the following to download sample data:
Add sample data with community templates
-
In the navigation menu on the left, click Settings > Templates.
-
Paste the Sample Data community template URL in the resource manifest file field and click the Lookup Template button.
Sample Data community template URL
https://github.com/influxdata/community-templates/blob/master/sample-data/sample-data.yml
The sample data template installs a task that collects sample data and dashboards to visualize the sample data. After installing the template, sample data is downloaded and stored in the sample data bucket at regular intervals.
Write sample data with an InfluxDB task
Use the Flux InfluxDB sample package to download and write sample data to InfluxDB.
Add the following as an InfluxDB task.
import "influxdata/influxdb/sample"
option task = {name: "Collect NOAA NDBC data", every: 15m}
sample.data(set: "noaa")
|> to(bucket: "noaa")
For more information about this and other InfluxDB sample datasets, see InfluxDB sample data.
Create a notebook
Now that we’ve added the sample data bucket, we’re ready to create our notebook. Notebooks can build and annotate processes and data flows for your time series data, including writing to, querying from, and visualizing your data. For more information, see Notebooks.
Select metrics
-
In the navigation menu on the left, click Notebooks.
-
Click +New Notebook. By default, a Metric Selector and Visualization cell appear. For an overview of cell types, see Overview of notebooks.
-
Enter a name for your notebook in the Name this notebook field.
-
In the Metric Selector cell, click the Select a bucket dropdown and chooose the bucket you want to explore data from. A list of measurements, fields, and tags from the bucket appear.
-
Select a column value to analyze.
-
Click Preview to preview the raw data in a table.
Visualize data
Next, we’ll make it easier to visualize the raw data by viewing it in a graph. For more information on how to visualize data, see here.
By default, a visualization cell appears below your initial metric selector cell showing the mean values on a graph.
- Use the function dropdown menu to view different functions to apply to your data. By default, the visualization is set to the mean function.
- Use the visualization type dropdown to view different visualization types available. For a complete list of options, see Visualization types.
- Click the gear icon () to edit specific settings for the visualization type, such as colors, orientation, and labels.
Process data
A common processing task is downsampling data to view it at different levels of granularity and reduce overall data disk usage over time. The following steps use a Flux script to downsample your data to every 3 hours 30 seconds.
For more information on how to process data, see here.
- Click + to add a cell, then select Transform > Downsample.
- In the Apply aggregate field, select mean.
- In the Every Window Period field, enter a value. For this example, we’ll use
3h30s
, but any duration is supported by InfluxDB Cloud. For more information, see duration literals. - Click Preview to view the downsampled data.
Monitor data
Get notifications every time your data crosses a threshold. Specify your alerts by time and decide how the information will be sent to you.
- In your notebook, click to add a cell, then select Output > Alert.
- Customize the conditions to send an alert.
- Enter a time range to automatically check the data and enter your query offset.
- Select an endpoint to receive an alert:
- Slack and a Slack Channel
- HTTP post
- Pager Duty
- (Optional) Personalize your message. By default, the message is “${strings.title(v: r._type)} for ${r._source_measurement} triggered at ${time(v: r._source_timestamp)}!”
- Click Export as Alert Task to save your alarm.
Output to a new bucket and export as a task
After processing, send the downsampled data to a new bucket to store and view it. You can write it to the bucket a single time, or export it as a task, which is a scheduled Flux script, for it write to the bucket continuously.
- Click + to add a cell, then select an Output to Bucket cell.
- In the Choose a bucket dropdown, choose +Create a Bucket.
- Enter a name for your bucket and click Create.
- Click Run from the Preview dropdown list to run the notebook and write to the output bucket a single time.
- To write continuously, click Export as Task in the upper right corner of the Output to Bucket cell. For details about working with tasks, see Manage tasks.
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, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.