METRON-745: Create Error Dashboards (justinleet via cestella) closes apache/incubator-metron#475
Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/b2e46f57 Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/b2e46f57 Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/b2e46f57 Branch: refs/heads/master Commit: b2e46f57402536dc984a80db4e923975bb9015b0 Parents: 29a0c18 Author: justinleet <justinjl...@gmail.com> Authored: Thu Mar 9 13:48:08 2017 -0500 Committer: cstella <ceste...@gmail.com> Committed: Thu Mar 9 13:48:08 2017 -0500 ---------------------------------------------------------------------- metron-deployment/README.md | 17 + .../4.5.1/package/scripts/dashboard/dashboard.p | 2448 ++++++++++++------ .../CURRENT/package/files/error_index.template | 10 +- .../roles/kibana/templates/kibana-index.json | 84 +- .../files/es_templates/error_index.template | 10 +- .../compose/kibana/conf/kibana-index.json | 86 +- 6 files changed, 1759 insertions(+), 896 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/b2e46f57/metron-deployment/README.md ---------------------------------------------------------------------- diff --git a/metron-deployment/README.md b/metron-deployment/README.md index b973353..3c9b339 100644 --- a/metron-deployment/README.md +++ b/metron-deployment/README.md @@ -176,6 +176,23 @@ The output RPM files will land in `target/RPMS/noarch`. They can be installed w rpm -i <package> ``` +## Kibana Dashboards + +The dashboards installed by the Kibana custom action are managed by the dashboard.p file. This file is created by exporting existing dashboards from a running Kibana instance. + +To create a new version of the file, make any necessary changes to Kibana (e.g. on quick-dev), and export with the appropriate script. + +``` +python packaging/ambari/metron-mpack/src/main/resources/common-services/KIBANA/4.5.1/package/scripts/dashboard/dashboardindex.py \ +$ES_HOST 9200 \ +packaging/ambari/metron-mpack/src/main/resources/common-services/KIBANA/4.5.1/package/scripts/dashboard/dashboard.p -s +``` + +Build the Ambari Mpack to get the dashboard updated appropriately. + +Once the MPack is installed, run the Kibana service's action "Load Template" to install dashboards. This will completely overwrite the .kibana in Elasticsearch, so use with caution. + + ## TODO - Support Ubuntu deployments