This issue is to track all the requirement/enhancements we need in Kibana uptime public code to interact with synthetics service and respective server code in the uptime app.
Feature flag implementation
[x] elastic/uptime#408
This could be a new feature flag, for example, xpack.uptime.unsafe.service.enabled or an existing service-only key that we will set directly for our private beta customers xpack.uptime.unsafe.service.url.
Add / Edit Monitors:
[x] elastic/uptime#409
Add a new page to create and save a heartbeat monitor. Existing components and state management from the Elastic Synthetics Integration should be reused where possible. Saving a monitor should save the configuration to saved objects.
[x] elastic/uptime#412
Add a new page to edit a monitor based on id will need to define a scheduled task using Kibana task manager, which will run periodically to push monitor configurations to the synthetics service
[x] elastic/uptime#413
We need to pass an API key generated by kibana to the synthetic service, that will be used by heartbeat to communicate with elasticsearch.
[x] Ensure Elastic Synthetics package and index templates are created is installed before loading the add monitor
Before a monitor can successfully be created, we must ensure the mappings are created and the API key exists
[x] Ensure that the latest synthetics integration package is installed when editing a policy
Just like the creation flow, we must ensure that the latest version of the integration package is installed when editing a monitor.
This issue is to track all the requirement/enhancements we need in Kibana uptime public code to interact with synthetics service and respective server code in the uptime app.
Feature flag implementation
xpack.uptime.unsafe.service.enabled
or an existing service-only key that we will set directly for our private beta customersxpack.uptime.unsafe.service.url
.Add / Edit Monitors:
Creation flow, save redirect
Management page, "new" monitors
Validation
Monitor Management Table
One shot mode
Run Now/Trigger now mode
Creation flow dependencies
Resolved by https://github.com/elastic/kibana/pull/119727 and Fleet auto upgrade flow
Edit flow, ensure package spec is up to date
Resolved by https://github.com/elastic/kibana/pull/119727 and Fleet auto upgrade flow
Polish
@every 3m
to a more readable format: https://github.com/elastic/kibana/issues/125739Enhancments
Bugs