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
0
votes
1 answer
Why the InfluxDB v2 configuration file do not work?
In InfluxDB v2, the config file is change. check below, it's a different from v1.
https://docs.influxdata.com/influxdb/v2.0/reference/config-options/
and I now I configured the env variable.
[root@dele ~]# echo…

user7693832
- 6,119
- 19
- 63
- 114
0
votes
1 answer
Cannot connect to influxd by influx CLI tool
I installed influx in my CentOS 8.2 Server.
[root@dele opt]# influxd version
InfluxDB 2.0.2 (git: 84496e507a) build_date: 2020-11-19T03:59:35Z
[root@dele opt]# influx version
Influx CLI 2.0.2 (git: 84496e507a) build_date: 2020-11-19T03:59:35Z
I…

user7693832
- 6,119
- 19
- 63
- 114
0
votes
0 answers
Influx Query with lots of select or better approach
I am sorry if this quest sounds like something simple. But, I have just begun to work with Influx.
I have the following data set in my influx DB.
> select * from "productA" where "key" = 'auth-service' and time >= now() - 2d
name: productA
time …

Mike
- 512
- 3
- 16
0
votes
1 answer
InfluxDB 2.0 Flux - How to Handle Division by Zero
Hi I am trying to do a simple success rate calculation between metrics. By dividing the number of successful requests by the number of attempts. The problem is some intervals are empty where both metrics are 0. When I write the query I get the below…

MBasith
- 1,407
- 4
- 29
- 48
0
votes
1 answer
InfluxDB - 2.0 - stand alone DB
I am using Influxdb with Grafana for a while and I like it.
I am confused with the new version of Influxdb2.0. I was searching the doc and could not find useful info.
I have some questions.
Will Influxdb be available only as bundled with db + ui as…

KitKarson
- 5,211
- 10
- 51
- 73
0
votes
2 answers
InfluxDB v2 compatibility endpoint /query not working after mapping unmapped buckets
Creating an InfluxQL datasource in Grafana to InfluxDB 2.0 (2.0.0-beta.16) failed with error:
can't assign to property "executedQueryString" on "

EagleJohn81
- 11
- 1
- 3
0
votes
1 answer
How to create Influxdb alert for deviating from average hourly values?
So I'm trying to find any documentation on more complex Flux queries but after days of searching I'm still lost. I want to be able to calculate average values for each hour of the week and then when new data comes in I want to check if it deviates…

ditoslav
- 4,563
- 10
- 47
- 79
0
votes
1 answer
How to join a string value from a tag with a string value from a field?
consider having the following line protocol data:
my_measurement,foo="Some" bar="Thing",baz=123
where foo is a tag and bar and baz are fields, I need to get, say,
a string "Some|Thing" out of InfluxDB OSS v2 using the Flux language.
What's the…

mjf
- 498
- 4
- 15
0
votes
1 answer
Lambda function only putting one data point into InfluxDB
I have a Lambda function that is designed to take a message from a SQS queue and then input a value called perf_value which is just an integer. The CloudWatch logs show it firing each time and logging Done as seen in the .then() block of my write…

joshk132
- 1,011
- 12
- 37
0
votes
1 answer
How can I check if the InfluxDB v2 is online and the credentials are valid using the InfluxDB client for java?
I'm using the InfluxDB 2 client for Java, and I was wondering how I would check if the InfluxDB is online and if the given credentials are valid.
In influxdb-java I used the .ping() function, but I can't seem to find such a function for the…

radmacher
- 125
- 2
- 13
0
votes
1 answer
How to get data in InfluxDB subscription end point?
Hi I have created a subscription (http) in the InfluxDB using following command :
CREATE SUBSCRIPTION "test-data-update" ON "system_managment"."system_managment2d" DESTINATIONS ALL 'http://localhost:9001/ts/data-update'
And in the ExpressJs app…

Dipak
- 6,532
- 8
- 63
- 87
0
votes
1 answer
Node Sending Data to InfluxDB with historical timestamp
I am trying to write data to influx with the Node-Influx Library.
I want to write historical data to influx using the timestamp in the data and the timestamp value in influx.
export class DeviceInfluxDbAccessor extends BaseInfluxDbAccessor {
…

BigL
- 165
- 1
- 2
- 15
0
votes
2 answers
How to escape forward slash '/' within a regex condition in flux query
I have to query an InFlux database and match a particular string within one of columns.
something like: WHERE (\"namecache\" =~ //)
however, the could itself contain '/' characters. I am unable to escape the forward…

Nitin Manju
- 61
- 7
0
votes
1 answer
Error deserializing response after call to create bucket via InfluxDB Java 2.0 client?
Attempting to dynamically create a bucket, I keep receiving the following error.
Error:
Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 233 path $.labels
…

Naruto Sempai
- 6,233
- 8
- 35
- 51
-1
votes
1 answer
signature issue while installing influxdb2 on ubuntu20.04
I am trying to install influxdb2 with the link install influxdb2 on ubuntu 20.04
but got signature related issue as below. Any help to resolve this would be appreciated.
/home/ravi>sudo su
/home/ravi#wget -qO-…

myquest5 sh
- 63
- 6