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

Uptime Monitor Management - Adjust monitor details page href for browser monitors #122533

Conversation

dominiqueclarke
Copy link
Contributor

@dominiqueclarke dominiqueclarke commented Jan 10, 2022

Fixes #121549

Summary

This PR adjusts the monitor details url in Monitor Management, specifically for browser monitors.

Depending on the type of browser monitor, inline or suite, heartbeat appends to the monitor id.

For inline monitors, the monitor id supplied by kibana is appended with -inline.

Suite monitors are not currently supported by Monitor Management, so we only have to support inline monitor ids. In a future version, this logic will need to be adjusted to account for suites.

Testing

  1. Connect to a hosted instance of Elasticsearch. The best way to do this is connect via oblt-cli.
  2. Add these keys to your Kibana.yaml, including the URL for your remote Elasticsearch host. https://p.elstc.co/paste/63O1Z7Go#o1V84AgBIaU2CNNpbTWvhhSILnYMbF8BrORkxoN6Tfo
  3. Navigate to /app/uptime/add-monitor and create a browser monitor
  4. Wait for data to be indexed
  5. Navigate to /app/uptime/manage-monitors and click on the name of the monitor to link to the monitor detail page.
  6. The link should navigate successfully to the details page for the monitor configured

@dominiqueclarke dominiqueclarke added bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.1.0 release_note:skip Skip the PR/issue when compiling release notes labels Jan 14, 2022
@dominiqueclarke dominiqueclarke marked this pull request as ready for review January 14, 2022 18:18
@dominiqueclarke dominiqueclarke requested a review from a team as a code owner January 14, 2022 18:18
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

href={`${basePath}/app/uptime/monitor/${Buffer.from(
/* Monitor Management currently only supports inline browser monitors.
* Inline browser monitors append `inline` to the monitor id */
`${id}${type === DataStream.BROWSER ? `-inline` : ''}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought we are going to handle this in heartbeat elastic/beats#29505
But if you doing this as a makeshift solution. I am fine by it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shahzad31 That only accounts for removing the appended - Inline in the journey title, not the id, or at least it should. We already opened pandora's box with this id scheme, we can't change it now or we'll lose the history for these monitors.

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@dominiqueclarke
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
uptime 688.3KB 688.4KB +51.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dominiqueclarke dominiqueclarke changed the title Uptime Monitor Management - Adjust monitor details page href for moni… Uptime Monitor Management - Adjust monitor details page href for browser monitors Jan 17, 2022
@dominiqueclarke dominiqueclarke merged commit ba60155 into elastic:main Jan 17, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jan 17, 2022
@dominiqueclarke dominiqueclarke deleted the fix/monitor-management-browser-monitor-ids branch January 17, 2022 02:04
shahzad31 added a commit that referenced this pull request Jan 31, 2022
…for monitor management table (#122533)"

This reverts commit ba60155.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.1.0
Projects
None yet
5 participants