mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-24 22:37:03 +00:00
recordinflux supports influx version 2
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
@@ -44,7 +44,10 @@ class RecordInflux(LFCliBase):
|
||||
self.influx_token = _influx_token
|
||||
self.influx_bucket = _influx_bucket
|
||||
self.url = "http://%s:%s"%(self.influx_host, self.influx_port)
|
||||
self.client = influxdb_client.InfluxDBClient(url=self.url, token=self.influx_token, org=self.influx_org, debug=_debug_on)
|
||||
self.client = influxdb_client.InfluxDBClient(url=self.url,
|
||||
token=self.influx_token,
|
||||
org=self.influx_org,
|
||||
debug=_debug_on)
|
||||
self.write_api = self.client.write_api(write_options=SYNCHRONOUS)
|
||||
#print("org: ", self.influx_org)
|
||||
#print("token: ", self.influx_token)
|
||||
|
||||
Reference in New Issue
Block a user