Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify dashboard handling for developers #1109

Merged
merged 1 commit into from Mar 7, 2016

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Mar 4, 2016

All dashboards from beats-dashboards were moved to their specific beats.
Two new functions were introduced in the Makefile to manage import / export of the files from Kibana:

  • make kibana-export
  • make kibana-import

If KIBANA_ES is not running on localhost, KIBANA_ES has to be overwritten. Be aware that the current implementation is to simplify development of dashboards an is not intended to serve yet for the deployment of dashboards of the users. This should be implemented in a second step.

General and reusable dashboard components were moved to libbeat. These should be in a second step automatically move to each beat when running make update similar to what is done with libbeat.yml.

Further:

  • Basic Redis Dashboard in modules were added
  • Kibana dir in modules is called .kibana to prevent naming conflicts
  • README for scripts folder extended
  • Add make beats-dashboards to generate dashboards for https://github.com/elastic/beats-dashboards repo
  • Add make kibana to metricbeat to collect kibana files from modules

Currently I'm not happy with the naming of etc/kibana but we should move forward with this and find a better solution on the way.

This change is also needed for Metricbeat where the dashboards will be part of each module. This can potentially also be used for packetbeat modules.

All dashboards from beats-dashboards were moved to their specific beats.
Two new functions were introduced in the Makefile to manage import / export of the files from Kibana:

* `make kibana-export`
* `make kibana-import`

If `KIBANA_ES` is not running on localhost, KIBANA_ES has to be overwritten. Be aware that the current implementation is to simplify development of dashboards an is not intended to serve yet for the deployment of dashboards of the users. This should be implemented in a second step.

General and reusable dashboard components were moved to libbeat. These should be in a second step automatically move to each beat when running `make update` similar to what is done with `libbeat.yml`.

Further:
* Basic Redis Dashboard in modules were added
* Kibana dir in modules is called .kibana to prevent naming conflicts
* README for scripts folder extended
* Add `make beats-dashboards` to generate dashboards for https://github.com/elastic/beats-dashboards repo
* Add `make kibana` to metricbeat to collect kibana files from modules

Currently I'm not happy with the naming of etc/kibana but we should move forward with this and find a better solution on the way.

This change is also needed for Metricbeat where the dashboards will be part of each module. This can potentially also be used for packetbeat modules.

# Collects all dashboards and generates dashboard folder for https://github.com/elastic/beats-dashboards/tree/master/dashboards
.PHONY: beats-dashboards
beats-dashboards:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monicasarbu I checked that this still generates the exact same output as we have currently in beats-dashboard repository. That should simplify to keep both in sync.

@ruflin
Copy link
Member Author

ruflin commented Mar 7, 2016

@monicasarbu Thanks for the review. I left out all the authentication and special features like index setting here, as I think developer should use our default environment to create and check dashboards: https://github.com/elastic/beats/pull/1109/files#diff-e5ec6ac49971e002393d679796dccb59R17 Like this they always use the newest version and we all test with the same environment.

The above implementation is not intended to replace the load.sh scripts as is for development only.

@ruflin ruflin changed the title Move dashboards to each beat Simplify dashboard handling for developers Mar 7, 2016
monicasarbu added a commit that referenced this pull request Mar 7, 2016
Simplify dashboard handling for developers
@monicasarbu monicasarbu merged commit 4f79d94 into elastic:master Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants