Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request to connect to SSL-enabled influxdb #43

Open
mylesuyema opened this issue Aug 19, 2017 · 3 comments
Open

Feature Request to connect to SSL-enabled influxdb #43

mylesuyema opened this issue Aug 19, 2017 · 3 comments

Comments

@mylesuyema
Copy link

It's fairly simply to enable SSL on influxdb, and grafana can also utilize https to the data source without a problem, but the isilon_data_insights_connector does not, and gives useless error message to boot.

[root@isilon-stats isilon_data_insights_connector]# ./isi_data_insights_d.py start
Failed to connect to InfluxDB server at XXX.YYY.ZZZ.155:8086 database: isi_data_insights.
ERROR:

@apecoraro
Copy link
Contributor

It looks like it should be fairly easy to add this type of capability. I think I'd just have to add a configuration parameter to specify whether or not to use ssl for connecting to InfluxDB.

In the mean time you might be able to work around the problem by modifying the code yourself.
On lines 62 through 65 of influxdb_plugin.py change this:

    g_client = InfluxDBClient(host=influxdb_host, port=influxdb_port,
                              database=influxdb_name,
                              username=influxdb_username,
                              password=influxdb_password)

to this:

    g_client = InfluxDBClient(host=influxdb_host, port=influxdb_port,
                              database=influxdb_name,
                              username=influxdb_username,
                              password=influxdb_password,
                              ssl=True)

@apecoraro
Copy link
Contributor

FYI, here are the reference docs for InfluDBClient describing the ssl parameter and you might also need to add a verify_ssl parameter depending on how you have InfluxDB configured.

http://influxdb-python.readthedocs.io/en/latest/api-documentation.html#influxdb.InfluxDBClient

@mylesuyema
Copy link
Author

Yep looks ssl=True is working so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants