Skip to content
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
47d74a6
Refactor ESQL solution ID handling in ESQL editor and menu popover
justinkambic Feb 3, 2026
31ef46d
Update ESQL recommended queries for metrics in observability plugin
justinkambic Feb 3, 2026
f86c284
Undo changes to esql menu popover.
justinkambic Feb 3, 2026
ea0fb99
Refactor ESQL editor solution ID handling and add new recommended que…
justinkambic Feb 3, 2026
167cd0e
Fixup.
justinkambic Feb 3, 2026
df12f82
Changes from yarn openapi:bundle
kibanamachine Feb 3, 2026
2d3b524
Merge remote-tracking branch 'upstream' into 251289/select-all-metrics
justinkambic Feb 4, 2026
255c983
Merge branch '251289/select-all-metrics' of github.com:justinkambic/k…
justinkambic Feb 4, 2026
7ad76a7
Changes from yarn openapi:bundle
kibanamachine Feb 4, 2026
b218c55
Simplify.
justinkambic Feb 5, 2026
0c4e8b5
Merge branch '251289/select-all-metrics' of github.com:justinkambic/k…
justinkambic Feb 5, 2026
6352d46
Merge branch 'main' of github.com:elastic/kibana into 251289/select-a…
justinkambic Feb 5, 2026
e9bf801
Simplify.
justinkambic Feb 5, 2026
aa8434a
Remove generated oas_docs.
justinkambic Feb 5, 2026
d43701b
Remove unneeded code.
justinkambic Feb 6, 2026
3bd774f
Merge branch 'main' of github.com:elastic/kibana into 251289/select-a…
justinkambic Feb 9, 2026
f5869ee
Merge branch 'main' of github.com:elastic/kibana into 251289/select-a…
justinkambic Feb 18, 2026
684e1ab
Refactor ESQL recommended queries for observability
justinkambic Feb 19, 2026
374d365
Merge branch 'main' of github.com:elastic/kibana into 251289/select-a…
justinkambic Feb 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,33 @@ const LOGS_AND_METRICS_ESQL_RECOMMENDED_QUERIES = [
},
];

const SEARCH_ALL_METRICS_ESQL_RECOMMENDED_QUERY = {
name: i18n.translate('xpack.observability.esqlQueries.searchAllMetrics.name', {
defaultMessage: 'Search all metrics',
}),
query: `TS ${METRICS_INDEX_PATTERN}`,
description: i18n.translate('xpack.observability.esqlQueries.searchAllMetrics.description', {
defaultMessage: 'Searches all available metrics',
}),
};

export function setEsqlRecommendedQueries(esqlPlugin: ESQLSetup) {
const esqlExtensionsRegistry = esqlPlugin.getExtensionsRegistry();
const observabilityRecommendedQueries = [
...TRACES_ESQL_RECOMMENDED_QUERIES,
...LOGS_AND_METRICS_ESQL_RECOMMENDED_QUERIES,
SEARCH_ALL_METRICS_ESQL_RECOMMENDED_QUERY,
];

// Register full observability-specific recommendations for observability solution view.
esqlExtensionsRegistry.setRecommendedQueries(observabilityRecommendedQueries, 'oblt');

// Register recommended queries
// Register only the "Search all metrics" recommendation for security and search solution views.
esqlExtensionsRegistry.setRecommendedQueries(
[...TRACES_ESQL_RECOMMENDED_QUERIES, ...LOGS_AND_METRICS_ESQL_RECOMMENDED_QUERIES],
'oblt'
[SEARCH_ALL_METRICS_ESQL_RECOMMENDED_QUERY],
'security'
);
esqlExtensionsRegistry.setRecommendedQueries([SEARCH_ALL_METRICS_ESQL_RECOMMENDED_QUERY], 'es');

// Register recommended fields
esqlExtensionsRegistry.setRecommendedFields(ALL_RECOMMENDED_FIELDS_FOR_ESQL, 'oblt');
Expand Down
Loading