Use this tag for questions about the InfluxDB-Python client library.
Questions tagged [influxdb-python]
215 questions
1
vote
0 answers
Add or modify columns(fields/tags) of influxdb with collectd
I tried to implement my own python plugin of collectd which can store data into influxdb.
I followed this site's tutorial: https://blog.dbrgn.ch/2017/3/10/write-a-collectd-python-plugin/
and also other tutorials.
Following is the sample code from…

Wilson.Wang
- 69
- 1
- 8
1
vote
1 answer
Influxdb select data from a specific shard
I would like to know if it is possible somehow from the CLI of the influx to select the data of a specific shard. I also would like to select the series within two timestamps but i haven't yet found how. Any input would be appreciated, thank you.

user3224454
- 194
- 2
- 16
1
vote
1 answer
Influxdb querying values from 2 measurements and using SUM() for the total value
select SUM(value)
from /measurment1|measurment2/
where time > now() - 60m and host = 'hostname' limit 2;
Name: measurment1
time sum
---- ---
1505749307008583382 4680247
name: measurment2
time …

Shashank
- 159
- 1
- 3
- 6
1
vote
0 answers
How to configure telegraf to send a folder-size to influxDB
I am having a hard time understanding and using the disk plugin.
I want to emit the folder size for /var/lib/influxdb/hh/, and I am trying to figure out how to wire this using the disk plugin.
I have tried the following :
setup a new configuration…

sudhishkr
- 3,318
- 5
- 33
- 55
1
vote
2 answers
Understanding difference in unix epoch time via Python vs. InfluxDB
I've been trying to figure out how to generate the same Unix epoch time that I see within InfluxDB next to measurement entries.
Let me start by saying I am trying to use the same date and time in all tests:
April 01, 2017 at 2:00AM CDT
If I view a…

ddevalco
- 1,209
- 10
- 20
1
vote
1 answer
Influxdb + Grafana + Jmeter " Data not populating in grafana"
I am trying to implement Grafana real time in windows platform. Currently I am able to capture the jmeter run data into Influxdb. I have also configured the Influxdb data source in Grafana and post I am getting message "Success
Data source is…

Mr. Ravi Arkasali
- 41
- 5
1
vote
0 answers
Load non precision data onto InfluxDB
Issue: I am unable to load data onto Influx DB from files that is non precise.
Error Code: ValueError: Invalid time precision is given.
But my time is batch data is generated randomly without a precision. So its not letting me load the data onto the…

V Sri Sandeep
- 15
- 7
1
vote
1 answer
Python to influxdb - insert if no record
I know influx is for measurement type data. But I'm also using it for annotations on certain events.
I have scripts that run every minute, that it would be difficult for it to realise an event has already happened. Is there something I can do on…

dcole
- 317
- 1
- 4
- 12
1
vote
2 answers
Using Influx with python to write data on DB
I'm using the influxdb to try and write some 'measurements' on the local influxdb using the influxdb v4.0.0...
I am a litle bit confused because some places say you use a dict or you can use json and or line protocol....
From here…

Diogo Guerra
- 128
- 2
- 3
- 12
0
votes
1 answer
Why do I keep getting Influxdb unauthorized access (error 401)
I have been trying to follow along the python walkthrough that is provided by influxDB to get familiar with how it works, and just by following the tutorial, I am getting errors, after following each step accordingly. All of the code is from them,…

Cai Lewendon
- 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
Pushing Data To Influx DB From The Command Line Invalid Number Error
I have some iot data in csv format that I would like to push into InfluxDb.
I am using influx write from the command line, but I am getting a parsing error back.
The command I'm running is
influx write -b iotData \
-f data.csv \
--header…

CHEESE
- 15
- 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
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
1 answer
Retrieving an empty dictionary when querying data from InfluxDB using DataFrameClient in Python
I have created a database in InfluxD using Python with a code like this:
from influxdb import InfluxDBClient
host = 'xx.xxx.xx.xxx'
port = 8086
username = 'user'
password = 'password'
database = 'dbname'
client = InfluxDBClient(host …

Josue9740
- 1
- 1