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

[Ingest Manager] UI to configure agent log level #84112

Merged

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Nov 23, 2020

Summary

Depends on elastic/beats#22690

Allow to configure the agent log level from the UI.
If the agent version is smaller than 7.11 the feature is not available and will not be displayed.

It's not possible to change the log level to the current agent log level.

UI Change

Display the log level in the agent details

Screen Shot 2020-11-23 at 9 29 01 AM

Allow to select log level

2020-11-23 11-11-24 2020-11-23 11_13_37
Screen Shot 2020-11-23 at 12 15 32 PM

@nchaulet nchaulet added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 labels Nov 23, 2020
@nchaulet nchaulet requested a review from a team November 23, 2020 16:16
@nchaulet nchaulet self-assigned this Nov 23, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@nchaulet nchaulet force-pushed the feature-allow-to-configure-log-level branch from 63c3ad3 to 493381e Compare November 23, 2020 17:15
@nchaulet nchaulet requested a review from jen-huang November 23, 2020 17:16
Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! A few copywriting comments but not blocking.

setAgentLogLevel(selectedLogLevel);
notifications.toasts.addSuccess(
i18n.translate('xpack.fleet.agentLogs.selectLogLevel.successText', {
defaultMessage: 'Changed agent logging level to "{logLevel}".',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think our copywriting convention would dictate single quotes and no period here

Suggested change
defaultMessage: 'Changed agent logging level to "{logLevel}".',
defaultMessage: `Updated agent logging level to '{logLevel}'`,

cc @gchaps

Copy link
Member Author

Choose a reason for hiding this comment

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

All of our other quoted text use single quote I will do the change

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, the guideline is to use single quotes.

);
} catch (error) {
notifications.toasts.addError(error, {
title: 'Error',
Copy link
Contributor

Choose a reason for hiding this comment

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

should be translated and given additional context, like Error updating agent logging level
cc @gchaps

Copy link
Contributor

Choose a reason for hiding this comment

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

Also could be "Cannot update agent logging level"

Can

indexPattern: {
title: AGENT_LOG_INDEX_PATTERN,
fields: [LOG_LEVEL_FIELD],
},
field: LOG_LEVEL_FIELD,
query: '',
});
setLevelValues(values.sort());
setLevelValues([...new Set([...LEVEL_VALUES, ...values.sort()])]);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 433 435 +2

Async chunks

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

id before after diff
fleet 1.1MB 1.1MB +8.6KB

Page load bundle

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

id before after diff
fleet 374.6KB 374.7KB +89.0B

History

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

@nchaulet nchaulet merged commit e4ff981 into elastic:master Nov 24, 2020
@nchaulet nchaulet deleted the feature-allow-to-configure-log-level branch November 24, 2020 13:41
nchaulet added a commit to nchaulet/kibana that referenced this pull request Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants