Skip to content

[8.x] [DataUsage][Serverless] Data usage metrics page enhancements (#195556)#196202

Merged
ashokaditya merged 1 commit intoelastic:8.xfrom
ashokaditya:backport/8.x/pr-195556
Oct 14, 2024
Merged

[8.x] [DataUsage][Serverless] Data usage metrics page enhancements (#195556)#196202
ashokaditya merged 1 commit intoelastic:8.xfrom
ashokaditya:backport/8.x/pr-195556

Conversation

@ashokaditya
Copy link
Copy Markdown
Member

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…#195556)

## Summary

This PR is a follow-up of elastic/pull/193966 and adds:

1. Datastreams filter to data usage metrics page.
2. Metrics filter (hidden for now) that lists out metric types to
request.
3. Refactors to make code easier to maintain.
4. Shows a callout if no data stream is selected.

### screen
![Screenshot 2024-10-09 at 17 36
32](https://github.com/user-attachments/assets/a0779c91-25ae-4a64-819e-bc8a626f1f96)

### clip

![latest-metrics-ux](https://github.com/user-attachments/assets/0f4b1a9b-d160-435b-917b-f59c3a5cc9f8)

### Checklist
- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit a7332ad)
@ashokaditya ashokaditya added the backport This PR is a backport of another PR label Oct 14, 2024
@ashokaditya ashokaditya enabled auto-merge (squash) October 14, 2024 19:18
@ashokaditya ashokaditya merged commit 06a2faa into elastic:8.x Oct 14, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
dataUsage 122 133 +11

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dataUsage 229.6KB 237.3KB +7.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dataUsage 4.4KB 4.6KB +123.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
dataUsage 3 4 +1

Total ESLint disabled count

id before after diff
dataUsage 4 5 +1

@ashokaditya ashokaditya deleted the backport/8.x/pr-195556 branch October 15, 2024 06:48
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants