Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The following PR adds support for InfluxDB v2.
We can easily test it with docker in the following manner.
Spin influxdb v2 container:
Setup steps InfluxDB v2
If on a new setup run the following command:
If you need to create a new bucket adjust the bucket name (
-n
) and the org name (-o
) accordingly:Create a DBRP mapping with the InfluxDB 1.x compatibility API (official docs).
Adjust bucket name and db accordingly:
influx v1 dbrp create --db benchmark --rp 0 --bucket-id `influx bucket ls --name bucket-perf | awk -v i=2 -v j=1 'FNR == i {print $j}'` --default
Retrieve the auth token as follows:
sample output:
Run full cycle mini test
Pass the auth-token via
INFLUX_AUTH_TOKEN
env variable with the token retrieved on the previous step: