Skip to content

[8.x] [Infra][ObsUX] Hosts & Container Logs only overview (#202992)#204984

Merged
Bluefinger merged 2 commits intoelastic:8.xfrom
Bluefinger:backport/8.x/pr-202992
Dec 24, 2024
Merged

[8.x] [Infra][ObsUX] Hosts & Container Logs only overview (#202992)#204984
Bluefinger merged 2 commits intoelastic:8.xfrom
Bluefinger:backport/8.x/pr-202992

Conversation

@Bluefinger
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.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-->

## 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)
@Bluefinger Bluefinger added the backport This PR is a backport of another PR label Dec 19, 2024
@Bluefinger Bluefinger enabled auto-merge (squash) December 19, 2024 16:59
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Dec 19, 2024
@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)


// 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;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

const { euiTheme } = useEuiTheme();

// Prevent empty string being used as a valid color
return seriesColor || euiTheme.colors.lightestShade;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Dec 19, 2024

💚 Build Succeeded

  • Buildkite Build
  • Commit: 2177fe4
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-204984-2177fe4944cb

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
infra 1532 1535 +3

Async chunks

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

id before after diff
infra 1.7MB 1.7MB +1.8KB

History

@Bluefinger Bluefinger merged commit b86b92e into elastic:8.x Dec 24, 2024
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 ci:project-deploy-observability Create an Observability project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants