Skip to content

[9.3] [Discover] [Metrics] Re-introduce metrics suggested queries (#251376)#254261

Merged
kibanamachine merged 1 commit intoelastic:9.3from
kibanamachine:backport/9.3/pr-251376
Feb 20, 2026
Merged

[9.3] [Discover] [Metrics] Re-introduce metrics suggested queries (#251376)#254261
kibanamachine merged 1 commit intoelastic:9.3from
kibanamachine:backport/9.3/pr-251376

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…251376)

## Summary

Resolves elastic#251289.

~Re-introduces the "all metrics" ES|QL recommendation that was
previously removed.~ Update: per the ticket, we have changed the copy to
read "Search all metrics". The screenshots are the same but the copy has
been
[updated](https://github.com/elastic/kibana/pull/251376/changes#diff-c9b2af3b7c484565768216fd866cd80df9df1e3b1c919994c1bbbbb41be93a96R74).

## Demonstration of change

### Recommends when clicking empty editor

![20260202231249](https://github.com/user-attachments/assets/e988f844-17f7-4752-bda7-bd1352390ab4)

### Recommends when user types "metrics"

![20260202231344](https://github.com/user-attachments/assets/4b62a22b-ba9e-4a9b-bbb0-aff1564003cd)

### ~Includes the recommendation in ES|QL help menu~

**redacted**

We are actually blocked on providing this functionality for the time
being. See the discussion on
elastic#237425 for further information.

## Testing the PR

Load some metrics data. You can do this using
[simian-forge](https://github.com/simianhacker/simian-forge). Pull the
code, `npm ci && npm run build`, and you can index data with a command
like:

```bash
./forge --backfill now-1h --interval 10s --count 100 --dataset hosts --purge --elasticsearch-url {ES_URL} --elasticsearch-api-key {CREATE_AN_API_KEY}
```

Navigate to Discover and test the UI.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d845e03)
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@kibanamachine kibanamachine merged commit 8ae73dc into elastic:9.3 Feb 20, 2026
20 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @justinkambic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:obs-ux-management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants