Skip to content

Commit 203fde9

Browse files
Observability overview page (#69141)
* creating overview page and menu * styling the home page * adjusting breadcrumb * renaming isnt working * renaming isnt working * renaming isnt working * fixing import * fixing scroll when resize window * fixing eslint errors * prepending links * adding target option * refactoring * adding dark mode support * fixing prettier format * fixing i18n * reverting some unnecessary changes * addressing PR comments * fixing functional tests * ordering observability menu * fixing tests * addressing PR comments * fixing scroll * addressing pr comments * addressing pr comments * creating overview page * mocking data * mocking data * refactoring * crearting apm chart * adding overview page * adding metric charts * adding charts * changing mock data location * adding mock registry * adding date picker * adding route validation * adding io-ts * adding io-ts * adding io-ts support * fixing imports and mock data * adding app folder * creating a section for each plugin * adding stats * adding domain min max * refactoring xcoordinaters * fixing route * adding bucket size * adding group property on logs * adding home page * dont break page if location state is undefined * each component fetches its own data * Refactoring * adding loading indicator to chart * fixing uptime chart * adding brush functionality to charts * fixing refresh button and auto refresh function * adding horizontal line to accordion section * adding emptySection to dashboard page * adding add data button * adding resources section * removing margins from horizontal rule * changing min interval to 60s * fixing empty section * removing unnecessary code * adding unit tests * fixing imports * adding initial story book for observability * removeing uptime mock data * fixing xDomain to show correct data on x-axis * fixing empty state alignment * adding story book and other improvements * adding news component * adding support to custom colors on EuiProgress and EuiStats * removing infra mock data * adding error message when api throwns an error * adding alert section * Adding alerts * adding alert api call * addressing PR comments * adding storybook * adding feedback button * addressing PR comments * chamging plugins return data * fixing kibana app navigation * fixing unit test * fixing ts issues * addressing PR comments * using lodash truncate * adding comment * updating public documentation * fixing alerts request * fixing unit test * fixing unit test * aligin beta badge to the center * adding moment duration to get the units as seconds * addressing PR comments * addressing PR comments
1 parent 595e9c2 commit 203fde9

75 files changed

Lines changed: 8153 additions & 393 deletions

File tree

Some content is hidden

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

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ui_settings.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,33 @@
88

99
```typescript
1010
UI_SETTINGS: {
11-
META_FIELDS: string;
12-
DOC_HIGHLIGHT: string;
13-
QUERY_STRING_OPTIONS: string;
14-
QUERY_ALLOW_LEADING_WILDCARDS: string;
15-
SEARCH_QUERY_LANGUAGE: string;
16-
SORT_OPTIONS: string;
17-
COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: string;
18-
COURIER_SET_REQUEST_PREFERENCE: string;
19-
COURIER_CUSTOM_REQUEST_PREFERENCE: string;
20-
COURIER_MAX_CONCURRENT_SHARD_REQUESTS: string;
21-
COURIER_BATCH_SEARCHES: string;
22-
SEARCH_INCLUDE_FROZEN: string;
23-
HISTOGRAM_BAR_TARGET: string;
24-
HISTOGRAM_MAX_BARS: string;
25-
HISTORY_LIMIT: string;
26-
SHORT_DOTS_ENABLE: string;
27-
FORMAT_DEFAULT_TYPE_MAP: string;
28-
FORMAT_NUMBER_DEFAULT_PATTERN: string;
29-
FORMAT_PERCENT_DEFAULT_PATTERN: string;
30-
FORMAT_BYTES_DEFAULT_PATTERN: string;
31-
FORMAT_CURRENCY_DEFAULT_PATTERN: string;
32-
FORMAT_NUMBER_DEFAULT_LOCALE: string;
33-
TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: string;
34-
TIMEPICKER_QUICK_RANGES: string;
35-
INDEXPATTERN_PLACEHOLDER: string;
36-
FILTERS_PINNED_BY_DEFAULT: string;
37-
FILTERS_EDITOR_SUGGEST_VALUES: string;
11+
readonly META_FIELDS: "metaFields";
12+
readonly DOC_HIGHLIGHT: "doc_table:highlight";
13+
readonly QUERY_STRING_OPTIONS: "query:queryString:options";
14+
readonly QUERY_ALLOW_LEADING_WILDCARDS: "query:allowLeadingWildcards";
15+
readonly SEARCH_QUERY_LANGUAGE: "search:queryLanguage";
16+
readonly SORT_OPTIONS: "sort:options";
17+
readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: "courier:ignoreFilterIfFieldNotInIndex";
18+
readonly COURIER_SET_REQUEST_PREFERENCE: "courier:setRequestPreference";
19+
readonly COURIER_CUSTOM_REQUEST_PREFERENCE: "courier:customRequestPreference";
20+
readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: "courier:maxConcurrentShardRequests";
21+
readonly COURIER_BATCH_SEARCHES: "courier:batchSearches";
22+
readonly SEARCH_INCLUDE_FROZEN: "search:includeFrozen";
23+
readonly HISTOGRAM_BAR_TARGET: "histogram:barTarget";
24+
readonly HISTOGRAM_MAX_BARS: "histogram:maxBars";
25+
readonly HISTORY_LIMIT: "history:limit";
26+
readonly SHORT_DOTS_ENABLE: "shortDots:enable";
27+
readonly FORMAT_DEFAULT_TYPE_MAP: "format:defaultTypeMap";
28+
readonly FORMAT_NUMBER_DEFAULT_PATTERN: "format:number:defaultPattern";
29+
readonly FORMAT_PERCENT_DEFAULT_PATTERN: "format:percent:defaultPattern";
30+
readonly FORMAT_BYTES_DEFAULT_PATTERN: "format:bytes:defaultPattern";
31+
readonly FORMAT_CURRENCY_DEFAULT_PATTERN: "format:currency:defaultPattern";
32+
readonly FORMAT_NUMBER_DEFAULT_LOCALE: "format:number:defaultLocale";
33+
readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: "timepicker:refreshIntervalDefaults";
34+
readonly TIMEPICKER_QUICK_RANGES: "timepicker:quickRanges";
35+
readonly TIMEPICKER_TIME_DEFAULTS: "timepicker:timeDefaults";
36+
readonly INDEXPATTERN_PLACEHOLDER: "indexPattern:placeholder";
37+
readonly FILTERS_PINNED_BY_DEFAULT: "filters:pinnedByDefault";
38+
readonly FILTERS_EDITOR_SUGGEST_VALUES: "filterEditor:suggestValues";
3839
}
3940
```

docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ui_settings.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,33 @@
88

99
```typescript
1010
UI_SETTINGS: {
11-
META_FIELDS: string;
12-
DOC_HIGHLIGHT: string;
13-
QUERY_STRING_OPTIONS: string;
14-
QUERY_ALLOW_LEADING_WILDCARDS: string;
15-
SEARCH_QUERY_LANGUAGE: string;
16-
SORT_OPTIONS: string;
17-
COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: string;
18-
COURIER_SET_REQUEST_PREFERENCE: string;
19-
COURIER_CUSTOM_REQUEST_PREFERENCE: string;
20-
COURIER_MAX_CONCURRENT_SHARD_REQUESTS: string;
21-
COURIER_BATCH_SEARCHES: string;
22-
SEARCH_INCLUDE_FROZEN: string;
23-
HISTOGRAM_BAR_TARGET: string;
24-
HISTOGRAM_MAX_BARS: string;
25-
HISTORY_LIMIT: string;
26-
SHORT_DOTS_ENABLE: string;
27-
FORMAT_DEFAULT_TYPE_MAP: string;
28-
FORMAT_NUMBER_DEFAULT_PATTERN: string;
29-
FORMAT_PERCENT_DEFAULT_PATTERN: string;
30-
FORMAT_BYTES_DEFAULT_PATTERN: string;
31-
FORMAT_CURRENCY_DEFAULT_PATTERN: string;
32-
FORMAT_NUMBER_DEFAULT_LOCALE: string;
33-
TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: string;
34-
TIMEPICKER_QUICK_RANGES: string;
35-
INDEXPATTERN_PLACEHOLDER: string;
36-
FILTERS_PINNED_BY_DEFAULT: string;
37-
FILTERS_EDITOR_SUGGEST_VALUES: string;
11+
readonly META_FIELDS: "metaFields";
12+
readonly DOC_HIGHLIGHT: "doc_table:highlight";
13+
readonly QUERY_STRING_OPTIONS: "query:queryString:options";
14+
readonly QUERY_ALLOW_LEADING_WILDCARDS: "query:allowLeadingWildcards";
15+
readonly SEARCH_QUERY_LANGUAGE: "search:queryLanguage";
16+
readonly SORT_OPTIONS: "sort:options";
17+
readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: "courier:ignoreFilterIfFieldNotInIndex";
18+
readonly COURIER_SET_REQUEST_PREFERENCE: "courier:setRequestPreference";
19+
readonly COURIER_CUSTOM_REQUEST_PREFERENCE: "courier:customRequestPreference";
20+
readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: "courier:maxConcurrentShardRequests";
21+
readonly COURIER_BATCH_SEARCHES: "courier:batchSearches";
22+
readonly SEARCH_INCLUDE_FROZEN: "search:includeFrozen";
23+
readonly HISTOGRAM_BAR_TARGET: "histogram:barTarget";
24+
readonly HISTOGRAM_MAX_BARS: "histogram:maxBars";
25+
readonly HISTORY_LIMIT: "history:limit";
26+
readonly SHORT_DOTS_ENABLE: "shortDots:enable";
27+
readonly FORMAT_DEFAULT_TYPE_MAP: "format:defaultTypeMap";
28+
readonly FORMAT_NUMBER_DEFAULT_PATTERN: "format:number:defaultPattern";
29+
readonly FORMAT_PERCENT_DEFAULT_PATTERN: "format:percent:defaultPattern";
30+
readonly FORMAT_BYTES_DEFAULT_PATTERN: "format:bytes:defaultPattern";
31+
readonly FORMAT_CURRENCY_DEFAULT_PATTERN: "format:currency:defaultPattern";
32+
readonly FORMAT_NUMBER_DEFAULT_LOCALE: "format:number:defaultLocale";
33+
readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: "timepicker:refreshIntervalDefaults";
34+
readonly TIMEPICKER_QUICK_RANGES: "timepicker:quickRanges";
35+
readonly TIMEPICKER_TIME_DEFAULTS: "timepicker:timeDefaults";
36+
readonly INDEXPATTERN_PLACEHOLDER: "indexPattern:placeholder";
37+
readonly FILTERS_PINNED_BY_DEFAULT: "filters:pinnedByDefault";
38+
readonly FILTERS_EDITOR_SUGGEST_VALUES: "filterEditor:suggestValues";
3839
}
3940
```

src/dev/storybook/aliases.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ export const storybookAliases = {
2626
infra: 'x-pack/legacy/plugins/infra/scripts/storybook.js',
2727
security_solution: 'x-pack/plugins/security_solution/scripts/storybook.js',
2828
ui_actions_enhanced: 'x-pack/plugins/ui_actions_enhanced/scripts/storybook.js',
29+
observability: 'x-pack/plugins/observability/scripts/storybook.js',
2930
};

src/plugins/data/common/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export const UI_SETTINGS = {
4444
FORMAT_NUMBER_DEFAULT_LOCALE: 'format:number:defaultLocale',
4545
TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: 'timepicker:refreshIntervalDefaults',
4646
TIMEPICKER_QUICK_RANGES: 'timepicker:quickRanges',
47+
TIMEPICKER_TIME_DEFAULTS: 'timepicker:timeDefaults',
4748
INDEXPATTERN_PLACEHOLDER: 'indexPattern:placeholder',
4849
FILTERS_PINNED_BY_DEFAULT: 'filters:pinnedByDefault',
4950
FILTERS_EDITOR_SUGGEST_VALUES: 'filterEditor:suggestValues',
50-
};
51+
} as const;

src/plugins/data/public/public.api.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,33 +1906,34 @@ export interface TimeRange {
19061906
//
19071907
// @public (undocumented)
19081908
export const UI_SETTINGS: {
1909-
META_FIELDS: string;
1910-
DOC_HIGHLIGHT: string;
1911-
QUERY_STRING_OPTIONS: string;
1912-
QUERY_ALLOW_LEADING_WILDCARDS: string;
1913-
SEARCH_QUERY_LANGUAGE: string;
1914-
SORT_OPTIONS: string;
1915-
COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: string;
1916-
COURIER_SET_REQUEST_PREFERENCE: string;
1917-
COURIER_CUSTOM_REQUEST_PREFERENCE: string;
1918-
COURIER_MAX_CONCURRENT_SHARD_REQUESTS: string;
1919-
COURIER_BATCH_SEARCHES: string;
1920-
SEARCH_INCLUDE_FROZEN: string;
1921-
HISTOGRAM_BAR_TARGET: string;
1922-
HISTOGRAM_MAX_BARS: string;
1923-
HISTORY_LIMIT: string;
1924-
SHORT_DOTS_ENABLE: string;
1925-
FORMAT_DEFAULT_TYPE_MAP: string;
1926-
FORMAT_NUMBER_DEFAULT_PATTERN: string;
1927-
FORMAT_PERCENT_DEFAULT_PATTERN: string;
1928-
FORMAT_BYTES_DEFAULT_PATTERN: string;
1929-
FORMAT_CURRENCY_DEFAULT_PATTERN: string;
1930-
FORMAT_NUMBER_DEFAULT_LOCALE: string;
1931-
TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: string;
1932-
TIMEPICKER_QUICK_RANGES: string;
1933-
INDEXPATTERN_PLACEHOLDER: string;
1934-
FILTERS_PINNED_BY_DEFAULT: string;
1935-
FILTERS_EDITOR_SUGGEST_VALUES: string;
1909+
readonly META_FIELDS: "metaFields";
1910+
readonly DOC_HIGHLIGHT: "doc_table:highlight";
1911+
readonly QUERY_STRING_OPTIONS: "query:queryString:options";
1912+
readonly QUERY_ALLOW_LEADING_WILDCARDS: "query:allowLeadingWildcards";
1913+
readonly SEARCH_QUERY_LANGUAGE: "search:queryLanguage";
1914+
readonly SORT_OPTIONS: "sort:options";
1915+
readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: "courier:ignoreFilterIfFieldNotInIndex";
1916+
readonly COURIER_SET_REQUEST_PREFERENCE: "courier:setRequestPreference";
1917+
readonly COURIER_CUSTOM_REQUEST_PREFERENCE: "courier:customRequestPreference";
1918+
readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: "courier:maxConcurrentShardRequests";
1919+
readonly COURIER_BATCH_SEARCHES: "courier:batchSearches";
1920+
readonly SEARCH_INCLUDE_FROZEN: "search:includeFrozen";
1921+
readonly HISTOGRAM_BAR_TARGET: "histogram:barTarget";
1922+
readonly HISTOGRAM_MAX_BARS: "histogram:maxBars";
1923+
readonly HISTORY_LIMIT: "history:limit";
1924+
readonly SHORT_DOTS_ENABLE: "shortDots:enable";
1925+
readonly FORMAT_DEFAULT_TYPE_MAP: "format:defaultTypeMap";
1926+
readonly FORMAT_NUMBER_DEFAULT_PATTERN: "format:number:defaultPattern";
1927+
readonly FORMAT_PERCENT_DEFAULT_PATTERN: "format:percent:defaultPattern";
1928+
readonly FORMAT_BYTES_DEFAULT_PATTERN: "format:bytes:defaultPattern";
1929+
readonly FORMAT_CURRENCY_DEFAULT_PATTERN: "format:currency:defaultPattern";
1930+
readonly FORMAT_NUMBER_DEFAULT_LOCALE: "format:number:defaultLocale";
1931+
readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: "timepicker:refreshIntervalDefaults";
1932+
readonly TIMEPICKER_QUICK_RANGES: "timepicker:quickRanges";
1933+
readonly TIMEPICKER_TIME_DEFAULTS: "timepicker:timeDefaults";
1934+
readonly INDEXPATTERN_PLACEHOLDER: "indexPattern:placeholder";
1935+
readonly FILTERS_PINNED_BY_DEFAULT: "filters:pinnedByDefault";
1936+
readonly FILTERS_EDITOR_SUGGEST_VALUES: "filterEditor:suggestValues";
19361937
};
19371938

19381939

src/plugins/data/server/server.api.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -767,33 +767,34 @@ export type TStrategyTypes = typeof ES_SEARCH_STRATEGY | string;
767767
//
768768
// @public (undocumented)
769769
export const UI_SETTINGS: {
770-
META_FIELDS: string;
771-
DOC_HIGHLIGHT: string;
772-
QUERY_STRING_OPTIONS: string;
773-
QUERY_ALLOW_LEADING_WILDCARDS: string;
774-
SEARCH_QUERY_LANGUAGE: string;
775-
SORT_OPTIONS: string;
776-
COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: string;
777-
COURIER_SET_REQUEST_PREFERENCE: string;
778-
COURIER_CUSTOM_REQUEST_PREFERENCE: string;
779-
COURIER_MAX_CONCURRENT_SHARD_REQUESTS: string;
780-
COURIER_BATCH_SEARCHES: string;
781-
SEARCH_INCLUDE_FROZEN: string;
782-
HISTOGRAM_BAR_TARGET: string;
783-
HISTOGRAM_MAX_BARS: string;
784-
HISTORY_LIMIT: string;
785-
SHORT_DOTS_ENABLE: string;
786-
FORMAT_DEFAULT_TYPE_MAP: string;
787-
FORMAT_NUMBER_DEFAULT_PATTERN: string;
788-
FORMAT_PERCENT_DEFAULT_PATTERN: string;
789-
FORMAT_BYTES_DEFAULT_PATTERN: string;
790-
FORMAT_CURRENCY_DEFAULT_PATTERN: string;
791-
FORMAT_NUMBER_DEFAULT_LOCALE: string;
792-
TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: string;
793-
TIMEPICKER_QUICK_RANGES: string;
794-
INDEXPATTERN_PLACEHOLDER: string;
795-
FILTERS_PINNED_BY_DEFAULT: string;
796-
FILTERS_EDITOR_SUGGEST_VALUES: string;
770+
readonly META_FIELDS: "metaFields";
771+
readonly DOC_HIGHLIGHT: "doc_table:highlight";
772+
readonly QUERY_STRING_OPTIONS: "query:queryString:options";
773+
readonly QUERY_ALLOW_LEADING_WILDCARDS: "query:allowLeadingWildcards";
774+
readonly SEARCH_QUERY_LANGUAGE: "search:queryLanguage";
775+
readonly SORT_OPTIONS: "sort:options";
776+
readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: "courier:ignoreFilterIfFieldNotInIndex";
777+
readonly COURIER_SET_REQUEST_PREFERENCE: "courier:setRequestPreference";
778+
readonly COURIER_CUSTOM_REQUEST_PREFERENCE: "courier:customRequestPreference";
779+
readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: "courier:maxConcurrentShardRequests";
780+
readonly COURIER_BATCH_SEARCHES: "courier:batchSearches";
781+
readonly SEARCH_INCLUDE_FROZEN: "search:includeFrozen";
782+
readonly HISTOGRAM_BAR_TARGET: "histogram:barTarget";
783+
readonly HISTOGRAM_MAX_BARS: "histogram:maxBars";
784+
readonly HISTORY_LIMIT: "history:limit";
785+
readonly SHORT_DOTS_ENABLE: "shortDots:enable";
786+
readonly FORMAT_DEFAULT_TYPE_MAP: "format:defaultTypeMap";
787+
readonly FORMAT_NUMBER_DEFAULT_PATTERN: "format:number:defaultPattern";
788+
readonly FORMAT_PERCENT_DEFAULT_PATTERN: "format:percent:defaultPattern";
789+
readonly FORMAT_BYTES_DEFAULT_PATTERN: "format:bytes:defaultPattern";
790+
readonly FORMAT_CURRENCY_DEFAULT_PATTERN: "format:currency:defaultPattern";
791+
readonly FORMAT_NUMBER_DEFAULT_LOCALE: "format:number:defaultLocale";
792+
readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: "timepicker:refreshIntervalDefaults";
793+
readonly TIMEPICKER_QUICK_RANGES: "timepicker:quickRanges";
794+
readonly TIMEPICKER_TIME_DEFAULTS: "timepicker:timeDefaults";
795+
readonly INDEXPATTERN_PLACEHOLDER: "indexPattern:placeholder";
796+
readonly FILTERS_PINNED_BY_DEFAULT: "filters:pinnedByDefault";
797+
readonly FILTERS_EDITOR_SUGGEST_VALUES: "filterEditor:suggestValues";
797798
};
798799

799800

x-pack/plugins/apm/public/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import { i18n } from '@kbn/i18n';
88
import { lazy } from 'react';
9-
import { euiThemeVars as theme } from '@kbn/ui-shared-deps/theme';
109
import { ConfigSchema } from '.';
1110
import { ObservabilityPluginSetup } from '../../observability/public';
1211
import {
@@ -83,7 +82,7 @@ export class ApmPlugin implements Plugin<ApmPluginSetup, ApmPluginStart> {
8382
plugins.observability.dashboard.register({
8483
appName: 'apm',
8584
fetchData: async (params) => {
86-
return fetchLandingPageData(params, { theme });
85+
return fetchLandingPageData(params);
8786
},
8887
hasData,
8988
});

0 commit comments

Comments
 (0)