Questions tagged [influxdb-python]

Use this tag for questions about the InfluxDB-Python client library.

215 questions
1
vote
1 answer

Authentication in Influx allows all usernames

I am using the docker image influxdb:1.8 and I want to connect to my influx database using Python from within another container. I figured out how to do it without too much looking around. However, I noticed I was able to connect to my database (and…
PleaseHelp
  • 133
  • 9
1
vote
1 answer

How can i use influxdb in django project

i have some trouble about influxdb+django configurations. Firstly let me summarize my situation. I have an influxdb which is already collecting data from endnode(sensors). Data is transfering by LoraWan technology. I can read that datas from…
lotr34
  • 13
  • 1
  • 3
1
vote
1 answer

How to connect to influxDB in version 2.0

After running influxd daemon when I try to start influx as in older version I'm not able to connect any CLI interface for DB. Instead it is showing help commands. Can anyone please help here
1
vote
0 answers

Influxdb python 5.3.1 write_points not allowing multiple rows to be written

I am new to using influxdb (v1.7.4), and I am using its python module (influxdb-python). I want to write data in bulk into influxdb. But unable to get the correct output when using the write_points method. point = [ { "fields":…
1
vote
0 answers

Using the write_points call Python influxdb-python, are there any retryable errors?

Using influxdb-python 5.3.1 in my client app, with an influxdb server version 1.6.4, when I write data using the write_points call, are there any exceptions that might be retryable? For example: influx_conn =…
Ben Slade
  • 478
  • 5
  • 11
1
vote
0 answers

Influxdb ignore duplicates by tags when insert

I have several threads writing data in influxdb. The data can be duplicated in the sense of tag. The db is similar to below. Here, "name" is fields, "uique_id" is tags time name unique_id 2021-03-02 17:00:08.998 Alice 10001 2021-03-02…
정민성
  • 11
  • 2
1
vote
0 answers

Basic influxdb cardinality

I have developed a project using influxdb and I am currently trying to understand why my influx container keeps crashing due to oom exits. The way I designed my database is quite basic. I have several buildings, for each building, I need to have…
PleaseHelp
  • 133
  • 9
1
vote
1 answer

Writing list of dictionaries to Influxdb

I have a list of dictionaries as follows: [{"vins": "50EA1LGA5KA900001", "use": "abc", "owner": "Jack"}, {"vins": "50EA1LGA0KA900004", "use": "xyz", "owner": "Laura"}, {"vins": "50EA1LGA2KA900005", "use": "pqr", "owner": "Sam"}] I want to write the…
Shrads
  • 883
  • 19
  • 39
1
vote
1 answer

Writing to influx db returns no error, but no data is stored

I am trying to write some sensor data into InfluxDB. The client returns no error, but no data is hitting the db. Can you please give me a hand? I played around with tags, different, time formats and so on, but to no avail. I read what I could find,…
Fluffy
  • 75
  • 1
  • 6
1
vote
0 answers

the DataFrameClinet class of python's package for influxdb uploads only the last line from the dataframe

i am trying to use python's package for influxdb to upload dataframe into the database i am using the write_points class to write point into the database as given in the…
1
vote
1 answer

Influxdb bulk insert using influxdb-python

I used influxDB-Python to insert a large amount of data read from the Redis-Stream. Because Redis-stream and set maxlen=600 and the data is inserted at a speed of 100ms, and I needed to retain all of its data. so I read and transfer it to influxDB(I…
moluzhui
  • 1,003
  • 14
  • 34
1
vote
0 answers

Connect to InfluxDB from Python script in two Docker Container

I want to run two docker containers - one hosting a Influx DB and one running a python script connecting to the Influx DB with the python client. I made the dummy_script.py (see minimal example below): from influxdb import InfluxDBClient from…
Sebastian Dengler
  • 1,258
  • 13
  • 30
1
vote
1 answer

How do I configure chronograf to run in a specific port?

I am a newbie in InfluxDB. I have installed InfluxDB and Chronograf in C:/InfluxDB/ and created this structure: C:/InfluxDB/influx-data C:/InfluxDB/influxdb C:/InfluxDB/chronograf-1.8.4-1 I execute influxd.exe. Everything OK I execute chronograf.…
1
vote
1 answer

influxdb query with large response too slow

Our query is taking 20s and we need to substantially reduce this. We're calling it via the python dataframe client, but I reproduced the same query and 20s response time via the CLI client: influx --host 10.0.5.183 --precision RFC3339 -execute…
davegravy
  • 888
  • 11
  • 28
1
vote
0 answers

influxdb.exceptions.InfluxDBClientError_"error":"unable to parse_invalid boolean

I am trying to write script to push some data to InfluxDB & code executes without errors/warnings. I have the following output from python which I want to insert on Influxdb : [{'measurement': '2GHz', 'tags': {'ap_name': 'l1:10c:17:gf:3j:d1',…
aapg07
  • 23
  • 3