-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Elasticsearch-xpack] [Metricbeat] Fix elasticsearch-xpack error when Machine Learning is explicitly disabled #39990
Conversation
…ne Learning is explicitly disabled
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
@@ -72,3 +81,17 @@ func (m *MetricSet) Fetch(r mb.ReporterV2) error { | |||
|
|||
return eventsMapping(r, info, content, m.XPackEnabled) | |||
} | |||
|
|||
func (m *MetricSet) checkMLAvailability() (message string, err error) { |
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.
can we return boolean instead of a string ?
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.
Sure, changed ✅
This pull request doesn't have a |
package ml_job | ||
|
||
import ( | ||
"io/ioutil" |
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 am not sure why I see these errors - the same import exists in other files 🤔
@klacabane Thank you for the review! |
Closes #28087
Proposed commit message
This PR fixes
elasticsearch-xpack
error when Machine Learning is explicitly disabled by checking if the Machine Learning is enabled