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

Fix default Metricbeat config on Windows #2632

Merged
merged 1 commit into from
Sep 23, 2016

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Sep 23, 2016

The load metricset is not supported on Windows, and if it's enabled
in the configuration file, it makes Metricbeat exit immediately with
an error.

This change adjusted the configuration on Windows to exclude the load
metricset.

Fixes #2623.

The load metricset is not supported on Windows, and if it's enabled
in the configuration file, it makes Metricbeat exit immediately with
an error.

This change adjusted the configuration on Windows to exclude the load
metricset.

Fixes 2623.
@tsg tsg added review needs_backport PR is waiting to be backported to other branches. labels Sep 23, 2016
@tsg
Copy link
Contributor Author

tsg commented Sep 23, 2016

@elastic/beats this solution works, but I'm not entirely happy with it, as I'd prefer to minimize the changes we do to the default configs. Should we consider a way of automatically disabling metricsets/modules based on the platform?

@ruflin
Copy link
Member

ruflin commented Sep 23, 2016

An alternative solution is that instead of failing when a metricset does not exist that we want to load, that we only print an error. An option is to only log an error for the ones we exist but are not supported on this platform (special errors).

The problem with the automatic disabling is that when a user configures it and is not aware that it is not supported under windows, he will complain that no data is sent.

@ruflin ruflin merged commit dd43dd1 into elastic:master Sep 23, 2016
tsg pushed a commit to tsg/beats that referenced this pull request Sep 23, 2016
ruflin pushed a commit that referenced this pull request Sep 23, 2016
tsg added a commit to tsg/beats that referenced this pull request Sep 23, 2016
The load metricset is not supported on Windows, and if it's enabled
in the configuration file, it makes Metricbeat exit immediately with
an error.

This change adjusted the configuration on Windows to exclude the load
metricset.

Fixes 2623.
tsg added a commit to tsg/beats that referenced this pull request Sep 23, 2016
@tsg tsg mentioned this pull request Sep 23, 2016
@tsg tsg removed the needs_backport PR is waiting to be backported to other branches. label Sep 23, 2016
ruflin pushed a commit that referenced this pull request Sep 23, 2016
* Fix default Metricbeat config on Windows (#2632)

The load metricset is not supported on Windows, and if it's enabled
in the configuration file, it makes Metricbeat exit immediately with
an error.

This change adjusted the configuration on Windows to exclude the load
metricset.

Fixes 2623.

* Changelog item for #2632 (#2635)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
* Fix default Metricbeat config on Windows (elastic#2632)

The load metricset is not supported on Windows, and if it's enabled
in the configuration file, it makes Metricbeat exit immediately with
an error.

This change adjusted the configuration on Windows to exclude the load
metricset.

Fixes 2623.

* Changelog item for elastic#2632 (elastic#2635)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants