I just started using Influxdb client for python and I’m kind of lost on how to access influxdb data base (on a remote server) in order to query some data from it and store the imported data in a data frame.
I found in the documentation, the following lines to access influxdb of a remote host and to query the data:
client = InfluxDBClient(host=‘mydomain.com’, port=8086, username=‘myuser’, password=‘mypass’ ssl=True, verify_ssl=True)
client.query(‘SELECT “duration” FROM “pyexample”.“autogen”.“brushEvents” WHERE time > now() - 4d GROUP BY “user”’)
1- I don’t know how to get the ‘host’ and ‘port’ values for the remote host.
2-I don’t know how to store the imported data in a python data frame.
Thanks in advance