1- (integrate-influxdb)=
2- (integrate-influxdb-quickstart)=
31(import-influxdb)=
42# Import data from InfluxDB
53
@@ -48,6 +46,8 @@ data in schemas and tables.
4846- A ** field** is similar to an un-indexed column in an SQL database.
4947- A ** point** is similar to an SQL row.
5048
49+ -- [ via] [ What are series and bucket in InfluxDB ]
50+
5151## Tutorial
5252
5353The tutorial heavily uses Docker to provide services and to run jobs.
@@ -131,25 +131,28 @@ alias crash="docker run --rm -it ghcr.io/crate/cratedb-toolkit:latest crash"
131131You will need your credentials for both CrateDB and InfluxDB.
132132These are, with examples:
133133
134- ** CrateDB Cloud**
135- * Host: ``` purple-shaak-ti.eks1.eu-west-1.aws.cratedb.net ```
136- * Username: ``` admin ```
137- * Password: ``` dZ..qB ```
134+ :::{rubric} CrateDB Cloud
135+ :::
136+ - Host: ``` purple-shaak-ti.eks1.eu-west-1.aws.cratedb.net ```
137+ - Username: ``` admin ```
138+ - Password: ``` dZ..qB ```
138139
139- ** InfluxDB Cloud**
140- * Host: ``` eu-central-1-1.aws.cloud2.influxdata.com ```
141- * Organization ID: ``` 9fafc869a91a3406 ```
142- * All-Access API token: ``` T2..== ```
140+ :::{rubric} InfluxDB Cloud
141+ :::
142+ - Host: ``` eu-central-1-1.aws.cloud2.influxdata.com ```
143+ - Organization ID: ``` 9fafc869a91a3406 ```
144+ - All-Access API token: ``` T2..== ```
143145
144146For CrateDB, the credentials are displayed at time of cluster creation.
145147For InfluxDB, they can be found in the [ cloud platform] itself.
146148
147149Now, same as before, import data from InfluxDB bucket/measurement into
148150CrateDB schema/table.
149151:::{code} shell
152+ export CRATEPW='dZ..qB'
150153ctk load table \
151154 "influxdb2://9f..06: T2 ..==@eu-central-1-1 .aws.cloud2.influxdata.com/testdrive/demo?ssl=true" \
152- --cratedb-sqlalchemy-url="crate://admin: dZ . .qB @purple-shaak-ti.eks1.eu-west-1.aws.cratedb.net :4200/testdrive/demo?ssl=true"
155+ --cratedb-sqlalchemy-url="crate://admin:${CRATEPW} @purple-shaak-ti .eks1.eu-west-1.aws.cratedb.net:4200/testdrive/demo?ssl=true"
153156:::
154157
155158::: {note}
@@ -159,7 +162,8 @@ when working on Cloud-to-Cloud transfers.
159162
160163Verify that relevant data has been transferred to CrateDB.
161164:::{code} shell
162- crash --hosts 'https://admin:dZ..qB@purple-shaak-ti.eks1.eu-west-1.aws.cratedb.net:4200 ' --command 'SELECT * FROM testdrive.demo;'
165+ export CRATEPW='dZ..qB'
166+ crash --hosts 'https://admin:${CRATEPW}@purple-shaak-ti.eks1.eu-west-1.aws.cratedb.net:4200 ' --command 'SELECT * FROM testdrive.demo;'
163167:::
164168
165169## More information
@@ -168,9 +172,8 @@ There are more ways to apply the I/O subsystem of CrateDB Toolkit as
168172pipeline elements in your daily data operations routines. Please visit the
169173[ CrateDB Toolkit InfluxDB I/O subsystem] documentation, to learn more about what's possible.
170174
171- The InfluxDB I/O subsystem is based on the [ influxio] package. Please also
172- check its documentation to learn about more of its capabilities, supporting
173- you when working with InfluxDB.
175+ The InfluxDB I/O subsystem is based on the [ influxio] package. See its
176+ documentation for additional capabilities when working with InfluxDB.
174177
175178:::{note}
176179** Important:** If you discover any issues with this adapter, please
0 commit comments