summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--conf/glances.conf1
-rw-r--r--docs/gw/influxdb.rst3
-rw-r--r--docs/man/glances.12
-rw-r--r--glances/exports/glances_influxdb.py7
5 files changed, 13 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index f2810755..834a1a70 100644
--- a/NEWS
+++ b/NEWS
@@ -12,7 +12,8 @@ Enhancements and new features:
* Add authprovider for cassandra export (thanks to @EmilienMottet) #1395
* Curses's browser server list sorting added (thanks to @limfreee) #1396
* ElasticSearch: add date to index, unbreak object push (thanks to @genevera) # 1438
- * Performance issue with large folder #1491
+ * Performance issue with large folder #1491
+ * Can't connect to influxdb with https enabled #1497
Bugs corrected:
diff --git a/conf/glances.conf b/conf/glances.conf
index a161be41..0f2cff82 100644
--- a/conf/glances.conf
+++ b/conf/glances.conf
@@ -341,6 +341,7 @@ style=DarkStyle
# https://influxdb.com/
host=localhost
port=8086
+protocol=http
user=root
password=root
db=glances
diff --git a/docs/gw/influxdb.rst b/docs/gw/influxdb.rst
index 3c7025a5..a14f75c8 100644
--- a/docs/gw/influxdb.rst
+++ b/docs/gw/influxdb.rst
@@ -12,6 +12,7 @@ following:
[influxdb]
host=localhost
port=8086
+ protocol=http
user=root
password=root
db=glances
@@ -27,6 +28,8 @@ Glances generates a lot of columns, e.g., if you have many running
Docker containers, so you should use the ``tsm1`` engine in the InfluxDB
configuration file (no limit on columns number).
+Note: if you want to use SSL, please set 'protocol=https'.
+
Grafana
-------
diff --git a/docs/man/glances.1 b/docs/man/glances.1
index 8131c409..5185a23f 100644
--- a/docs/man/glances.1
+++ b/docs/man/glances.1
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
-.TH "GLANCES" "1" "Jun 12, 2019" "3.1.1b0" "Glances"
+.TH "GLANCES" "1" "Jul 03, 2019" "3.1.1b0" "Glances"
.SH NAME
glances \- An eye on your system
.
diff --git a/glances/exports/glances_influxdb.py b/glances/exports/glances_influxdb.py
index 24ee53fa..78c42f89 100644
--- a/glances/exports/glances_influxdb.py
+++ b/glances/exports/glances_influxdb.py
@@ -41,6 +41,7 @@ class Export(GlancesExport):
self.db = None
# Optionals configuration keys
+ self.protocole = 'http'
self.prefix = None
self.tags = None
@@ -49,7 +50,9 @@ class Export(GlancesExport):
mandatories=['host', 'port',
'user', 'password',
'db'],
- options=['prefix', 'tags'])
+ options=['protocol',
+ 'prefix',
+ 'tags'])
if not self.export_enable:
sys.exit(2)
@@ -64,6 +67,8 @@ class Export(GlancesExport):
try:
db = InfluxDBClient(host=self.host,
port=self.port,
+ ssl=(self.protocol.lower() == 'https'),
+ verify_ssl=False,
username=self.user,
password=self.password,
database=self.db)