Synthetics alerts and rules error

it occur an error when i click this

Error

Error: Cannot read properties of undefined (reading 'ui')
    at p (http://192.168.10.20:5601/68312/bundles/plugin/triggersActionsUi/1.0.0/triggersActionsUi.chunk.12.js:3:8968)
    at ua (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:59279)
    at ec (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:115190)
    at Pc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99978)
    at Nc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99800)
    at Dc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99633)
    at wc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:96466)
    at http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:45201
    at t.unstable_runWithPriority (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:433:3768)
    at Vo (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:44978)

can any one helps?

Hi @jevonsnotes ,

This is a bug on our size. Alerts in Synthetics are not yet as flexible as in Uptime or other places in Kibana.

If you need more flexibility with alerts, there's a workaround which allows you to utilize Uptime alerts to work with Synthetics. Hopefully it works for your use case.

Workaround

  1. Go in Kibana / Stack Management / Advanced Settings and then enable observability:enableLegacyUptimeApp (this step is necessary only if you do not have old Heartbeat alerts [Synthetics] Hide Uptime by default if no data · Issue #158731 · elastic/kibana · GitHub. If you already can see Observability -> Uptime app, this step is not necessary.)
  2. Go in Kibana / Observability / Uptime / Settings and then add synthetics-* to the Heartbeat indices. (for a typical Kibana setup the indices value will look like heartbeat-*,synthetics-*)
  3. You should now be able to use the Uptime alerts on Synthetics monitors. Note that you'll also start seeing Synthetic monitors in Uptime.
  4. Goto Stack Management / Rules / Create rule and select Uptime monitor status as rule type (or Uptime TLS if desired).

Note:

  • Uptime is not space aware (so it will be able to see all the Synthetics monitors on all spaces)
  • Uptime has several limitations with Synthetics monitors, so please be aware this should be considered as a workaround which can break at any time in the future

okey,thks for help

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.