Closed awahab07 closed 2 years ago
Resolved in https://github.com/elastic/kibana/pull/119446
I have just started post-FF testing this feature and indeed I do get the messages you mentioned in the issue when I enabled the configuration you've pasted.
xpack.uptime.unsafe.service.enabled: true
xpack.uptime.unsafe.service.password: test
xpack.uptime.unsafe.service.manifestUrl: https://test.com
xpack.uptime.unsafe.service.username: test
xpack.uptime.unsafe.service.hosts: ["test.com"]
xpack.uptime.unsafe.service.enabled
to false, those messages do not appear.I'd also like to test this with the actual service running alongside Kibana before moving it into Done done
, so I wonder whether I could borrow 30 minutes from someone to inform me how I could better test that. Would anyone volunteer?
FWIW I have also tested the basic feature and seen the feature flag remove the logging as expected.
As I was post-FF testing this, I've ran into a couple of problems. I'm not totally sure whether I've done anything incorrectly for them to appear or if they're actual problems we should look into, so I'll report them here.
I have found the message in the screenshot below in the Uptime > Monitors
page after setting a monitor through the monitor management UI.
That message only went away once I've ran a container with Heartbeat and setup the indexes using heartbeat setup
.
To reproduce, my exact steps were:
xpack.uptime.unsafe.service.enabled: true
xpack.uptime.unsafe.service.manifestUrl: [MANIFEST REDACTED]
xpack.uptime.unsafe.service.username: example
xpack.uptime.unsafe.service.password: [PASSWORD REDACTED]
xpack.uptime.unsafe.service.hosts: [my_deployment_url]
xpack.uptime.ui.unsafe.monitorManagement.enabled: true
Then, to fix:
bash
within the container so that you can execute heartbeat setup
I suspect that in this case it's me doing something wrong, but I couldn't get monitors to run in the service using the monitor management UI.
How to reproduce:
xpack.uptime.unsafe.service.enabled: true
xpack.uptime.unsafe.service.manifestUrl: [MANIFEST REDACTED]
xpack.uptime.unsafe.service.username: example
xpack.uptime.unsafe.service.password: [PASSWORD REDACTED]
xpack.uptime.unsafe.service.hosts: [my_deployment_url]
xpack.uptime.ui.unsafe.monitorManagement.enabled: true
@lucasfcosta To address the two concerns
This is currently expected until https://github.com/elastic/kibana/issues/121402. Right now, the service indexes to heartbeat-*
instead of synthetics-*
. Because of this, you must be run heartbeat setup
against the es cluster beforehand. This is a current known limitation and not the tech-preview-ready expectation.
There is a handful of reasons this could be happening. It may be good to check your Kibana logs and see if it reports errors. I don't believe testing the progression of the Synthetics service e2e should be in scope for this ticket, as it is an in-progress feature.
@dominiqueclarke makes sense, thanks for the explanation.
Considering that you've mentioned the Synthetics service tests should be out of scope for this ticket I'll then move this issue to "done done" given I've already checked the logs which @awahab07 mentioned above when explaining how to test it.
Summary
Part of Meta Issue: https://github.com/elastic/uptime/issues/400
Add the config entries for synthetics service
xpack.uptime.unsafe.service.enabled
Will enable the feature flag whentrue
, and setup of the task manager, registration of saved objects to store monitor management monitor, API key generation to pass it to service and installation of fleet package for index templates will start on Kibana startup.How To Test
Paste the above configuration in your local
<kibana-directory>/config/kibana.dev.yml
and restart kibanaWhen
xpack.uptime.unsafe.service.enabled
istrue
:When
xpack.uptime.unsafe.service.enabled
isfalse
: