Monasca Kibana plugin for Keystone authentication
Go to file
Witek Bedyk b5843673c3 Add CONTRIBUTING.rst
Change-Id: I0c329856ef7408a1b8fab393bb8acd0badbc50b1
2020-06-18 12:34:19 +00:00
playbooks Adding .zuul job for building plugin 2020-06-10 09:19:42 +02:00
server Adding .zuul job for building plugin 2020-06-10 09:19:42 +02:00
.babelrc Initial commit 2016-02-23 11:05:03 +01:00
.eslintrc.json Adding .zuul job for building plugin 2020-06-10 09:19:42 +02:00
.gitignore Initial commit 2016-02-23 11:05:03 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:35:32 +00:00
.jshintrc Revert "Revert "Add Multi-Tenancy for keystone plugin"" 2017-01-04 11:09:59 +01:00
.zuul.yaml Adding build-monasca-kibana-plugin to gate jobs. 2020-06-18 13:55:10 +02:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2020-06-18 12:34:19 +00:00
LICENSE Initial commit 2016-02-23 11:05:03 +01:00
README.rst Upgrade monasca-kibana-plugin for Elkstack update 2020-04-23 18:38:53 +02:00
build_monasca_kibana_plugin.sh Adding .zuul job for building plugin 2020-06-10 09:19:42 +02:00
gulpfile.js Upgrade monasca-kibana-plugin for Elkstack update 2020-04-23 18:38:53 +02:00
index.js Adding .zuul job for building plugin 2020-06-10 09:19:42 +02:00
package.json Adding .zuul job for building plugin 2020-06-10 09:19:42 +02:00

README.rst

Monasca Kibana plugin

Keystone authentication support and multi-tenancy for Kibana 7.3.x

Build

After installing Node JS 10.15.2 and yarn, do the following to initiate Kibana development environment.

git clone https://github.com/elastic/kibana --branch 7.3
cd kibana

Clone the plugin to plugins/ inside the environment and run.

yarn kbn bootstrap
cd plugins/monasca-kibana-plugin
yarn build

Installation

Requires a working version of Kibana. The kibana configuration file (/opt/kibana/config/kibana.yml) should be updated where keystone_port should be the keystone admin port (default: 35357) not the keystone member port (default: 5000):

monasca-kibana-plugin.port: ${keystone_port}
monasca-kibana-plugin.url: http://${keystone_host}
monasca-kibana-plugin.enabled: True
monasca-kibana-plugin.logs: True
monasca-kibana-plugin.events: True
monasca-kibana-plugin.defaultTimeField: '@timestamp'
monasca-kibana-plugin.defaultEventsTimeField: '@timestamp'
monasca-kibana-plugin.logsIndexPrefix: 'logs-<project_id>'
monasca-kibana-plugin.eventsIndexPrefix: 'events-<project_id>'

Then install using the Kibana plugin manager tool:

$ /opt/kibana/bin/kibana-plugin install file:///tmp/kibana/plugins/monasca-kibana-plugin/build/monasca-kibana-plugin-7.3.0.zip
Installing monasca-kibana-plugin
Attempting to transfer from file:///tmp/kibana/plugins/monasca-kibana-plugin/build/monasca-kibana-plugin-7.3.0.zip
Transferring 7567007 bytes....................
Transfer complete
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete

$ /opt/kibana/bin/kibana-plugin list
monasca-kibana-plugin@7.3.0

Now start/restart your Kibana server by running:

$ service kibana restart

Valuable resources: - Kibana plugin notes - https://github.com/nreese/kibana-plugin-notes - Elastic forum - https://discuss.elastic.co