We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e213ecd commit 91eb6d4Copy full SHA for 91eb6d4
README.rst
@@ -126,6 +126,20 @@ Here's a basic example (for more see the examples directory)::
126
127
>>> print("Result: {0}".format(result))
128
129
+If you want to connect to a cluster, you could initialize a ``InfluxDBClusterClient``::
130
+
131
+ $ python
132
133
+ >>> from influxdb import InfluxDBClusterClient
134
135
+ >>> cc = InfluxDBClusterClient(hosts = [('192.168.0.1', 8086),
136
+ ('192.168.0.2', 8086),
137
+ ('192.168.0.3', 8086)],
138
+ username='root',
139
+ password='root',
140
+ database='example')
141
142
+``InfluxDBClusterClient`` has the same methods as ``InfluxDBClient``, it basically is a proxy to multiple InfluxDBClients.
143
144
Testing
145
=======
0 commit comments