Skip to content

Commit 96156ad

Browse files
Merge branch 'master' into np_migration/index_management
2 parents 9acf906 + b661d1d commit 96156ad

File tree

98 files changed

+868
-429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+868
-429
lines changed

docs/getting-started/tutorial-dashboard.asciidoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
=== Add visualizations to a dashboard
33

44
A dashboard is a collection of visualizations that you can arrange and share.
5-
You'll build a dashboard that contains the visualizations you saved during
5+
You'll build a dashboard that contains the visualizations and map that you saved during
66
this tutorial.
77

88
. Open *Dashboard*.
99
. On the Dashboard overview page, click *Create new dashboard*.
10+
. Set the time filter to May 18, 2015 to May 20, 2015.
1011
. Click *Add* in the menu bar.
1112
. Add *Bar Example*, *Map Example*, *Markdown Example*, and *Pie Example*.
1213
+
@@ -26,12 +27,12 @@ is on the lower right.
2627

2728
==== Inspect the data
2829

29-
Seeing visualizations of your data is great,
30+
Seeing visualizations of your data is great,
3031
but sometimes you need to look at the actual data to
3132
understand what's really going on. You can inspect the data behind any visualization
3233
and view the {es} query used to retrieve it.
3334

34-
. In the dashboard, hover the pointer over the pie chart, and then click the icon in the upper right.
35+
. In the dashboard, hover the pointer over the pie chart, and then click the icon in the upper right.
3536
. From the *Options* menu, select *Inspect*.
3637
+
3738
[role="screenshot"]

docs/getting-started/tutorial-visualizing.asciidoc

Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
In the Visualize application, you can shape your data using a variety
55
of charts, tables, and maps, and more. In this tutorial, you'll create four
6-
visualizations:
6+
visualizations:
77

88
* <<tutorial-visualize-pie, Pie chart>>
99
* <<tutorial-visualize-bar, Bar chart>>
10-
* <<tutorial-visualize-map, Coordinate map>>
10+
* <<tutorial-visualize-map, Map>>
1111
* <<tutorial-visualize-markdown, Markdown widget>>
1212

1313
[float]
@@ -25,7 +25,7 @@ types in Kibana.
2525
image::images/tutorial-visualize-wizard-step-1.png[]
2626
. Click *Pie*.
2727

28-
. In *Choose a source*, select the `ba*` index pattern.
28+
. In *Choose a source*, select the `ba*` index pattern.
2929
+
3030
Initially, the pie contains a single "slice."
3131
That's because the default search matched all documents.
@@ -76,7 +76,7 @@ in a ring around the balance ranges.
7676
[role="screenshot"]
7777
image::images/tutorial-visualize-pie-3.png[]
7878

79-
. To save this chart so you can use it later, click *Save* in
79+
. To save this chart so you can use it later, click *Save* in
8080
the top menu bar and enter `Pie Example`.
8181

8282
[float]
@@ -123,29 +123,56 @@ you did at the beginning of the tutorial, when you marked the `play_name` field
123123
as `not analyzed`.
124124

125125
[float]
126-
[[tutorial-visualize-map]]
127-
=== Coordinate map
126+
[[tutorial-visualize-markdown]]
127+
=== Markdown
128128

129-
Using a coordinate map, you can visualize geographic information in the log file sample data.
129+
Create a Markdown widget to add formatted text to your dashboard.
130+
131+
. Create a *Markdown* visualization.
132+
. Copy the following text into the text box.
133+
+
134+
[source,markdown]
135+
# This is a tutorial dashboard!
136+
The Markdown widget uses **markdown** syntax.
137+
> Blockquotes in Markdown use the > character.
130138

