kibana/config
Eyo O. Eyo fd4e551340
[Intercept] Setup intervals for intercept in Kibana offerings (#221743)
## Summary

- Adds configuration for the product intercept in `oblt`, `es` and
`security` serverless offerings, alongsides stateful offering too. The
configuration provided sets the intercept to display every 90days, this
is configurable through the config `xpack.product_intercept.interval`.
The intercept can also be turned off through the config
`xpack.product_intercept.enabled`
- Also tweaks prompter timer implementation to accommodate inherent
[issue with long timer
delays](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout#maximum_delay_value)
in the browser
- Adjusts the signature of the `registerIntercept` method, such that a
deferred value to be evaluated when the intercept is to be displayed is
passed. This unlocks the ability to have consumers provide dynamically
imported modules that provide the config for the intercept, see
0e07892217
for an example.

### How to test

- Add the following config to your `kibana.dev.yml` file;
	```yml
	xpack.product_intercept.enabled: true
# we set the interval to 30s so the wait long period to display the
intercept is bearable
	xpack.product_intercept.interval: '30s'
	```
- Start kibana in stateful, and serverless mode, in either scenario you
should be presented the product intercept, with the intercept
specifically stating the current product the user is interacting with.
See below for an example of observability solution;
	


https://github.com/user-attachments/assets/6ca6baf2-58d3-4002-ac94-ec6e9a0902ae


<!--
### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...


-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-06-23 20:45:31 +02:00
..
kibana.yml [docs] Update kibana.yml defaults (#206423) 2025-01-13 20:55:24 +01:00
node.options Upgrade Node.js to 20.19.2 (#221177) 2025-06-09 12:17:42 -05:00
README.md [Core] Udpate pricing service docs (#223348) 2025-06-11 10:17:42 +02:00
serverless.chat.yml [Intercept] Setup intervals for intercept in Kibana offerings (#221743) 2025-06-23 20:45:31 +02:00
serverless.es.yml [ML] Trained Models: Hide Adaptive Allocations Toggle in Serverless (#224097) 2025-06-18 15:52:15 +02:00
serverless.oblt.complete.yml [Observability] [Serverless] Introduce custom roles (#219861) 2025-06-13 22:03:49 -04:00
serverless.oblt.logs_essentials.yml [Obs AI Assistant] Disable in Logs Essentials mode (#223236) 2025-06-20 12:47:25 +02:00
serverless.oblt.yml [ML] Trained Models: Hide Adaptive Allocations Toggle in Serverless (#224097) 2025-06-18 15:52:15 +02:00
serverless.security.complete.yml [AI4DSOC] [REVERT] Disable Visualize, Lens and Maps for Search AI Lake Tier #218089 (#221141) 2025-05-21 13:39:09 -05:00
serverless.security.essentials.yml [AI4DSOC] [REVERT] Disable Visualize, Lens and Maps for Search AI Lake Tier #218089 (#221141) 2025-05-21 13:39:09 -05:00
serverless.security.search_ai_lake.yml [Security][9.1] Security roles siemV3 migration for Global Artifact Management (#219566) 2025-06-23 16:14:13 +02:00
serverless.security.yml [Security][9.1] Security roles siemV3 migration for Global Artifact Management (#219566) 2025-06-23 16:14:13 +02:00
serverless.yml [Intercept] Setup intervals for intercept in Kibana offerings (#221743) 2025-06-23 20:45:31 +02:00

as work on serverless picks up we will add config values to these files that define how Kibana will run in "serverless" modes. To start Kibana locally with this configuration, pass --serverless={mode} or run yarn serverless-{mode}

valid modes are currently: es, oblt, security and chat

configuration is applied in the following order, later values override

  1. serverless.yml (serverless configs go first)
  2. serverless.{mode}.yml (serverless configs go first)
  3. serverless.{mode}.{tier}.yml (serverless specific tier configs if tier is set)
  4. base config, in this preference order:
  • my-config.yml(s) (set by --config)
  • env-config.yml (described by env.KBN_CONFIG_PATHS)
  • kibana.yml (default @ env.KBN_PATH_CONF/kibana.yml)
  1. kibana.dev.yml
  2. serverless.dev.yml
  3. serverless.{mode}.dev.yml
  4. serverless.{mode}.{tier}.dev.yml