@@ -128,7 +128,7 @@ Please follow the `Installation`_ and then run the following:
128128
129129 bucket = " my-bucket"
130130
131- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" )
131+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" )
132132
133133 write_api = client.write_api(write_options = SYNCHRONOUS )
134134 query_api = client.query_api()
@@ -178,7 +178,7 @@ The following options are supported:
178178 .. code-block ::
179179
180180 [influx2]
181- url=http://localhost:9999
181+ url=http://localhost:8086
182182 org=my-org
183183 token=my-token
184184 timeout=6000
@@ -270,7 +270,7 @@ The batching is configurable by ``write_options``\ :
270270 from influxdb_client import InfluxDBClient, Point, WriteOptions
271271 from influxdb_client.client.write_api import SYNCHRONOUS
272272
273- _client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" )
273+ _client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" )
274274 _write_client = _client.write_api(write_options = WriteOptions(batch_size = 500 ,
275275 flush_interval = 10_000 ,
276276 jitter_interval = 2_000 ,
@@ -380,7 +380,7 @@ In a ini configuration file you are able to specify default tags by ``tags`` seg
380380 .. code-block ::
381381
382382 [influx2]
383- url=http://localhost:9999
383+ url=http://localhost:8086
384384 org=my-org
385385 token=my-token
386386 timeout=6000
@@ -415,7 +415,7 @@ Data are writes in an asynchronous HTTP request.
415415 from influxdb_client import InfluxDBClient, Point
416416 from influxdb_client.client.write_api import ASYNCHRONOUS
417417
418- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" )
418+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" )
419419 write_api = client.write_api(write_options = ASYNCHRONOUS )
420420
421421 _point1 = Point(" my_measurement" ).tag(" location" , " Prague" ).field(" temperature" , 25.3 )
@@ -436,7 +436,7 @@ Data are writes in a synchronous HTTP request.
436436 from influxdb_client import InfluxDBClient, Point
437437 from influxdb_client .client.write_api import SYNCHRONOUS
438438
439- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" )
439+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" )
440440 write_api = client.write_api(write_options = SYNCHRONOUS )
441441
442442 _point1 = Point(" my_measurement" ).tag(" location" , " Prague" ).field(" temperature" , 25.3 )
@@ -463,7 +463,7 @@ The API also support streaming ``FluxRecord`` via `query_stream <https://github.
463463 from influxdb_client import InfluxDBClient, Point, Dialect
464464 from influxdb_client.client.write_api import SYNCHRONOUS
465465
466- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" )
466+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" )
467467
468468 write_api = client.write_api(write_options = SYNCHRONOUS )
469469 query_api = client.query_api()
@@ -542,7 +542,7 @@ The ``client`` is able to retrieve data in `Pandas DataFrame <https://pandas.pyd
542542 from influxdb_client import InfluxDBClient, Point, Dialect
543543 from influxdb_client.client.write_api import SYNCHRONOUS
544544
545- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" )
545+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" )
546546
547547 write_api = client.write_api(write_options = SYNCHRONOUS )
548548 query_api = client.query_api()
@@ -654,7 +654,7 @@ If you would like to import gigabytes of data then use our multiprocessing examp
654654 .from_iterable(DictReader(open (' vix-daily.csv' , ' r' ))) \
655655 .pipe(ops.map(lambda row : parse_row(row)))
656656
657- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" , debug = True )
657+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" , debug = True )
658658
659659 """
660660 Create client that writes data in batches with 50_000 items.
@@ -763,7 +763,7 @@ Efficiency write data from IOT sensor
763763 ops.distinct_until_changed(),
764764 ops.map(lambda temperature : line_protocol(temperature)))
765765
766- _db_client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" , debug = True )
766+ _db_client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" , debug = True )
767767
768768 """
769769 Create client that writes data into InfluxDB
@@ -890,7 +890,7 @@ Gzip support
890890
891891 from influxdb_client import InfluxDBClient
892892
893- _db_client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" , enable_gzip = True )
893+ _db_client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" , enable_gzip = True )
894894
895895.. marker-gzip-end
896896
@@ -926,7 +926,7 @@ For more info about how configure HTTP retry see details in `urllib3 documentati
926926 from influxdb_client import InfluxDBClient
927927
928928 retries = Retry(connect = 5 , read = 2 , redirect = 5 )
929- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" , retries = retries)
929+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" , retries = retries)
930930
931931 Nanosecond precision
932932^^^^^^^^^^^^^^^^^^^^
@@ -956,7 +956,7 @@ that is replacement for python ``datetime.datetime`` object and also you should
956956 """
957957 Prepare client.
958958 """
959- client = InfluxDBClient(url = " http://localhost:9999 " , token = " my-token" , org = " my-org" )
959+ client = InfluxDBClient(url = " http://localhost:8086 " , token = " my-token" , org = " my-org" )
960960
961961 write_api = client.write_api(write_options = SYNCHRONOUS )
962962 query_api = client.query_api()
0 commit comments