Influxdb2 #2

Merged
d_mcknight merged 11 commits from github/fork/gcrevell/influxdb2 into influxdb2 2023-06-22 21:07:06 -07:00
Showing only changes of commit ac25883dc4 - Show all commits

View file

@ -158,6 +158,7 @@ class INIParser(object):
verify_ssl = boolcheck(env.get('VRKN_INFLUXDB2_VERIFY_SSL', self.config.get('influx2', 'verify_ssl'))) verify_ssl = boolcheck(env.get('VRKN_INFLUXDB2_VERIFY_SSL', self.config.get('influx2', 'verify_ssl')))
org = env.get('VRKN_INFLUXDB2_ORG', self.config.get('influx2', 'org')) org = env.get('VRKN_INFLUXDB2_ORG', self.config.get('influx2', 'org'))
bucket = env.get('VRKN_INFLUXDB2_BUCKET', self.config.get('influx2', 'bucket'))
token = env.get('VRKN_INFLUXDB2_TOKEN', self.config.get('influx2', 'token')) token = env.get('VRKN_INFLUXDB2_TOKEN', self.config.get('influx2', 'token'))
timeout = env.get('VRKN_INFLUXDB2_TIMEOUT', self.config.get('influx2', 'timeout')) timeout = env.get('VRKN_INFLUXDB2_TIMEOUT', self.config.get('influx2', 'timeout'))
except NoOptionError as e: except NoOptionError as e:
@ -166,7 +167,7 @@ class INIParser(object):
return return
self.influx_server = Influx2Server(url=url, token=token, org=org, timeout=timeout, ssl=ssl, self.influx_server = Influx2Server(url=url, token=token, org=org, timeout=timeout, ssl=ssl,
verify_ssl=verify_ssl) verify_ssl=verify_ssl, bucket=bucket)
else: else:
try: try:
url = self.url_check(env.get('VRKN_INFLUXDB_URL', self.config.get('influxdb', 'url')), url = self.url_check(env.get('VRKN_INFLUXDB_URL', self.config.get('influxdb', 'url')),