这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@nathanielc
Copy link
Contributor

Adds configuration so that you can connect to InfluxDB with TLS and/or a username and password.

@gbrayut
Copy link
Contributor

gbrayut commented Sep 23, 2015

LGTM.

Compiled an ran it locally with no changes to bosun/influxdb settings and it still works as expected. Changed /etc/opt/influxdb/influxdb.conf to use auth-enabled = true under the http section, used /opt/influxdb/influx to create a user for bosun, and added the following settings to the bosun config file

[root@gbcentos7 influxdb]# head /home/gbray/go/src/bosun.org/cmd/bosun/gbcentos7.conf
tsdbHost = gbcentos7:4242
influxHost = gbcentos7:8086
influxUsername = bosun
influxPassword = bosun
graphiteHost = gbcentos7:81
smtpHost = gbcentos7:25
emailFrom = bosun@localhost
httpListen = :80
timeAndDate = 202,75,179,136
stateFile = /home/gbray/go/src/bosun.org/cmd/bosun.state

After restarting bosun and influxdb the influx("opentsdb",'''SELECT value from "os.mem.percent_free" group by host''',"5m","") expression still works as expected.

gbrayut added a commit that referenced this pull request Sep 23, 2015
cmd/bosun: add complete influx cred config, docs: update docs to reflect new config
@gbrayut gbrayut merged commit 6f67e1e into bosun-monitor:master Sep 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants