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
1
vote
1 answer
Does Confluent's InfluxDB Sink Connector work with InfluxDB 2.0?
Does Confluent's InfluxDB Sink Connector work with InfluxDB 2.0? If not, is there an alterative which does?
Thanks,
Jack
user6429576
1
vote
1 answer
Influxdb 2.0 running in K8s gets data lost every time Statefulset pod is scaled down or rescheduled
I have deployed Influxdb 2.0.0 as Statefulset with EBS volume persistence. I've noticed that, if for some reason, pod gets rescheduled to other node or even if we scale down statefulset pod replicas = 0 and then scale up, the effect would be the…

Bakir Jusufbegovic
- 2,806
- 4
- 32
- 48
1
vote
1 answer
Stream data to Influx cloud by telegraf
can anyone help me to set streaming by telegraf into cloud InfluxDB? I use this tutorial, python script launches on my local machine and it pushing notification into rabbitMQ. Telegraf subscribed to rabbitMQ by this config.
# Configuration for…

dos4dev
- 429
- 2
- 10
- 26
1
vote
1 answer
How do I "check" (alert on) an aggregate in InfluxDB 2.0 over a rolling window?
I want to raise an alarm when the count of a particular kind of event is less than 5 for the 3 hours leading up to the moment the check is evaluated, but I need to do this check every 15 minutes.
Since I need to check more frequently than the span…

billkw
- 3,350
- 3
- 28
- 32
0
votes
0 answers
Unable to View Twin Id and Other Details from Kafka in InfluxDB
I'm facing an issue while using InfluxDB to store data from IoT devices (Eclipse Ditto) through Kafka using Telegraf. The data I'm receiving is in JSON format, containing information about various attributes and features of the devices. However, I'm…

karthick G
- 1
- 1
0
votes
0 answers
Am trying to write live data from an online csv
On the Web UI, it only shows tags without fields. The data only appears later, after I shut down my PC. Below is my code. I scheduled the data to be written every 15 seconds, but it does not show any data on the web. Th code runs with no errors…
0
votes
0 answers
creating a docker volume for data folder which is inside running container
Already running docker container which has data folder that needed to be added as docker volume. Is there a way to do this?
I tried setting new volume to data folder but losted all the data which was inside docker container.

santhosh
- 1,919
- 3
- 21
- 33
0
votes
0 answers
Calculate total Uptime and Downtime with hourly aggregation
enter image description here
I have a query that return an output with the machine state (_value) and mapValue to classify whether uptime/downtime with a duration (events.duration) for each state transition.
This is working fine, but the issue is: i…

Jeffrey
- 1
0
votes
0 answers
InfluxDB 2.7 discards the whole batch of metrics in case of a serialization issue in a single metric
Recently we did migration from the InfluxDB 1.8 to the InfluxDB 2.7
and it seems that we discovered a kind of error that we have never seen
in the v.1.8
After some investigation we identified that in case of error in one metric
a whole batch of…

Alex Konkin
- 618
- 1
- 7
- 15
0
votes
0 answers
Can someone explain strange results of SQL (Sub-)Query on InfluxDB
In my influx db I have wrong data I need to update. Therefore I am looking for spikes in my data and I am using OFFSET and LIMIT in a divide and conquer algorithm to find this spikes.
Now I have strange results, that prevent my code/ queries from…

fuetty
- 3
- 2
0
votes
0 answers
Get one value before the timerange in InfluxDB
I have the below time series data in my measurement:
I'm receiving the below values from the user for the start and end time:
Start : '2023-06-12T06:20:00Z'
End : '2023-06-12T09:00:00Z'
On basis of the above parameters, I want this data to be…

Amey Meher
- 101
- 7
0
votes
0 answers
Influxdb Setup: connection refused
I am trying to install and setup InfluxDB OSS 2.7 on a Ubuntu 22.04 machine hosted in AWS Lightsail. I am able to install everything but when I try to set up the admin user, the connection is refused.
I installed influxd. Then I ran influxd to start…

Wesley Laurence
- 9
- 2
0
votes
1 answer
Undefined identifier in InfluxDB query, invalid binary operator INVALID_OP
I am querying InfluxDB by bucket name and with a range and I got this error: "code":"invalid","message":"error @1:56-1:57: undefined identifier r\\n\\nerror @1:53-1:57: invalid binary operator \\u003cINVALID_OP\\u003e"}' from the following…

Steinn Hauser Magnússon
- 1,258
- 1
- 7
- 22
0
votes
0 answers
InfluxDB 2.x - how to get minimum _time for all records in measurement?
I need to get minimum _time for all records in measurement without grouping by tags. How I can do that using flux?
I don't find some examples of agregation functions for tags or _time field. Only for values.
from(bucket: "testbucket")
|>…

tolfel
- 13
- 3
0
votes
1 answer
influxdb2 group by date rather than last X hours
I'm hoping to have an aggregate sum for each day. All my searches are suggesting to use
|> aggregateWindow(every: 1d, fn: sum, createEmpty: false)
However, this appears to be more of a group by 24h blocks starting from now rather than grouping…

Bill Tarbell
- 4,933
- 2
- 32
- 52