Use Chronograf to visualize data
Chronograf is a data visualization and dashboarding tool designed to visualize data in InfluxDB 1.x using the InfluxQL query language. This page walks through how to use Chronograf with InfluxDB Cloud Serverless.
Prerequisites
- Download and install Chronograf
- An InfluxDB Cloud Serverless account with:
Enable InfluxDB 3 support
To connect Chronograf to InfluxDB Cloud Serverless, start Chronograf with InfluxDB 3 support enabled using one of the following methods:
chronograf --influxdb-v3-support-enabledexport INFLUXDB_V3_SUPPORT_ENABLED=true
chronografCreate an InfluxDB connection
-
Open Chronograf and click Configuration (wrench icon) in the navigation menu.
-
Click Add Connection.
-
In the Server Type dropdown, select InfluxDB Cloud Serverless.
-
Enter your InfluxDB Cloud Serverless connection credentials:
-
Connection URL: InfluxDB Cloud Serverless region URL
https://cloud2.influxdata.com -
Connection Name: Name to uniquely identify this connection configuration
-
Database Token: InfluxDB API token with read permissions on the bucket you want to query
-
Telegraf Database Name: InfluxDB bucket Chronograf uses to populate parts of the application, including the Host List page (default is
telegraf) -
Unsafe SSL: Enable to skip SSL certificate verification for self-signed certificates
-
-
Click Add Connection.
-
Select the dashboards you would like to create, and then click Next.
-
To configure a Kapacitor connection, provide the necessary credentials, and then click Continue. Otherwise, click Skip.
-
Click Finish.
Configure connection via CLI
You can also configure the connection when starting Chronograf:
Replace the following:
chronograf --influxdb-v3-support-enabled \
--influxdb-type=influx-v3-serverless \
--influxdb-url=https://cloud2.influxdata.com \
--influxdb-token=API_TOKEN \
--influxdb-default-db=BUCKET_NAMEFor a complete list of configuration options, see InfluxDB 3 connection options.
Query data in the Data Explorer
- In Chronograf, click Explore in the left navigation bar.
- Build and submit InfluxQL queries.
DBRPs map to InfluxDB buckets
In InfluxDB Cloud Serverless, database and retention-policy (DBRP) combinations
are mapped to buckets using the database-name/retention-policy naming convention
or using manually created DBRP mappings.
DBRP mappings are required to query InfluxDB Cloud using InfluxQL.
For information, see Create DBRP mappings.
You can use fully qualified measurements
in the FROM clause. For example:
-- Fully qualified measurement
SELECT * FROM "db-name"."rp-name"."measurement-name"
-- Fully qualified measurement shorthand (use the default retention policy)
SELECT * FROM "db-name".."measurement-name"For more information about available InfluxQL functionality, see InfluxQL feature support.
Important notes
Database view is read-only
When connected to InfluxDB Cloud Serverless, the database view in Chronograf is read-only.
No administrative functionality
Chronograf cannot be used for administrative tasks in InfluxDB Cloud Serverless. For example, you cannot do the following:
- Define databases
- Modify retention policies
- Add users
- Kill queries
When connected to an InfluxDB Cloud Serverless bucket, functionality in the InfluxDB Admin section of Chronograf is disabled.
To complete administrative tasks, use the following:
- InfluxDB user interface (UI)
- InfluxDB CLI
Annotations and variables
Annotations and dashboard variables work with InfluxDB Cloud Serverless when a chronograf bucket exists and is accessible with the same API token.
When setting up variables with dynamic tag values, the backend query limits the scope of the record search with a time condition.
By default, this is time > now() - 7d.
Tags from records older than this limit are ignored.
To change this setting, use the --influxdb-v3-time-condition flag or INFLUXDB_V3_TIME_CONDITION environment variable.
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 and this documentation. To find support, use the following resources:
- InfluxDB Community Slack (Preferred)
- InfluxDB Discord Server
- InfluxData Community
- InfluxDB Subreddit
Customers with an annual or support contract can contact InfluxData Support.