-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:elastic/kibana into metrics
- Loading branch information
Showing
283 changed files
with
4,723 additions
and
830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ selenium | |
*.swp | ||
*.swo | ||
*.out | ||
src/ui_framework/doc_site/build/*.js* | ||
ui_framework/doc_site/build/*.js* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
docs/development/plugin/development-elasticsearch.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[[development-elasticsearch]] | ||
=== Communicating with Elasticsearch | ||
|
||
Kibana exposes two clients on the server and browser for communicating with elasticsearch. | ||
There is an 'admin' client which is used for managing Kibana's state, and a 'data' client for all | ||
other requests. The clients use the https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html[elasticsearch.js library]. | ||
|
||
[float] | ||
[[client-server]] | ||
=== Server clients | ||
|
||
Server clients are exposed through the elasticsearch plugin. | ||
[source,javascript] | ||
---- | ||
const adminCluster = server.plugins.elasticsearch.getCluster('admin); | ||
const dataCluster = server.plugins.elasticsearch.getCluster('data); | ||
//ping as the configured elasticsearch.user in kibana.yml | ||
adminCluster.callWithInternalUser('ping'); | ||
//ping as the user specified in the current requests header | ||
adminCluster.callWithRequest(req, 'ping'); | ||
---- | ||
|
||
[float] | ||
[[client-browser]] | ||
=== Browser clients | ||
|
||
Browser clients are exposed through AngularJS services. | ||
|
||
[source,javascript] | ||
---- | ||
uiModules.get('kibana') | ||
.run(function (esAdmin, es) { | ||
es.ping() | ||
.then(() => esAdmin.ping()) | ||
.catch(err => { | ||
console.log('error pinging servers'); | ||
}); | ||
}); | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[[tribe]] | ||
== Using Kibana with Tribe nodes | ||
|
||
Kibana can be configured to connect to a https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-tribe.html[tribe node] for data retrieval. Because tribe nodes can't create indices, Kibana additionally | ||
requires a separate connection to a node to maintain state. When configured, searches and visualizations will retrieve data using | ||
the tribe node and administrative actions (such as saving a dashboard) will be sent to non-tribe node. | ||
|
||
[float] | ||
[[tribe-configuration]] | ||
=== Configuring Kibana for tribe nodes | ||
|
||
Tribe nodes take all of the same configuration options used when configuring elasticsearch in `kibana.yml`. Tribe options | ||
are prefixed with `elasticsearch.tribe` and at a minimum requires a url: | ||
[source,text] | ||
---- | ||
elasticsearch.url: "<your_administration_node>" | ||
elasticsearch.tribe.url: "<your_tribe_node>" | ||
---- | ||
|
||
When configured to use a tribe node, actions that modify Kibana's state will be sent to the node at `elasticsearch.url`. Searches and visualizations | ||
will retrieve data from the node at `elasticsearch.tribe.url`. It's acceptable to use a node for `elasticsearch.url` that is part of one of the clusters that | ||
a tribe node is pointing to. | ||
|
||
The full list of configurations can be found at <<settings>>. | ||
|
||
[float] | ||
[[tribe-limitations]] | ||
=== Limitations | ||
|
||
Due to the ambiguity of which cluster is being used, certain features are disabled in Kibana: | ||
|
||
* Console | ||
* Managing users and roles with the x-pack plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import devTools from 'ui/registry/dev_tools'; | ||
devTools.register(() => ({ | ||
order: 1, | ||
name: 'console', | ||
display: 'Console', | ||
url: '#/dev_tools/console' | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.