-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Monitoring] Metricbeat migration for logstash, beats and apm #40442
[Monitoring] Metricbeat migration for logstash, beats and apm #40442
Conversation
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
retest |
💔 Build Failed |
💔 Build Failed |
1be61d7
to
bc03b08
Compare
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
x-pack/legacy/plugins/monitoring/public/components/apm/instances/instances.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/monitoring/public/components/cluster/overview/apm_panel.js
Show resolved
Hide resolved
x-pack/legacy/plugins/monitoring/public/components/cluster/overview/apm_panel.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/monitoring/public/components/cluster/overview/beats_panel.js
Show resolved
Hide resolved
x-pack/legacy/plugins/monitoring/public/components/cluster/overview/logstash_panel.js
Show resolved
Hide resolved
x-pack/legacy/plugins/monitoring/public/components/logstash/listing/listing.js
Outdated
Show resolved
Hide resolved
<EuiText> | ||
<FormattedMessage | ||
id="xpack.monitoring.metricbeatMigration.apmInstructions.metricbeatSecuritySetup" | ||
defaultMessage="If security features are enabled, there may be more setup required.{link}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you might need a space after the dot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a space in the link fragment actually that should get the job done, unless you're not seeing a space when running it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was just looking from the code point of view, but I understand now. Will test in a little bit 👍
|
||
const enableMetricbeatModuleStep = { | ||
title: i18n.translate('xpack.monitoring.metricbeatMigration.apmInstructions.enableMetricbeatModuleTitle', { | ||
defaultMessage: 'Enable and configure the beat x-pack module in Metricbeat' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe capitalize Beat
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure in this case as the module is called beat-xpack
. I can go either way I guess. Anyone else have thoughts here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, Beat
is still a proper name in the same way that we capitalize Metricbeat
. Though, I will grant you that the naming scheme that was chosen makes this feel a little awkward. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed!
...blic/components/metricbeat_migration/instruction_steps/apm/enable_metricbeat_instructions.js
Outdated
Show resolved
Hide resolved
<EuiText> | ||
<FormattedMessage | ||
id="xpack.monitoring.metricbeatMigration.beatsInstructions.metricbeatSecuritySetup" | ||
defaultMessage="If security features are enabled, there may be more setup required.{link}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need space after the dot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my note from the other comment about needing a space after the dot
...ic/components/metricbeat_migration/instruction_steps/beats/enable_metricbeat_instructions.js
Show resolved
Hide resolved
...ic/components/metricbeat_migration/instruction_steps/beats/enable_metricbeat_instructions.js
Outdated
Show resolved
Hide resolved
<p> | ||
<FormattedMessage | ||
id="xpack.monitoring.metricbeatMigration.logstashInstructions.disableInternalCollection.note" | ||
defaultMessage="You'll need to restart logstash after making this change" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe capital Logstash
?
<EuiText> | ||
<FormattedMessage | ||
id="xpack.monitoring.metricbeatMigration.logstashInstructions.metricbeatSecuritySetup" | ||
defaultMessage="If security features are enabled, there may be more setup required.{link}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after dot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my other comment about this
Everything looks good! Great job 💪 |
💚 Build Succeeded |
…c#40442) * Support for logstash * Beats support * Fix cherry-pick api issue * Support for logstash * Updates for beats and logstash * APM migration working * Tweaks for beats migration * Update copy for setup new button * If on cloud, disable setup mode * Handle new beat flow better * Better phrasing for APM * Add beat type to disable step * Fix i18n issue * Fix jest tests * Fix api tests * PR feedback * Update copy * Remove unnecessary code * Undo changes that are now in a separate PR * Disable more links * Fix overview link for logstash * PR feedback * Fix tests * PR feedback * PR feedback * Capitalize Beat per PR feedback
#42455) * Support for logstash * Beats support * Fix cherry-pick api issue * Support for logstash * Updates for beats and logstash * APM migration working * Tweaks for beats migration * Update copy for setup new button * If on cloud, disable setup mode * Handle new beat flow better * Better phrasing for APM * Add beat type to disable step * Fix i18n issue * Fix jest tests * Fix api tests * PR feedback * Update copy * Remove unnecessary code * Undo changes that are now in a separate PR * Disable more links * Fix overview link for logstash * PR feedback * Fix tests * PR feedback * PR feedback * Capitalize Beat per PR feedback
Backport: 7.x: 1597b30 |
This PR is step 3 of the Metricbeat setup wizard.
It adds MB migration UX for logstash, beats and APM, including net new user experience as well as migration from internal collection.
This PR builds upon the functionality added in the two step 2 PRs, part 1 and part 2.
In addition, this PR also adds a button to the bottom of each stack products' listing page that allows the user to access the setup wizard to add monitoring for a new node/instance:
Also, this PR takes advantage of the fact that we're attempting to detect if certain stack products exist, based on known indices. This wasn't something that mattered in previous PRs as we can know for certain that a Kibana and ES exist if they are in the stack monitoring UI.
Lastly, this PR adds code to disable entering setup mode if on cloud.
During testing, we realized that logstash and beats can potentially contain mb monitoring documents without a
cluster_uuid
(which would put those instances in the standalone cluster) so we built a flow in the wizard to let the user know the location of this instance/node will change. In this flow, the user is required to check the checkbox to finish the wizard. Here is what that looks like:Testing
The first thing to talk about is enabling this "Setup Mode". The most straight forward way is to just update the query string in the url, by adding this to the global state param:
,inSetupMode:!t
. A final, working URL will look something like: http://localhost:5601/app/monitoring#/elasticsearch/nodes?_g=(cluster_uuid:qtoNYcCxQdK-9BGIdPN_lw,inSetupMode:!t)yarn add elastic-apm-node
scripts/kibana.js
:require('elastic-apm-node').start({})
Existing Issues
cluster_uuid
as a result). This can be addressed in testing by deleting thedata
directory in the beat and restarting.