131-
. Create a *Coordinate map* and set the search source to `logstash*`.
139+
. Click *Apply changes* image:images/apply-changes-button.png[].
132140
+
133-
You haven't defined any buckets yet, so the visualization is a map of the world.
141+
The Markdown renders in the preview pane.
142+
+
143+
[role="screenshot"]
144+
image::images/tutorial-visualize-md-2.png[]
145+
146+
. *Save* this visualization with the name `Markdown Example`.
147+
148+
[float]
149+
[[tutorial-visualize-map]]
150+
=== Map
151+
152+
Using <<maps>>, you can visualize geographic information in the log file sample data.
153+
154+
. Click *Maps* in the New Visualization
155+
menu to create a Map.
134156

135157
. Set the time.
136158
.. In the time filter, click *Show dates*.
137159
.. Click the start date, then *Absolute*.
138160
.. Set the *Start date* to May 18, 2015.
139161
.. In the time filter, click *now*, then *Absolute*.
140162
.. Set the *End date* to May 20, 2015.
163+
.. Click *Update*
141164

142165
. Map the geo coordinates from the log files.
143166

144-
.. In the *Buckets* pane, click *Add > Geo coordinates*.
145-
.. Set *Aggregation* to *Geohash*.
146-
.. Set *Field* to *geo.coordinates*.
167+
.. Click *Add layer*.
168+
.. Click the *Grid aggregation* data source.
169+
.. Set *Index pattern* to *logstash*.
170+
.. Click the *Add layer* button.
147171

148-
. Click *Apply changes* image:images/apply-changes-button.png[].
172+
. Set the layer style.
173+
.. For *Fill color*, select the yellow to red color ramp.
174+
.. For *Border color*, select white.
175+
.. Click *Save & close*.
149176
+
150177
The map now looks like this:
151178
+
@@ -155,26 +182,3 @@ image::images/tutorial-visualize-map-2.png[]
155182
. Navigate the map by clicking and dragging. Use the controls
156183
on the left to zoom the map and set filters.
157184
. *Save* this map with the name `Map Example`.
158-
159-
[float]
160-
[[tutorial-visualize-markdown]]
161-
=== Markdown
162-
163-
The final visualization is a Markdown widget that renders formatted text.
164-
165-
. Create a *Markdown* visualization.
166-
. Copy the following text into the text box.
167-
+
168-
[source,markdown]
169-
# This is a tutorial dashboard!
170-
The Markdown widget uses **markdown** syntax.
171-
> Blockquotes in Markdown use the > character.
172-
173-
. Click *Apply changes* image:images/apply-changes-button.png[].
174-
+
175-
The Markdown renders in the preview pane.
176-
+
177-
[role="screenshot"]
178-
image::images/tutorial-visualize-md-2.png[]
179-
180-
. *Save* this visualization with the name `Markdown Example`.
309 KB
Loading

docs/maps/maps-getting-started.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ the {es} index `kibana_sample_data_logs` on the shared key iso2 = geo.src.
8484
. Set *Right source* to *kibana_sample_data_logs*.
8585
. Set *Right field* to *geo.src*.
8686

87-
===== Set the vector style
87+
===== Set the layer style
8888

8989
All of the world countries are still a single color because the layer is using <<maps-vector-style-static, static styling>>.
9090
To shade the world countries based on which country is sending the most requests, you'll need to use <<maps-vector-style-data-driven, data driven styling>>.
@@ -161,9 +161,9 @@ image::maps/images/grid_metrics_both.png[]
161161
. Select *Sum* in the aggregation select.
162162
. Select *bytes* in the field select.
163163

164-
===== Set the vector style
164+
===== Set the layer style
165165

166-
. In *Vector style*, change *Symbol size*:
166+
. In *Layer style*, change *Symbol size*:
167167
.. Set *Min size* to 1.
168168
.. Set *Max size* to 25.
169169
.. In the field select, select *sum of bytes*.

packages/kbn-es/src/custom_snapshots.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function isVersionFlag(a) {
2626
function getCustomSnapshotUrl() {
2727
// force use of manually created snapshots until live ones are available
2828
if (!process.env.KBN_ES_SNAPSHOT_URL && !process.argv.some(isVersionFlag)) {
29-
return 'https://storage.googleapis.com/kibana-ci-tmp-artifacts/{name}-{version}-{os}-x86_64.{ext}';
29+
// return 'https://storage.googleapis.com/kibana-ci-tmp-artifacts/{name}-{version}-{os}-x86_64.{ext}';
30+
return;
3031
}
3132

3233
if (process.env.KBN_ES_SNAPSHOT_URL && process.env.KBN_ES_SNAPSHOT_URL !== 'false') {

packages/kbn-spec-to-console/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ At the root of the Kibana repository, run the following commands:
2323

2424
```sh
2525
# OSS
26-
yarn spec_to_console \
27-
-g "<ELASTICSEARCH-REPO-FOLDER>/rest-api-spec/src/main/resources/rest-api-spec/api/*" \
28-
-d "src/legacy/core_plugins/console/api_server/spec/generated"
26+
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/rest-api-spec/src/main/resources/rest-api-spec/api/*" -d "src/legacy/core_plugins/console/server/api_server/spec/generated"
2927

3028
# X-pack
31-
yarn spec_to_console \
32-
-g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" \
33-
-d "x-pack/plugins/console_extensions/spec/generated"
29+
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" -d "x-pack/legacy/plugins/console_extensions/spec/generated"
3430
```
3531

3632
### Information used in Console that is not available in the REST spec

src/core/public/chrome/chrome_service.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export class ChromeService {
129129
<LoadingIndicator loadingCount$={http.getLoadingCount$()} />
130130

131131
<Header
132+
isCloudEnabled={injectedMetadata.getInjectedVar('isCloudEnabled') as boolean}
132133
application={application}
133134
appTitle$={appTitle$.pipe(takeUntil(this.stop$))}
134135
badge$={badge$.pipe(takeUntil(this.stop$))}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
export const ELASTIC_SUPPORT_LINK = 'https://support.elastic.co/';
21+
export const KIBANA_FEEDBACK_LINK = 'https://www.elastic.co/kibana/feedback';
22+
export const KIBANA_ASK_ELASTIC_LINK = 'https://www.elastic.co/kibana/ask-elastic';
23+
export const GITHUB_CREATE_ISSUE_LINK = 'https://github.com/elastic/kibana/issues/new/choose';

src/core/public/chrome/ui/header/header.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ interface Props {
179179
basePath: HttpStart['basePath'];
180180
isLocked?: boolean;
181181
onIsLockedUpdate?: (isLocked: boolean) => void;
182+
isCloudEnabled: boolean;
182183
}
183184

184185
interface State {
@@ -296,6 +297,7 @@ class HeaderUI extends Component<Props, State> {
296297
kibanaVersion,
297298
onIsLockedUpdate,
298299
legacyMode,
300+
isCloudEnabled,
299301
} = this.props;
300302
const {
301303
appTitle,
@@ -394,7 +396,9 @@ class HeaderUI extends Component<Props, State> {
394396

395397
<EuiHeaderSection side="right">
396398
<EuiHeaderSectionItem>
397-
<HeaderHelpMenu {...{ helpExtension$, kibanaDocLink, kibanaVersion }} />
399+
<HeaderHelpMenu
400+
{...{ isCloudEnabled, helpExtension$, kibanaDocLink, kibanaVersion }}
401+
/>
398402
</EuiHeaderSectionItem>
399403

400404
<HeaderNavControls side="right" navControls={navControlsRight} />

src/core/public/chrome/ui/header/header_help_menu.tsx

Lines changed: 52 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,37 @@
1717
* under the License.
1818
*/
1919

20+
import * as Rx from 'rxjs';
2021
import { FormattedMessage } from '@kbn/i18n/react';
2122
import React, { Component, Fragment } from 'react';
22-
import * as Rx from 'rxjs';
23-
23+
import { InjectedIntl, injectI18n } from '@kbn/i18n/react';
2424
import {
25-
// TODO: add type annotations
26-
// @ts-ignore
27-
EuiButton,
28-
// @ts-ignore
25+
EuiButtonEmpty,
2926
EuiFlexGroup,
30-
// @ts-ignore
3127
EuiFlexItem,
32-
// @ts-ignore
3328
EuiHeaderSectionItemButton,
3429
EuiIcon,
3530
EuiPopover,
3631
EuiPopoverTitle,
3732
EuiSpacer,
38-
EuiText,
3933
} from '@elastic/eui';
40-
import { InjectedIntl, injectI18n } from '@kbn/i18n/react';
4134

4235
import { HeaderExtension } from './header_extension';
4336
import { ChromeHelpExtension } from '../../chrome_service';
37+
import {
38+
ELASTIC_SUPPORT_LINK,
39+
GITHUB_CREATE_ISSUE_LINK,
40+
KIBANA_ASK_ELASTIC_LINK,
41+
KIBANA_FEEDBACK_LINK,
42+
} from '../../constants';
4443

4544
interface Props {
4645
helpExtension$: Rx.Observable<ChromeHelpExtension | undefined>;
4746
intl: InjectedIntl;
4847
kibanaVersion: string;
4948
useDefaultContent?: boolean;
5049
kibanaDocLink: string;
50+
isCloudEnabled: boolean;
5151
}
5252

5353
interface State {
@@ -90,23 +90,50 @@ class HeaderHelpMenuUI extends Component<Props, State> {
9090

9191
const defaultContent = useDefaultContent ? (
9292
<Fragment>
93-
<EuiText size="s">
94-
<p>
95-
<FormattedMessage
96-
id="core.ui.chrome.headerGlobalNav.helpMenuHelpDescription"
97-
defaultMessage="Get updates, information, and answers in our documentation."
98-
/>
99-
</p>
100-
</EuiText>
101-
102-
<EuiSpacer />
103-
104-
<EuiButton iconType="popout" href={kibanaDocLink} target="_blank">
93+
<EuiButtonEmpty href={kibanaDocLink} target="_blank" size="xs" flush="left">
94+
<FormattedMessage
95+
id="core.ui.chrome.headerGlobalNav.helpMenuKibanaDocumentationTitle"
96+
defaultMessage="Kibana documentation"
97+
/>
98+
</EuiButtonEmpty>
99+
100+
<EuiSpacer size="xs" />
101+
102+
<EuiButtonEmpty
103+
href={this.props.isCloudEnabled ? ELASTIC_SUPPORT_LINK : KIBANA_ASK_ELASTIC_LINK}
104+
target="_blank"
105+
size="xs"
106+
flush="left"
107+
>
108+
<FormattedMessage
109+
id="core.ui.chrome.headerGlobalNav.helpMenuAskElasticTitle"
110+
defaultMessage="Ask Elastic"
111+
/>
112+
</EuiButtonEmpty>
113+
114+
<EuiSpacer size="xs" />
115+
116+
<EuiButtonEmpty href={KIBANA_FEEDBACK_LINK} target="_blank" size="xs" flush="left">
117+
<FormattedMessage
118+
id="core.ui.chrome.headerGlobalNav.helpMenuGiveFeedbackTitle"
119+
defaultMessage="Give feedback"
120+
/>
121+
</EuiButtonEmpty>
122+
123+
<EuiSpacer size="xs" />
124+
125+
<EuiButtonEmpty
126+
href={GITHUB_CREATE_ISSUE_LINK}
127+
target="_blank"
128+
size="xs"
129+
iconType="logoGithub"
130+
flush="left"
131+
>
105132
<FormattedMessage
106-
id="core.ui.chrome.headerGlobalNav.helpMenuGoToDocumentation"
107-
defaultMessage="Go to documentation"
133+
id="core.ui.chrome.headerGlobalNav.helpMenuOpenGitHubIssueTitle"
134+
defaultMessage="Open an issue in GitHub"
108135
/>
109-
</EuiButton>
136+
</EuiButtonEmpty>
110137
</Fragment>
111138
) : null;
112139

0 commit comments

Comments
 (0)