-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Deprecate Monitoring Settings #79499
Deprecate Monitoring Settings #79499
Conversation
Pinging @elastic/es-data-management (Team:Data Management) |
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.
LGTM once you track down all the expectWarnings
!
@elasticmachine update branch |
This reverts commit 287fae4.
Pinging @elastic/clients-team (Team:Clients) |
Test fixes LGTM. Spoke with Jimmy and the test code removed is/was dead. Monitoring was enabled for testing but never actually tested anything. With the new deprecation some other tests tripped over the fact that a setting was deprecated. So the test code that set the deprecated setting was removed since it was never actually used to test anything. |
@elasticmachine run elasticsearch-ci/bwc |
This PR deprecates all monitoring settings as well as adds deprecation info entries for each setting. Collecting and shipping monitoring data using the Monitoring plugin will be deprecated in 7.16 and will be removed at some point in the 8.x line after sufficient wait time. The recommended approach for collecting and shipping monitoring data going forward is to use Metricbeat. The recommended approach for alerting is Kibana alerting. Backport of #79499
@jbaiera @jasonrhodes I was poking around ES source for the 8.0 compatibility testing and I noticed that this deprecation warning is still in place. Should I open an issue to revert this change? |
@matschaffer - can you be more specific in which deprecations you noticed for which workflows ? Legacy monitoring is deprecated so those should emit warnings (except on Cloud) and metricbeat/Fleet based monitoring should not emit warnings. |
Right, what @jakelandis said -- for a long time now, Internal Collection has been "deprecated" and Metricbeat collection (standalone) has been "recommended". There was a plan at one point to use 8.0 to remove Internal Collection and leave only metricbeat and agent/package collection, which is what we decided to shy away from. Instead, we decided to keep everything as-is: Internal Collection is deprecated but available for the foreseeable future. Standalone Metricbeat collection is recommended. Packages will become recommended when they are available and stable, at which point we will deprecate standalone metricbeat collection as well. Then at some glorious point in the far future, both Internal and Standalone Metricbeat collections will be removed and only packages will remain (and whatever comes after packages, likely 😆 ) |
@jakelandis sorry guess I should have been more specific, but basically what @jasonrhodes said. Since we're keeping everything as-is for now I was wondering if we should remove the deprecation warnings from ES code as well. I think where I noticed it was when running ES (via
I guess it's a question of how far ahead we want to show the warnings and balancing the log noise. We have some internal threads like the "[TTL: 3 days] 7.17 Reducing deprecations from Elasticsearch" email that went to the kibana contributors list. Not sure where to balance warning the ES/kibana operator vs too much log noise. |
That command line is setting the deprecated settings and when Kibana is updating/reading settings the deprecation is emitted. In a new cluster these warnings should not be emitted and if Metric Beat monitoring is used these should also not emitted. |
This PR deprecates all monitoring settings as well as adds deprecation info entries for each setting.
Collecting and shipping monitoring data using the Monitoring plugin will be deprecated in 7.16 and will be removed at some point in the 8.x line after sufficient wait time. The recommended approach for collecting and shipping monitoring data going forward is to use Metricbeat. The recommended approach for alerting is Kibana alerting.