Giter VIP home page Giter VIP logo

kibana-buildpack's Introduction

Scalingo buildpack for Kibana

This buildpack downloads and installs Kibana into a Scalingo app image.

Compatibility

Tested against Kibana 7.10.2 - ES 7.10.2

Usage

To deploy your own Kibana, you've to do the following:

$ git init
$ scalingo create my-kibana
$ scalingo env-set BUILDPACK_URL=https://github.com/Scalingo/kibana-buildpack

# If you don't already have an elasticsearch instance from another app
$ scalingo addons-add scalingo-elasticsearch elasticsearch-sandbox
# If you already have the ES instance, refer its URL
$ scalingo env-set ELASTICSEARCH_URL="http://user:password@host:port"

$ echo 'web: kibana --port $PORT' > Procfile
$ git add Procfile
$ git commit -m "Prepare Kibana for Scalingo deployment"
$ git push scalingo master

That's it, your Kibana is live! You may have to wait a few seconds for it to create its indexes, then refresh and the dashboard will be available.

Elasticsearch Configuration

HTTPS with self-signed certificate

Use the environment variable ELASICSEARCH_TLS_CA_URL to specify an URL to download the certificate from

Alternatively you can add the CA to your GIT repository and configure its path with the variable ELASTICSEARCH_TLS_CA_PATH (example: ca.crt)

Plugins

You may want to install plugins to your Kibana installation like logtrail. To do that, just create a file kibana-plugins with the urls of the plugins you wish to install.

Example of kibana-plugins file:

https://github.com/sivasamyk/logtrail/releases/download/v0.1.18/logtrail-5.5.0-0.1.18.zip

Plugins configuration

You may want to configure your plugins. To do that, just create a file 'plugins-config' with the local path of your config file and the path where this config file should be stored in the plugins directory.

Example of 'plugins-config' for the 'logtrail.json' file:

logtrail.json:logtrail/logtrail.json

Security

If bother environment variables KIBANA_USER and KIBANA_PASSWORD are defined, we'll deploy nginx alongside Kibana. All the requests will be authenticating by nginx before being proxied to Kibana. The latter is not longer directly reachable from the Internet.

Extra configuration

  • KIBANA_VERSION: Kibana version to install (e.g. 6.8.23)
  • DOWNLOAD_URL: Source of the kibana archive, default is: https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz
  • LOG_LEVEL: Specify the logging level of Kibana. Set the logging.root.level configuration key in the Kibana config file. Options are all, fatal, error, warn, info, debug, trace, off. Default is info.

kibana-buildpack's People

Contributors

brandon-welsch avatar curzolapierre avatar cyrille-sg avatar etiennem avatar frzk avatar john-scalingo avatar josephpage avatar khoan avatar nz avatar sihamais avatar soulou avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

kibana-buildpack's Issues

[Nginx] Invalid configuration on authentication that is longer than 76 chars encoded in base64

The issue lies here: https://github.com/Scalingo/kibana-buildpack/blob/master/bin/compile#L165
By default base64 wraps lines after 76 chars. So if the encoded string is longer than 76 chars a \n will be inserted in the string.

This makes nginx configuration invalid https://github.com/Scalingo/kibana-buildpack/blob/master/conf/nginx.conf.erb#L78 and a \n will be inserted in the HEADER part of the HTTP request making it invalid.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.