resolves https://github.com/elastic/kibana/issues/126944
Adds a new configuration setting for the actions plugin,
xpack.actions.email.domain_allowlist, which is an array of domain name
strings which are allowed to be sent emails by the email connector.
* Rename the term "execution" in config to "run"
* Rename the term "execution" in config to "run"
* Rename the overlooked terms
* [DOCS] Fix example indentation
* Update docs/user/alerting/troubleshooting/alerting-common-issues.asciidoc
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
resolves https://github.com/elastic/kibana/issues/124366
Adds new task manager configuration keys.
- `xpack.task_manager.event_loop_delay.monitor` - whether to monitor
event loop delay or not; added in case this specific monitoring
causes other issues and we'd want to disable it. We don't know
of any cases where we'd need this today
- `xpack.task_manager.event_loop_delay.warn_threshold` - the number
of milliseconds of event loop delay before logging a warning
This code uses the `perf_hooks.monitorEventLoopDelay()` API[1] to collect
the event loop delay while a task is running.
[1] https://nodejs.org/api/perf_hooks.html#perf_hooksmonitoreventloopdelayoptions
When a significant event loop delay is encountered, it's very likely
that other tasks running at the same time will be affected, and so
will also end up having a long event loop delay value, and warnings
will be logged on those. Over time, though, tasks which have consistently
long event loop delays will outnumber those unfortunate peer tasks, and
be obvious from the volume in the logs.
To make it a bit easier to find these when viewing Kibana logs in Discover,
tags are added to the logged messages to make it easier to find them. One
tag is `event-loop-blocked`, second is the task type, and the third is a string
consisting of the task type and task id.
* Changing structure of minimumScheduleInterval config
* Updating rules client logic to follow enforce flag
* Updating UI to use enforce value
* Updating config key in functional tests
* Fixes
* Fixes
* Updating help text
* Wording suggestsion from PR review
* Log warning instead of throwing an error if rule has default interval less than minimum
* Updating default interval to be minimum if minimum is greater than hardcoded default
* Fixing checks
* Fixing tests
* Fixing tests
* Fixing config
* Fixing checks
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Begin work on building out the backend of an xMatters connector
* Begin work on building out the frontend of an xMatters connector
* Continue attempting to get connector to register properly
* Begin working on the UI for the Edit Connector Test page
* Start working on writing tests for backend component of the xMatters connector
* Remove unneeded test due to not having any fancy escaping
* Write tests for the frontend component of the xMatters connector
* Add documentation for new xMatters connector
* Begin working on functional tests
* Continue work on frontend for xMatters conenctor
* Continue work on backend for xMatters conenctor
* Continue work on the functional tests for the xMatters connector
* Update based on xMatters string reviews
* Remove hidden parameters from ui
* Continue working to get tests running successfully
* Fix my code after rebasing onto latest main
* Fix the xMatters server for the simluator
* Check if listening before listening to the xmatters server in simulator
* Continue work on improving the xMatters connector
* Update strings based on the xMatters team string review
* Remove the headers as an option for the xMatters connector
* Fix alignment of the xmatters logo on the connectors page
* Allow alertId and alertActionGroupName to be null in the xMatters connector for test requests
* Fix the functional tests for the xMatters connector
* Rename alertName to ruleName and remove headers from xMatters connector
* Continue removing headers and renaming alertName to ruleName
* Update the tests so all are passing
* Some clean up for the xMatters connector
* Update the doc images based on changes for the xMatters connector
* Change alert id to use rule id and alert id and be labeled as signal id in the xMatters connector
* Fix failing tests for xMatters connector
* Start addressing comments and failing builds
* Combine if statement
* Update test strings after updating error strings
* Begin making updates after discussions and reviews
* Update failing tests
* Few adjustments after my self review of the xMatters connector
* Fix one failing test
* Fix a few small bugs in the xMatters connector
* Address a few small bugs in the xMatters connector
* Address latest comments and fix a few tests on the xMatters connector
* Adjust naming of secretsUrl and configUrl
* Work on fixing tests for xMatters connector
* Begin updating the xMatters documentation
* Update based on build errors
* Update documentation typo
* Add validation tests for connectors created using the API
* Fix the failing functional tests
* Update docs after review from xMatters team
* Update accidentally duplicated translate id
* Fix small bugs and update based on xMatters team string reviews
* Fix failing tests due to string changes
* [DOCS] Fixes doc build errors
* Update based on comments and feedback
* Update docs based on feedback
* Fix failing functional tests
* Update based on the feedback
* Fix failures in the functional tests
* Remove accidentally added file
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
* add back monitoring.ui.metricbeat.index and deprecate
* add back to test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Removing minimumScheduleInterval on rule type registration
* Adding minimumScheduleInterval to config and enforcing in rule type registry
* Validating interval on create and update
* Fixing types and tests
* Fixing types and tests
* Fixing types and tests
* Passing config to client and using to validate on rule creation
* Fixing small bug and tests
* Fixing tests
* Fixing tests
* Fixing tests
* Updating interval in docs
* Updating interval in docs
* Updating UI copy
* Fixing types and tests
* Fixing i18n
* Fixing tests from bad merge
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* added docs for `xpack.reporting.csv.escapeFormulaValues` config and `xpack.reporting.csv.useByteOrderMarkEncoding`, and some minor auto-formatting
* some more auto-formatting changes
* addded some documentation to CSV escape function
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* remove allowed space setting
* set allowedSpaces as unused setting
* mock unused function in deprecation tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Metrics UI] Increase composite size for Metric Threshold Rule to 10K
* Adding performance optimizations
* Fixing metrics_alerting integration test
* fixing tests
* Fixing integration test and config mock
* Removing the setTimeout code to simplify to a for/of
* Adding new setting to docs
* Adding metric_threshold identifier to the config setting
* update puppeteer
* [Reporting] Use downloadable chromium build for the Mac OS headless browser
* fix test
* [Screenshotting] add new paths for mac browsers
* add bundled field to chromium download paths interface
* update build scripts
* polish
* log when skip
* stop downloading all packages every time
* pass the PackageInfo object to the install function
* remove eslint-disable-line
* fix call to getBinaryPath
* polish
* simplify plugin.ts
* fix unit test
* fix lint
* tweak gulp task to explicitly download chromium for all platforms
* ignore chromium when copying x-pack source
* simplify
* update documentation with steps to manually download chromium
* Apply Documentation suggestions from code review
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* update docs to cut redundancy
* clean up link to manual browser download
* wording choice adjustment
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
from `xpack.apm.autocreateApmIndexPattern` to `xpack.apm.autoCreateApmDataView`.
Note the capitalization change. It now is `autoCreate` instead of `autocreate`.
Fixes#120095.
* Handle ID's for preconfigured package policies
- For Fleet's default policies, add a hard-coded ID to the generated
package policies
- Require an ID value for all preconfigured package policies
Resolves#120612
* Add required package_policies.id field to docs
* Specify that id is unique in docs
* Tweak docs
* Fall back to UUID value if no preconfigured ID
* Fix default fleet server policy id
* [DOCS] document missing value for Microsoft Teams action
[DOCS] document missing value for Microsoft Teams action for xpack.actions.enabledActionTypes config.
eg: xpack.actions.enabledActionTypes: ['.email','.teams']
* include the full list of possible values
* Update docs/settings/alert-action-settings.asciidoc
LGTM
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* commit using @elastic.co
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Added cancel() to alerting task runner and writing event log document
* Updating rule saved object with timeout execution status
* Skip scheduling actions and logging event log for alerts if rule execution is cancelled
* Adding config for disabling skipping actions
* Fixing types
* Adding flag for rule types to opt out of skipping acitons
* Using task runner uuid to differentiate between task instances
* Adding functional test
* Default to timestamp when startedAt is not available
* Reverting previous change and updating task pool filter instead
* Fixing functional test
* Adding debug logging
* Fixing unit tests
* Fixing unit tests
* Adding rule name to event log doc and rule type timeout to log messages
* Simplifying register logic and adding check to see if already cancelled
* Updating task uuid based on PR comments
* Removing observable
* Fixing functional test
* Adding to docs
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>