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

No setting for redis database #2219

Closed
efficks opened this issue Feb 13, 2018 · 5 comments
Closed

No setting for redis database #2219

efficks opened this issue Feb 13, 2018 · 5 comments

Comments

@efficks
Copy link

efficks commented Feb 13, 2018

In previous version it was possible to set the redis db with the setting "redisDb".
In 0.0.6, it seems the the setting is migging. Is it a documentation mistake?

@PeterGrace
Copy link
Member

Have a look at https://bosun.org/system_configuration -- specifically the "DBConf" section of the file. The bosun config file is now toml format, and you specify the redis host via the toml config file, specifically the DBConf section.

@efficks
Copy link
Author

efficks commented Feb 13, 2018

@PeterGrace Yes, I've seen this informations.
You can specify, the host and port and the password. But you can't set the Database index (0, 1, 2, etc.)
In the previous version, the setting redisDb was available to indicate which index to use.

@PeterGrace
Copy link
Member

PeterGrace commented Feb 13, 2018

// DBConf stores the connection information for Bosun's internal storage
type DBConf struct {
RedisHost string
RedisDb int
RedisPassword string
LedisDir string
LedisBindAddr string
}

It appears that "RedisDb" should work for that setting, but I agree that the documentation is ambiguous about that setting.

@PeterGrace
Copy link
Member

Issued PR to update docs: #2220

@efficks
Copy link
Author

efficks commented Feb 13, 2018

@PeterGrace Thank you

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

No branches or pull requests

3 participants