Skip to content

Commit bf455d1

Browse files
authored
chore: default port changed to 8086 (#151)
1 parent a057b1c commit bf455d1

28 files changed

+53
-47
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
PIPENV_VENV_IN_PROJECT: true
6060
ENABLED_CISO_8601: << parameters.enabled-ciso-8601 >>
6161
- image: quay.io/influxdb/<< parameters.influxdb-image >>
62+
environment:
63+
INFLUXD_HTTP_BIND_ADDRESS: :8086
6264
steps:
6365
- prepare
6466
- client-test:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 1.11.0 [unreleased]
22

3+
### API
4+
1. [#151](https://github.com/influxdata/influxdb-client-python/pull/151): Default port changed from 9999 -> 8086
5+
36
## 1.10.0 [2020-08-14]
47

58
### Features

README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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()

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ Both request header and body will be logged to standard output.
3636

3737
.. code-block:: python
3838
39-
_client = InfluxDBClient(url="http://localhost:9999", token="my-token", debug=True, org="my-org")
39+
_client = InfluxDBClient(url="http://localhost:8086", token="my-token", debug=True, org="my-org")

examples/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
bucket = "my-bucket"
88

9-
client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org")
9+
client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org")
1010

1111
write_api = client.write_api(write_options=SYNCHRONOUS)
1212
query_api = client.query_api()

examples/import_data_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def parse_row(row: OrderedDict):
6060
.from_iterable(DictReader(open('vix-daily.csv', 'r'))) \
6161
.pipe(ops.map(lambda row: parse_row(row)))
6262

63-
client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org", debug=True)
63+
client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org", debug=True)
6464

6565
"""
6666
Create client that writes data in batches with 50_000 items.

examples/import_data_set_multiprocessing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class InfluxDBWriter(multiprocessing.Process):
4141
def __init__(self, queue):
4242
multiprocessing.Process.__init__(self)
4343
self.queue = queue
44-
self.client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org", debug=False)
44+
self.client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org", debug=False)
4545
self.write_api = self.client.write_api(
4646
write_options=WriteOptions(write_type=WriteType.batching, batch_size=50_000, flush_interval=10_000))
4747

@@ -199,7 +199,7 @@ def init_counter(counter, progress, queue):
199199
'|> rename(columns: {_time: "pickup_datetime"})' \
200200
'|> drop(columns: ["_start", "_stop"])|> limit(n:10, offset: 0)'
201201

202-
client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org", debug=False)
202+
client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org", debug=False)
203203
result = client.query_api().query(query=query)
204204

205205
"""

examples/ingest_dataframe_default_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
df = pd.read_csv("vix-daily.csv")
1414
print(df.head())
1515

16-
client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org")
16+
client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org")
1717

1818
"""
1919
Ingest DataFrame with default tags

examples/iot_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def line_protocol(temperature):
6161
ops.distinct_until_changed(),
6262
ops.map(lambda temperature: line_protocol(temperature)))
6363

64-
_db_client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org", debug=True)
64+
_db_client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org", debug=True)
6565

6666
"""
6767
Create client that writes data into InfluxDB

examples/nanosecond_precision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313
Prepare client.
1414
"""
15-
client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org")
15+
client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org")
1616

1717
write_api = client.write_api(write_options=SYNCHRONOUS)
1818
query_api = client.query_api()

0 commit comments

Comments
 (0)