mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-29 15:32:25 +03:00
Fix influxdb export for 0.8.
This commit is contained in:
parent
358bb45b4a
commit
83801c4883
@ -20,7 +20,7 @@
|
||||
"""InfluxDB interface class."""
|
||||
|
||||
# Import sys libs
|
||||
from influxdb import InfluxDBClient, client
|
||||
from influxdb.influxdb08 import InfluxDBClient, client
|
||||
import sys
|
||||
|
||||
# Import Glances lib
|
||||
@ -80,7 +80,7 @@ class Export(GlancesExport):
|
||||
self.influxdb_password,
|
||||
self.influxdb_db)
|
||||
try:
|
||||
get_all_db = db.get_database_list()[0].values()
|
||||
get_all_db = [d['name'] for d in db.get_list_database()]
|
||||
except client.InfluxDBClientError as e:
|
||||
logger.critical("Can not connect to InfluxDB database '%s' (%s)" % (self.influxdb_db, e))
|
||||
sys.exit(2)
|
||||
|
Loading…
Reference in New Issue
Block a user