lmenezes / cerebro

MIT License
5.52k stars 715 forks source link

Automatically use default host to connect to #294

Open Programie opened 6 years ago

Programie commented 6 years ago

In setups with a single host it doesn't make any sense to display the host list to which the user want's to connect (http://cerebro-host:9000/#/connect) as there is only one host to select.

Shouldn't it be possible to omit the host "query" parameter in the URL and just use the default host from the configuration if there is only one?

I our case, Cerebro is running on each Elasticsearch client node with the local Elasticsearch instance configured. So every Cerebro installation only knows one Elasticsearch client node. Automatically picking the host would decrease the number of clicks required to get to the overview.

maver1ck commented 5 years ago

Can we add this as ENV variable ?