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

[Synthetics] Exploratory View visualizations broken in pending state #152230

Closed
dominiqueclarke opened this issue Feb 27, 2023 · 4 comments
Closed
Labels
bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.7.0 v8.8.0

Comments

@dominiqueclarke
Copy link
Contributor

dominiqueclarke commented Feb 27, 2023

Kibana version: 8.7.0

Description of the problem including expected versus actual behavior:

When configuring Synthetics, exploratory view embeddables appear to be broken when creating a monitor for the very first time, particularly if your first monitor is a browser monitor.

There are visualizations broken across Overview, Monitor Details and Management pages.

The errors are resolved after the first full monitor execution and after a hard refresh of the page.

Screen Shot 2023-02-27 at 9 38 09 AM

Screen Shot 2023-02-27 at 9 38 01 AM

Screen Shot 2023-02-27 at 9 37 52 AM

Screen Shot 2023-02-27 at 9 37 43 AM

Screen Shot 2023-02-27 at 9 37 32 AM

The snapshot was on https://github.com/elastic/kibana/commits/3868eb98a3c2a911da9f4e7daa029d9d8ccdfdc8

Steps to reproduce:

  1. elastic-package stack up --verison 8.7.0 -v
  2. log in to https://localhost:5601 with elastic changeme
  3. Create a private location (agents and agent policies will already be configured)
  4. Run a browser monitor against that private location
  5. Observe the broken experience throughout Overview and Monitor Details

Errors in browser console (if relevant): There seems to be a lot of io-ts errors related to monitor duration, for example

synthetics.chunk.3.js:3 API /internal/synthetics/overview_status is not returning expected response, Invalid value "719998" supplied to "downConfigs,171ef255-d25c-46be-a149-92618b5fa688-A private location,ping,state,duration_ms",Invalid value "858910" supplied to "downConfigs,b123651d-cf19-44d9-99ee-1f2f5fc0ccda-A private location,ping,state,duration_ms" for response 
@dominiqueclarke dominiqueclarke added bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.7.0 v8.8.0 labels Feb 27, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@drewdaemon
Copy link
Contributor

drewdaemon commented Feb 27, 2023

@dominiqueclarke was nice enough to walk me through this on both 8.7 and 8.6.

It looks like these errors are displayed on both versions before data is available (e.g. before the first run of a newly-created browser monitor).

The way these errors are shown did change in 8.7 (actually in the hopes of improving the situation). However, the 8.7 changes to Lens don't appear to have adversely affected this particular scenario.

Let me know if I missed anything!

Screenshots from 8.6

Screenshot 2023-02-27 at 12 03 28 PM

Screenshot 2023-02-27 at 12 03 34 PM

Screenshot 2023-02-27 at 12 03 42 PM

Screenshot 2023-02-27 at 12 03 47 PM

Screenshot 2023-02-27 at 12 03 57 PM

@dominiqueclarke
Copy link
Contributor Author

dominiqueclarke commented Feb 27, 2023

@paulb-elastic We've determined this bug is not quite as critical as previously thought, but does present a broken onboarding experience. Here's our observations.

  1. This bug appears when heartbeat data is still pending for the first time (first ever created monitor)
  2. This bug appears both on-prem and in cloud. In particular, if your first monitor is a browser monitor you're more likely to see this experience because browser monitors take longer to execute... and our getting started experience is oriented around browser monitors.
  3. In particular, you'll notice on the overview page that error is field state.id not found. This is because not every heartbeat document contains the state field, only the summary document. An ad hoc data view is created based on the data that is currently present, and since it doesn't find the state.id field it encounters this error. So while a browser monitor is in progress for the first time, this view would occur.
  4. This view persists until a hard refresh of the page
  5. In 8.8 we'll be doing away with the current monitor details pending experience in favor of a full page "warning" state that informs the user of the pending status. Visualizations on the monitor details page won't be shown until a complete execution of the monitor. This will resolve the issues seen on the monitor details page, but the issue will still persist on Overview without further fixes.

@dominiqueclarke dominiqueclarke changed the title [Synthetics] On-prem - Exploratory View visualizations [Synthetics] Exploratory View visualizations broken in pending state Feb 27, 2023
@paulb-elastic
Copy link
Contributor

Thank you both for looking into this in detail.

I think this seems like an edge case in 8.7 and will be an improved implementation in 8.8, so closing

@paulb-elastic paulb-elastic closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2023
@zube zube bot closed this as completed May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.7.0 v8.8.0
Projects
None yet
Development

No branches or pull requests

4 participants