-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Updating docs about how to create new dashboards #5229
Updating docs about how to create new dashboards #5229
Conversation
b80a5af
to
6d13b70
Compare
@dedemorton Ready for the review. I think I am done with the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some comments. Overall looks good, but I did not have time to test the steps (only had time to review for readability).
@@ -1,17 +1,9 @@ | |||
[[new-dashboards]] | |||
== Creating New Kibana Dashboards for a Beat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Title is a bit long. Let's add an abbreviated title so the TOC is cleaner. It's good to mention "Beat" in the heading for SEO, but not necessary in the TOC where the context is clear.
== Creating New Kibana Dashboards for a Beat or Beat module
++++
<titleabbrev>Creating New Kibana Dashboards</titleabbrev>
++++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/devguide/newdashboards.asciidoc
Outdated
a special index in Elasticsearch. By default the index is `.kibana`, but you can specify a different index. | ||
|
||
When you're done making changes to the dashboards in Kibana, you can use the `export_dashboards` script to <<export-dashboards,export the dashboards>>, along with all dependencies, to a local directory. | ||
When contributing to Beats development, you may want to add new dashboards or customize the existing ones. When you're done making changes to the dashboards in Kibana, you can use the `export_dashboards` script to <<export-dashboards,export the dashboards>>, along with all dependencies, to a local directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove line 4 and work some of the details into this section by saying:
When contributing to Beats development, you may want to add new dashboards or
customize the existing ones. To get started, you can
<<import-dashboards,import the Kibana dashboards>> that come with the official
Beats and use them as a starting point for your own dashboards. When you're done
making changes to the dashboards in Kibana, you can use the `export_dashboards`
script to <<export-dashboards,export the dashboards>>, along with all
dependencies, to a local directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/devguide/newdashboards.asciidoc
Outdated
|
||
NOTE: Starting with Beats 5.0.0, the Kibana dashboards are not released as part of the Beat package. They are released in a separate | ||
package called `beats-dashboards`. | ||
The official Beats come with Kibana dashboards, and starting with 6.0.0, they are part of the Beat package. You can use the Beat executable to <<import-dashboards,import the dashboards>> into Kibana. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ideas seem a bit out of sequence here. To fix this:
- Move line 4 to the topic about importing dashboards (see my comments later).
- Make the changes recommended on line 6.
docs/devguide/newdashboards.asciidoc
Outdated
You can use the `import_dashboards` script to import all the dashboards and the index pattern for a Beat, including the dependencies such as visualizations and searches. | ||
The `import_dashboards` script is available under | ||
https://github.com/elastic/beats/tree/master/dev-tools/cmd/import_dashboards[beats/dev-tools/cmd/import_dashboards]. It's also available in each Beat package under the `scripts` directory. | ||
You can use the Beat executable to import all the dashboards and the index pattern for a Beat, including the dependencies such as visualizations and searches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the content from line 4 to the start of this section. One small concern I have is that users might look furtively on the download page for an executable called "Beat". So I'd suggest a minor change:
The official Beats come with Kibana dashboards, and starting with 6.0.0, they
are part of every Beat package. You can use the Beat executable to import all
the dashboards and the index pattern for a Beat, including the dependencies
such as visualizations and searches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/devguide/newdashboards.asciidoc
Outdated
https://github.com/elastic/beats/tree/master/dev-tools/cmd/import_dashboards[beats/dev-tools/cmd/import_dashboards]. It's also available in each Beat package under the `scripts` directory. | ||
You can use the Beat executable to import all the dashboards and the index pattern for a Beat, including the dependencies such as visualizations and searches. | ||
|
||
Importing the dashboards can be done as part of the `setup` phase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this active to avoid passive voice:
To import the dashboards, run the setup
command:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/devguide/newdashboards.asciidoc
Outdated
*`-cacert <certificate_authority>`*:: | ||
The Certificate Authority to use for server verification. | ||
*`setup.dashboards.directory=<local_dir>`*:: | ||
Local directory that contains the saved dashboards and their dependencies. The default value is `kibana` directory, available in the Beat package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to:
The default value is the `kibana` directory available in the Beat package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/devguide/newdashboards.asciidoc
Outdated
|
||
[[build-dashboards]] | ||
=== Building Your Own Beat Dashboards | ||
|
||
For visualizing the dashboards of a Beat in Kibana you need to have configured: | ||
NOTE:: If you want to modify a dashboard that comes with a Beat, it's better to modify a copy of the dashboard as the Beat overwrites the dashboards during the setup phase in order to have the latest version. For duplicating a dashboard, just use the `Clone` button from the top of the page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to: "...it's better to modify a copy of the dashboard because the Beat overwrites..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/devguide/newdashboards.asciidoc
Outdated
|
||
The Beat index pattern is generated from the `etc/fields.yml`, where all the fields for a Beat are defined. For each field, besides the `type`, you can configure the | ||
The Beat index pattern is generated from the `fields.yml`, that contains all the fields generated by the Beat. For each field, besides the `type`, you can configure the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users might be confused if we use "generated" to mean a two different things in the same sentence. Maybe it would be better to say:
The Beat index pattern is generated from the `fields.yml`, which contains all
the fields exported by the Beat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/devguide/newdashboards.asciidoc
Outdated
|
||
==== Exporting Kibana 6.0 dashboards and newer | ||
|
||
The `dev-tools/cmd/export_dashboards.go` script helps you export your customized Kibana 6.0 dashboards and newer. You might need to export a single dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a thought missing at the end of this sentence? There is no period, and it just seems to drop off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thanks.
docs/devguide/newdashboards.asciidoc
Outdated
|
||
You can export a single dashboard by passing the dashboard ID in the `-dashboard` flag. | ||
|
||
NOTE:: The dashboard ID is available in the dashboard URL. For example, in case the dashboard URL is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To get the correct note formatting, use NOTE:
(a single colon). Otherwise, you won't get the correct formatting and icon. (There are multiple instances of NOTE:: that need to be fixed.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@dedemorton I addressed all the remarks. Can you please have another look? |
06742ed
to
c7b196e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(cherry picked from commit 94b6298)
(cherry picked from commit f945da9)
This PR is part of #4540, and includes documentation updates in the dev guide about how to import and export Kibana 6.0 dashboards and newer.
cc-ed @dedemorton