More information here https://v2.docs.influxdata.com/v2.0/. Version 2 uses a new query language called Flux and it is also reactive in nature.
Questions tagged [influxdb-2]
289 questions
4
votes
1 answer
Initialize influxdb2 buckets with entrypoint script
I am working on a deployment of an influxdb for storing of real-time data. I have been using 1.8.4 for some time now and recently decided to update to v2.
My docker-compose.yml file looks something like this:
influxdb:
image:…

andalexo
- 43
- 1
- 5
3
votes
0 answers
Optimising a query (Min, Max, First and Last)
First post here and new to InfluxDB.
I have been given the following query, and I have no clue how I can optimize it.
A period of 24 hours and 1m windows takes around 2.4 seconds at the moment (is this the expected amount of time).
I suspect one of…

Lou
- 31
- 3
3
votes
1 answer
Collectd in InfluxDB2.0
I want to deploy influxDB with collectd.
For previous version ie 1.8 of influxDB it was supported.
Do we have support for collectd in the latest version of influxdb i.e 2.0?

sayali_bhavsar
- 141
- 1
- 2
- 8
3
votes
2 answers
InfluxDB 2.0 Killed by OOM
I am very new to InfluxDB, Initially, I installed the 1.8 version but later upgraded to v2.0.
I am treating this as an out-of-the-box approach, for now, I was able to set up the insertion into influx using…

droid 001
- 31
- 4
3
votes
1 answer
Get list of Measurements with Influx 2
I'm having trouble understanding how to use some InfluxDB 2 APIs from Python, using the influxdb-client-python library for InfluxDB 2
For example I would like to get a list of measurements in a bucket.
Official documentation (not Python) suggest…

mattewre
- 91
- 2
- 6
3
votes
1 answer
Unable to access or create database using the 'Influx' command in influxdb docker image
I've created a container and executed it for influxdb. Now as the previous versions we could access the databases by going inside the influx shell with influx command. But when I type the influx command I get list of help command. Any one here has…

atomvs
- 67
- 1
- 9
3
votes
1 answer
How do I return timestamp instead of time from influxdb?
I query data from InfluxDB 2 using Flux query like:
from(bucket: "first")
|> range(start: time(v: 0))
|> filter(fn: (r) => r["_measurement"] == "test" and r._field == "volume")
|> keep(columns: ["_time", "_value"])
|> last()
This gives me a…

Anton Ivanov
- 199
- 1
- 11
3
votes
3 answers
Influxdb 2: Cannot sign in
I've managed to install influxdb2 and login to the web ui at localhost:8086 with the default username/pass admin/admin. But when I try to login now with the same credentials i get an error saying "Could not sign in" as shown here: Running systemctl…

KarelPrdel
- 99
- 1
- 1
- 7
3
votes
3 answers
Convert InfluxQL to FLUX query in Grafana
In Grafana I have a dashboard that uses InfluxDB 1.x as data source, I'm migrating it to use InfluxDB 2.0 data source and Flux querys.
In the Grafana dashboard there is a Variable called "Server" which has the following query defined:
SHOW TAG…

jonas
- 31
- 1
- 3
3
votes
0 answers
InfluxDB 2.0: Group Periods and Sum Up Duration
I have an InfluxDB (version 2), where an entry is written every second into my bucket, together with an identifier (uuid of the source) and a side value (some domain-specific measurement from 1 to 6). Instead of having a long list of such by-second…

Patrick Bucher
- 1,302
- 2
- 14
- 36
2
votes
0 answers
How to get http api request logs from influxdb2 running in docker container
There are docs for this in v1.8, but I can't find any for v2+
https://docs.influxdata.com/influxdb/v1.8/administration/logs/
I'm trying to diagnose an issue where a client suddenly started returning an error when writing data to influx:
Last sent…

jpx
- 123
- 2
- 9
2
votes
2 answers
InfluxDB Error: default retention policy not set for database in grafana after influx update from 1 to 2
I have updated my Influx database and also mapped the databases. But now I get the following problem in Grafana:
InfluxDB Error: default retention policy not set for database
InfluxDB Error: not executed
What could be the reason? I get the values…

OlKo
- 23
- 3
2
votes
1 answer
Unable to connect to Influx DB Client
I've just downloaded and installed the Windows version of InfluxDB v2.2.0. It's up an running, and I can access it via the Web UI. However, I'm unable to connect to it via the command client.
The command client is Influx version CLI 2.3.0 (git:…

Jack BeNimble
- 35,733
- 41
- 130
- 213
2
votes
2 answers
InfluxDB2 / Grafana : how can we filter a list of tag values with flux
InfluxDB2 flux language provides a convenient way to get all the tags values for a specific bucket/measurement combination, using the schema.measurementTagValues function.
The problem is that the documentation doesn't mention how to filter this list…

Fabien
- 346
- 2
- 10
2
votes
1 answer
Create User in InfluxDB v2 with role owner or assign role to a user later
I was wondering if someone know if there is a way to use the InfluxDB v2 cli to create a user, assign to a organization and assign the role owner or change the role of a user later.
It seems that there is an API option but not at the CLI.
Also in…

solick
- 2,325
- 3
- 17
- 29