When you have successfully provisioned a Private Space-accessible cluster via Bonsai, you might be interested in looking at it via Kibana. However there is one problem: our Kibana server doesn't have network access to your private cluster. This is by design, as you don't want just anyone to be able to access your cluster from the public internet.
So what are your options?
We recommend deploying a free dyno in your Heroku Private Space that can then be configured to access your cluster. It can do this securely because the Kibana dyno will run in your Heroku Private Space.
Kibana maker is a simple script that we wrote that helps bootstrap a Heroku Application by configuring a small git repository and pushing that up to a heroku git repository.
You can pull down a copy of kibana-maker using the following command
cd /tmp && curl -s https://gist.githubusercontent.com/dansimpson/59dc310bda6490af31e6ea1717bc6b8f/raw/89e11a994e835ce785d155a7ab9d759f03089dec/kibana-maker.rb -o kibana-maker && chmod +x kibana-maker
- Identify the slug of your private space in the Heroku App
- Identify the URL of your cluster in the Bonsai App
- Note the version of Elasticsearch you are using
- Using kibana-maker, run the following command
cd /tmp && kibana-maker --name= --url= --space= --version=
- You should now have a functioning Kibana instance running in your Heroku Private space