[8.x] [Infra][ObsUX] Hosts & Container Logs only overview (#202992)#204984
Merged
Bluefinger merged 2 commits intoelastic:8.xfrom Dec 24, 2024
Merged
[8.x] [Infra][ObsUX] Hosts & Container Logs only overview (#202992)#204984Bluefinger merged 2 commits intoelastic:8.xfrom
Bluefinger merged 2 commits intoelastic:8.xfrom
Conversation
## Summary Enables a logs only overview for hosts & containers. Disables the metrics tab as there's no data incoming for metrics, and provides Logs charts on the overview page detailing the Log Rate (all logs generated) and Log Error Rate (all recorded errors). https://github.com/user-attachments/assets/ced14b6d-dd08-4514-9066-6c02c62d5ff8 Closes elastic#201752 ## How to test This is tested using synthtrace data, loading the scenario below: ``` node scripts/synthtrace traces_logs_entities.ts --live ``` This loads a logs-only host, though if other scenarios contain logs only containers, feel free to use those as well. * Go to Inventory page. Click on a host or container. * If it is a logs only host/container, no metrics tab should be shown. Metrics KPI charts should be replaced with Logs KPI charts (Log Rate and Log Error Rate). * If the host/container contains metrics, the metrics tab should be visible and the normal Metrics KPI charts should be present. --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 305bb1b)
Contributor
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Bluefinger
commented
Dec 19, 2024
|
|
||
| // Don't try to test a hardcoded value, just use what is provided by EUI. | ||
| // If in the future this value changes, the tests won't break. | ||
| seriesDefaultColor = result.current.euiTheme.colors.lightestShade; |
Contributor
Author
There was a problem hiding this comment.
I had to change the variable being used here from backgroundLightText to lightestShade as the new semantic tokens aren't in 8.x (was mistaken about them being in 8.x)
Bluefinger
commented
Dec 19, 2024
| const { euiTheme } = useEuiTheme(); | ||
|
|
||
| // Prevent empty string being used as a valid color | ||
| return seriesColor || euiTheme.colors.lightestShade; |
Contributor
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History |
pgayvallet
approved these changes
Dec 24, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.x:Questions ?
Please refer to the Backport tool documentation
\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n"}},{"url":"https://github.com//pull/203644","number":203644,"branch":"8.x","state":"OPEN"}]}] BACKPORT-->