[DOCS] Add XPack Reporting to Kibana Guide#12062
Conversation
|
I get this error when I try to build the Kibana docs when I don't have x-pack-kibana cloned next to Kibana: |
|
Is there a reason this is targeting 5.x instead of master? Generally we issue pull requests against master and then backport them to the appropriate branches, even for doc changes |
|
@epixa This integration is targeted for 5.x, so I started there. You're right that it will be pushed to master too though. Please note I've added a new commit that includes new index-all.asciidoc and index-shared.asciidoc files. In my initial tests, this means external users can keep using index.asciidoc, which only has access to open repositories. |
docs/index.asciidoc
Outdated
There was a problem hiding this comment.
The index-shared.asciidoc file was not added to this PR, so I don't think this will build.
There was a problem hiding this comment.
oops, I've added those new files now
docs/index.asciidoc
Outdated
There was a problem hiding this comment.
I can't tell for sure without seeing index-shared, but perhaps this variable name could be a bit more descriptive? Maybe something like repo-state?
There was a problem hiding this comment.
@clintongormley suggested include-xpack, so I'll go with that.
docs/index-shared.asciidoc
Outdated
There was a problem hiding this comment.
Can you preserve the original comment above this to indicate the different possibilities for release-state?
//////////
release-state can be: released | prerelease | unreleased
//////////
docs/index-shared.asciidoc
Outdated
There was a problem hiding this comment.
Can you increase the spacing between these variables and their contents so that they are all inline with each other? The spacing should always equal 2 spaces beyond the largest variable name.
docs/index-shared.asciidoc
Outdated
There was a problem hiding this comment.
Let's exclude the commented out sections that don't exist yet unless there is a specific reason to keep them in. We avoid merging commented out docs or code because it's not clear to future committers why those things are commented out.
clintongormley
left a comment
There was a problem hiding this comment.
LGTM, I've just added two comments
docs/index-shared.asciidoc
Outdated
There was a problem hiding this comment.
This can be defined regardless of the include-xpack setting
docs/index-shared.asciidoc
Outdated
There was a problem hiding this comment.
This can be shortened to:
{include-xpack#}include::{xkb-repo-dir}/reporting/index.asciidoc[]
There was a problem hiding this comment.
When I tried that, it didn't include the content. Is it okay to leave the ifeval since that works?
docs/index-shared.asciidoc
Outdated
There was a problem hiding this comment.
Sorry, as you point out this syntax doesn't work for includes:
{include-xpack#}include::....
However this syntax does:
ifdef::include-xpack[]
include::{xkb-repo-dir}/reporting/index.asciidoc[]
endif::include-xpack[]
and it slightly lighter than ifeval
|
When I enable |
|
I switched up my x-pack-kibana to the recent reporting PR you submitted there, and the error changes to: |
|
@epixa I think you're missing the following parameter, which is required to find the images: |
|
@clintongormley I've switched to using ifdef (and removed the conditional clause around the xkb-repo-dir attribute) per your suggestions. Thanks! |
|
Adding these docs as-is makes the Kibana docs pretty confusing. The Kibana docs never describe how to install x-pack, or even what X-Pack is, and then suddenly there's a section about an x-pack feature, and it's not clear how you get it. The first reporting page you'll see is: xpack-reporting.html, which briefly breezes over what x-pack offers, but it doesn't explain anything about x-pack being a commercial product or that x-pack doesn't come with Kibana by default. It was OK to breeze over this sort of thing in the dedicated x-pack documentation since we could assume a person already has learned about x-pack before going to the docs, but that isn't the case when someone is on the Kibana docs. I could see a couple of ways of addressing this:
My preference is for |
|
I actually have a fairly strong preference for the second option for a couple reasons:
My recommendation would be to:
|
|
Thanks @debadair I've implemented your suggestions! |
|
This PR now contains the bare minimum changes required to address the issue (see issue link at beginning for bigger picture). |
|
The index has now been split into four parts to facilitate re-use elsewhere. |
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
* [DOCS] Add XPack Reporting to Kibana Guide * [DOCS] Add attributes for private vs open repo builds * [DOCS] Add index-shared.asciidoc * [DOCS] Address feedback on index-shared.asciidoc * [DOCS] Add X-Pack introduction to Kibana Guide * [DOCS] Add X-Pack installion to Kibana Guide * [DOCS] Fix duplicate security attribute in index-shared.asciidoc * [DOCS] Further fix duplicate security attribute in index-shared.asciidoc * [DOCS] Revert changes to intro and setup * [DOCS] Split index-shared.asciidoc * [DOCS] Add index-shared5.asciidoc
This PR adds X-Pack information about the "Reporting" feature to the Kibana Reference.
It also adds some attributes and comments that will be used by other future additions.