influxdb-python

Trouble Inserting DataFrame Into InfluxDB Using Python

我只是一个虾纸丫 提交于 2019-12-25 08:50:51
问题 I'm trying to insert a very large CSV file into InfluxDB and am inserting it as such in Python: influx_pd = influxdb.DataFrameClient(host, port, user, password, db, verify_ssl=False) for frame in pd.read_csv(infile, chunksize=batch_count): frame.set_index(pd.DatetimeIndex(frame[date_pk]), inplace=True) frame.dropna(axis=1, how='all') influx_pd.write_points(frame, 'patients') However, on the first call to write_points, I'm receiving this error (truncated): raise InfluxDBClientError(response

influxdb: Write multiple points vs single point multiple times

痴心易碎 提交于 2019-12-10 21:48:15
问题 I'm using influxdb in my project and I'm facing an issue with query when multiple points are written at once I'm using influxdb-python to write 1000 unique points to influxdb. In the influxdb-python there is a function called influxclient.write_points() I have two options now: Write each point once every time (1000 times) or Consolidate 1000 points and write all the points once. The first option code looks like this(pseudo code only) and it works: thousand_points = [0...9999 while i < 1000: .

How to configure telegraf to send a folder-size to influxDB

冷暖自知 提交于 2019-12-08 18:09:30
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 file for telegraf here vi /etc/telegraf/telegraf.d/influxdbdata_telegraf.conf added this configuration [[inputs.disk]] mount_points = ["/var/lib/influxdb/hh/"] now I try to query the data from influxDB, and I don't see this. But I see the other measurements. I am definitely confused with the usage of disk plugin. I can write an exec plugin and

How to configure telegraf to send a folder-size to influxDB

徘徊边缘 提交于 2019-12-08 03:56:51
问题 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 file for telegraf here vi /etc/telegraf/telegraf.d/influxdbdata_telegraf.conf added this configuration [[inputs.disk]] mount_points = ["/var/lib/influxdb/hh/"] now I try to query the data from influxDB, and I don't see this. But I see the other