-
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
[Infrastructure UI] investigate any impact of synthetic source in Infrastructure UI #139391
Comments
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
I've done a pass of the Metrics code (Felix looked at Logs here: https://github.com/elastic/obs-infraobs-team/issues/805#issuecomment-1195455773). There are some objects pulled from
The process list pulls the following: rt.type({
_source: rt.type({
process: rt.type({
pid: rt.number,
}),
system: rt.type({
process: rt.type({
state: rt.string,
}),
}),
user: rt.type({
name: rt.string,
}),
}),
}) again the actual values are simple types, so this looks fine. The only two potential issues I could see were:
When dealing with ML records the influencers: rt.array(
rt.type({
influencer_field_name: rt.string,
influencer_field_values: rt.array(rt.string),
})
), Depending on how this is used it could run in to the I don't think any of the other caveats are an issue, e.g. sorting etc. |
Thanks for looking into this @Kerry350 . So for the two potential issues it sounds like we'd need to dig into the UI and see exactly how we are using them? Was hoping that could be done as part of this issue though not sure you'll have time before 8.5. I can take that over if need be. Was thinking we could also test by changing the mappings and ingesting data elastic/elasticsearch#85649 |
I didn't have time to look at this in depth in the UI earlier (I wanted to do a pass on the code first, as there's sometimes combinations / states that get missed testing via the UI), but I had some time this evening. For the ML issue the influencers are always For the wildcards from
100% - however, I don't know if there's a much easier way to test this realistically, but I really struggled. I was using Metricbeat, and wanting to update the mappings to use:
(One thing to note is it's but I kept having problems:
Did you have any ideas on how to apply this, whilst also keeping the data ingestion realistic? Even building from source and adding the mapping, it will conflict with many others 🤔 The best I was able to do was just apply the synthetic mode on the index template, and ingest data which fell back to ES guessing the mapping types for the fields. Which is no use really. These are the sort of things that occur when trying to utilise this against Metricbeat. Although on the last one I think I just found a bug in the index management UI 😅 |
I also tried adding ?force_synthetic_source to queries and got 400 responses when trying to query the metricbeat data stream. Will see if I can more info on the status of metricbeat's mappings compatibility with synthetic source so we can test with real data. For now just looking at how the code uses the issues mentioned:
For ML anomalies I think there would be an issue. Currently we query
We Since I can't actually test what it will look like with synthetic source turned on I am thinking
If this is the case our code would break. I brought this to the attention of the ML team and @droberts195 and he said they have no plans to support synthetic source for the ML internal indices. The reasoning being that the "low(er) volume ML results indices can stay as they are now" as they would not see much of the benefits as higher volume indices. |
As part of https://github.com/elastic/obs-infraobs-team/issues/805, see if are using
_source
anywhere that might be impacted with the implementation of synthetic source and track them here.The text was updated successfully, but these errors were encountered: