Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Logs onboarding] custom logs - configure logs #157008

Merged

Conversation

yngrdyn
Copy link
Contributor

@yngrdyn yngrdyn commented May 8, 2023

Closes #155964.

Screen.Recording.2023-05-09.at.11.43.46.mov

@yngrdyn yngrdyn requested a review from a team as a code owner May 8, 2023 14:57
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

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

@yngrdyn yngrdyn added release_note:fix release_note:skip Skip the PR/issue when compiling release notes and removed release_note:fix labels May 8, 2023
@yngrdyn yngrdyn changed the title Observability onboarding custom logs configure logs [Logs onboarding] custom logs - configure logs May 9, 2023
@kibana-ci
Copy link
Collaborator

kibana-ci commented May 9, 2023

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #43 / dashboard Reporting Dashboard Reporting Screenshots Preserve Layout downloads a PDF file: large dashboard
  • [job] [logs] FTR Configs #43 / dashboard Reporting Dashboard Reporting Screenshots Preserve Layout downloads a PDF file: large dashboard
  • [job] [logs] FTR Configs #24 / Interactive Setup Functional Tests (Manual configuration without TLS) should configure Kibana successfully
  • [job] [logs] FTR Configs #24 / Interactive Setup Functional Tests (Manual configuration without TLS) should configure Kibana successfully
  • [job] [logs] FTR Configs #28 / Interactive Setup Functional Tests (Manual configuration) should configure Kibana successfully
  • [job] [logs] FTR Configs #28 / Interactive Setup Functional Tests (Manual configuration) should configure Kibana successfully

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observabilityOnboarding 34 36 +2

Async chunks

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

id before after diff
observabilityOnboarding 32.2KB 35.4KB +3.2KB

Page load bundle

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

id before after diff
observabilityOnboarding 4.3KB 4.4KB +56.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 398 401 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 478 481 +3
total +5

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@ogupte ogupte left a comment

Choose a reason for hiding this comment

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

just a few things, not really blockers.

.replace(/[\\\/]/, '');
const filenameParts = filenameWithExt.split('.');

return replaceSpecialChars(filenameParts[0]);
Copy link
Contributor

@ogupte ogupte May 10, 2023

Choose a reason for hiding this comment

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

we could probably just use the node path module instead:

import path from 'path';
const { name } = path.parse(filepath); // `name` is the basename without the extension

},
'.euiFormLabel > .euiFlexGroup > div:last-of-type': {
fontWeight: 'normal',
color: euiThemeVars.euiTextSubduedColor,
Copy link
Contributor

@ogupte ogupte May 10, 2023

Choose a reason for hiding this comment

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

We should probably use:

import {  useEuiTheme } from '@elastic/eui';
...
const { euiTheme } = useEuiTheme();

and then set

{ color: euiTheme.colors.subduedText }

Color values in euiThemeVars are not always the same as the EUI colors. In this case, dev tools shows the colors to be slightly off:

euiTheme.colors.subduedText: #81858f
euiThemeVars.euiTextSubduedColor: #7a7f89

@yngrdyn yngrdyn merged commit 4808a6d into elastic:main May 11, 2023
@kibanamachine kibanamachine added v8.9.0 backport:skip This commit does not require backporting labels May 11, 2023
yngrdyn added a commit that referenced this pull request May 15, 2023
This Pr is a follow up of
[PR#157008](#157008) and
[PR#157147](#157147).

Changes:

1. Replaced usage of `euiThemeVars` by `useEuiTheme` and
`useEuiFontSize`.
2. e2e cloudId following [cloud plugin
format](https://github.com/elastic/kibana/tree/main/x-pack/plugins/cloud#cloudid).
jasonrhodes pushed a commit that referenced this pull request May 17, 2023
This Pr is a follow up of
[PR#157008](#157008) and
[PR#157147](#157147).

Changes:

1. Replaced usage of `euiThemeVars` by `useEuiTheme` and
`useEuiFontSize`.
2. e2e cloudId following [cloud plugin
format](https://github.com/elastic/kibana/tree/main/x-pack/plugins/cloud#cloudid).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Logs Onboarding] Custom logs: Configure logs
5 participants