-
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
Stack monitoring.entsearch - 8.0 compatibility #121975
Comments
Interesting that ent search bundles its own metricbeat:
Ah, end my engine went to "1" after a bit. Looks like ent search monitoring happens via it's own module without any sort of "xpack" setting. |
So I think for the scope of #120825 ent search is basically okay, but there's a risk of breakage from #119112 due to the ent search documents landing in
.monitoring-ent-search-* but in my test setup there are no indices there.
Additionally if I set |
I'll leave this open to address the issue of the data going to |
Looks like 7.16.2 also lands the enterprise search data into |
Alternatively we might consider reverting #120630 and not supporting entsearch stack monitoring until 8.1. |
Looks like we'll need to introduce a conditional on I'm wondering where the index template for entsearch is created though, did the module always wrote to |
@richkuz Can you clarify what the the expected behavior is to where docs should be landing? As @klacabane said, we don't officially support data in the |
@carlosdelest returns on Thursday and may know the answer to this question. @ioanatia would you happen to know in the interim? |
I believe that the original intention was to use the In order for the metricbeat dashboard to work, indices had to be renamed to @kovyrin had the intention to change the index pattern for 8.0:
So, I think the changes needed on Enterprise Search are:
Changes on Kibana side would be to use the Does it make sense to you @richkuz , @neptunian , @matschaffer , @klacabane ? What would be the feasible release version target for making these changes? |
Stack monitoring already uses Now we've planned to drop support for |
I believe Metricbeat does this automatically, according to the
@richkuz , I believe this could be done for 8.0 release and seize the opportunity to make the breaking changes now. I can work on that and try to get it done before the next BC to ensure we have time to double check. |
Thanks @carlosdelest , this plan makes sense to me. I think we should proceed with the proposed changes for 8.0. cc @serenachou Can/should we also change these 8.0 monitoring dashboards to work with the new index names, too? We'll also need to update this section of our documentation. |
I haven't written one, but I've used reindexing steps as part of the kibana upgrade assistant in the past. Not sure timing aligns well though. We'd need to get the assistant code merged and released as part of 7.(final) ahead of 8.0 release. Not sure if @jasonrhodes, @smith, or maybe another participant in this issue can recommend a person/approach to get a reindex step built into the upgrade assistance on such short notice. |
TLDR; We need to make work in Metricbeat, Elasticsearch and Enterprise Search to do this change using Metricbeat 8.0. I suggest we use a Metricbeat 7.16 vendored version in Enterprise Search 8.0, and then transition to Metricbeat 8.0 once we can get the needed work done. Metricbeat 8.0 needed workSome things have changed for Metrictbeat 8.0 that makes difficult to change the indices used to Specific monitoring products (Logstash, Kibana, Elasticsearch) have associated index templates (included into Elasitcsearch) that create these data streams when events are received for the matching index patterns. Metricbeat modules use In case we want to use Metricbeat 8.0 version, the following changes need to be made:
That way, when Enterprise Search Metricbeat module sends events, the appropriate data stream according to the template will be created with the expected name pattern. I think this might be risky to land in 8.0, as it implies changes both in Metricbeat and Elasticsearch and we're already in RC1. Use vendored Metricbeat 7.16 versionWe could use a vendored Metricbeat version 7.16 in Enterprise Search, and keep using ILM to generate Once we complete the work needed to use Metricbeat 8.0 version in Enterprise Search, we can switch the vendored version and create the corresponding data stream. As the index pattern for stack monitoring would hit both the ILM indices created by 7.16 and the data stream created by 8.0, there would be no migration needed. Please confirm this is possible and I'm not getting this wrong! Thoughts? |
Added @sayden into the loop for review of the above approach |
I'm wondering if we can omit that branch completely and write directly to
Agree with this although we recently did all the required work for the supported stack monitoring modules, so we have a clear footprint of the work needed to be done and I'm happy to help on this, but again we're pretty late in the release schedule
Correct, stack monitoring will pull any data matching |
Looks like some PRs are open here (thanks @carlosdelest! 🧡 ), we may want to perform our overview testing using code from those PRs. |
As commented here, there are two different tests that can be performed:
Both work out of the box with the current Stack Monitoring Kibana plugin, and should be compatible in the future (we can switch to the Metricbeat implementation in the future and not lose the data ingested by the current approach). The new implementation (Metricbeat module + Elasticsearch templates) will be targeted for 8.1. |
Ah great. I tested |
We can wait for the Metricbeat + Enterprisesearch definitive solution for 8.1. We could create a separate issue for it, and close this one when your testing finishes 👍 |
Tested with 8.0.0 snapshot and verified SM UI was powered by |
Though I think in 8.0 if someone tries to use an external metricbeat to monitor ent search, the docs will land in We should probably have something in documentation so customers don't try to do that. Lots of other docs push the user toward metricbeat for monitoring, so seems reasonable someone would try it with ent search. |
Basically thinking we should probably remove this page before we launch 8.0 https://www.elastic.co/guide/en/beats/metricbeat/8.0/metricbeat-module-enterprisesearch.html - as well as the bullet point on https://www.elastic.co/guide/en/enterprise-search/8.0/monitoring.html for "External Metricbeat Monitoring" Alternatively, backport @carlosdelest 's changes to 8.0 and try to get them in the next beats 8.0 rc. |
The module will work correctly, but it won't be compatible with Stack Monitoring. Would that be a good enough reason for removing it from documentation? Users can still use custom dashboards to display information.
We got this in https://github.com/elastic/enterprise-search-pubs/pull/1954/files for Enterprise Search:
We'd need to land elastic/elasticsearch#82743 as well in the next Elasticsearch 8.0 rc. I believe coordinating the two changes together at RC2 is risky, happy to discuss though. |
Based on Carlos statement: that the user can still use the custom dashboards, it seems like it would be still fine to keep that line in. But I thought y'all were trying to get rid of metricbeat-* entirely? Maybe I saw that out of context somewhere but wanted to check if there's any issue if customers continue to utilize it until we settle al the compatibility tickets? |
Ah, sweet. I have some mild concern that users will click the link in https://www.elastic.co/guide/en/enterprise-search/8.0/monitoring.html#monitoring-overview and never see the warning further down the page. But at least it's there for reference in any possible support cases that might come as a result of users attempting to monitor ent search with metricbeat 8.0
It's been removed in https://github.com/elastic/kibana/pull/119112/files#diff-e73bd280b80c4cce6c0f3c372573b8c6394d189bb9611f202501734744a55837 for 8.1 and onward. So if users do set up their ent search metrics to ingest into |
Thanks for your feedback @matschaffer ! Is there anything else we need to wrap this up? Do you think we can close this issue, as it has already been tested for 8.0? We can keep the work in the one opened for 8.1. Thanks! |
Moving to close a part of the packages sync we're having atm. |
Enterprise search stack monitoring seems to work in 8.0
But the data is being ingested into
metricbeat-*
We have plans to remove these indices from search paths due to a large number fo support cases, so we probably shouldn't release 8.0 with stack monitoring data there.
The text was updated successfully, but these errors were encountered: