influxdb-python icon indicating copy to clipboard operation
influxdb-python copied to clipboard

any support for influxdbiox ?

Open yutiansut opened this issue 4 years ago • 1 comments

hi there i'm just using the influxdbiox with rust server i found that the influxdbiox serve on 8080 with HTTP port and it also support for INFLUXDB LINE PORTOCOL,

so, is there any support for python sdk to support the influxdbiox also?

yutiansut avatar Feb 08 '21 17:02 yutiansut

here is my result for influxdbiox while using influxdb client

client = InfluxDBClient('localhost', 8080, 'root', 'root', 'example')
client.create_database('example')
client.write_points(json_body)
result = client.query('select value from cpu_load_short;')
print("Result: {0}".format(result))
 .\influxdb_iox.exe
Feb 09 00:58:52.219  WARN influxdb_iox::influxdb_ioxd: NO PERSISTENCE: using memory for object storage
Feb 09 00:58:52.222  WARN influxdb_iox::influxdb_ioxd: server ID not set. ID must be set via the INFLUXDB_IOX_ID config or API before writing or querying data.
Feb 09 00:58:52.231  INFO influxdb_iox::influxdb_ioxd: gRPC server listening bind_address=127.0.0.1:8082
Feb 09 00:58:52.234  INFO influxdb_iox::influxdb_ioxd: HTTP server listening bind_address=127.0.0.1:8080
InfluxDB IOx server ready
Feb 09 01:05:14.203  INFO influxdb_iox::influxdb_ioxd::http: Processing request request=Request { method: POST, uri: /query?q=CREATE+DATABASE+%22example%22&db=example, version: HTTP/1.1, headers: {"host": "localhost:8080", "user-agent": "python-requests/2.24.0", "accept-encoding": "gzip, deflate", "accept": "application/x-msgpack", "connection": "close", "content-type": "application/json", "content-length": "0", "authorization": "Basic cm9vdDpyb290"}, body: Body(Empty) }
Feb 09 01:05:14.206  INFO influxdb_iox::influxdb_ioxd::http: Successfully processed request response=Response { status: 404, version: HTTP/1.1, headers: {"content-type": "text/plain", "x-powered-by": "Routerify v2.0.0-beta-2"}, body: Body(Full(b"Not Found")) }

yutiansut avatar Feb 08 '21 17:02 yutiansut