Commit graph

43 commits

Author SHA1 Message Date
Bena Kansara
5a2b80f8db
Add feature flag for new Threshold Alert details page (#162394)
Resolves https://github.com/elastic/kibana/issues/162393

Adds a new feature flag
`xpack.observability.unsafe.alertDetails.observability.enabled` to
show/hide threshold alert details page until it is ready for GA.
2023-07-27 11:53:29 +02:00
Dario Gieselaar
4ae94c3502
[Observability] Add feedback buttons for prompts (#160351)
Co-authored-by: Sean Heelan <sean@optimyze.cloud>
2023-07-12 15:58:13 -04:00
Dario Gieselaar
c5dace2e3b
[Observability] Rename coPilot settings to aiAssistant (#160144) 2023-06-21 08:33:07 -07:00
Kevin Delemme
65b776280f
feat(composite-slo): add feature flag (#159427) 2023-06-13 13:13:51 -04:00
Faisal Kanout
2d4f19e2ac
[AO] Create a new rule under Observability plugin based on the metrics threshold rule (#158665)
## Summary
### NOTE: This is a draft PR to MVP the new rule combination
(Threshold). More PRs to follow up
It fixes https://github.com/elastic/kibana/issues/158260 by providing
the _new_ **Threshold rule**
It fixes https://github.com/elastic/kibana/issues/159326

<img width="586" alt="Screenshot 2023-05-30 at 17 55 32"
src="0e485266-d93f-442e-81f4-77aa673ed497">


##  Done 

- [x] Clone the Metric threshold and update the imports 
- [x] The rule is listed in the rule creation flyout with its params and
preview charts
- [x] Working Rule registry
- [x] Working Rule executor 
- [x] Working feature id in the rule registry 
- [x] Working alerts table and alert summary
- [x] Use DataView instead of the Metrics indices under settings
- [x] Update the i18n keys 
- [x] Fix/Update failing checks/tests. Green CI  
- [x] Hide it behind a feature flag
`xpack.observability.unsafe.thresholdRule.enabled`




## 🏗️ To be done (could be irrelevant, or create a separate issue for
it):
- [ ] <del> Remove the `metrics` word </del>
- [ ] <del> Update file and variable names to match the new rule
context.</del>
- [ ] <del> Rearrange files, constants, and exports </del>

## 🎯 DoD 
Having the rule working like the Metric threshold one and seeing its
related alerts.

---------
2023-06-09 17:59:55 +02:00
Dario Gieselaar
4a5dcbdea8
[Observability] Co-pilot (tech preview) (#158678) 2023-06-07 04:42:03 -07:00
Coen Warmer
ab27caff47
Reorganize Observability Plugin (#157970) 2023-05-18 10:38:36 -07:00
Coen Warmer
a07bdc5da9
Remove Exploratory View components from Observability (#155629)
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-26 09:21:20 +02:00
Chris Cowan
2bd3e8dd20
Remove feature flag for APM Alert Details page (#150475)
## Summary

This PR removes the
`xpack.observability.unsafe.alertDetails.apm.enabled` feature flag to
enable the Alert Detail page for the APM Latency Threshold Rule. I've
also removed the`alertDetailsAppSection` options along with the
`alertDetailsUrl` action context variable for the remaining APM rules
since the APM Alert Detail page should only be available for the APM
Latency Threshold rule.

I also changed`isAlertDetailsEnabledPerApp()` method to allow the
`apm.transaction_duration` rule type to work but not `apm.error_rate`,
`apm.transaction_error_rate`, or `apm.anomaly` rule types. This change
was necessary because the granularity of the feature flag was set to the
solution level and didn't allow to set the flag per rule type.

### Testing

To test this PR you will need to have some APM data in your cluster.
1. Create an APM Latency Threshold Rule with a low threshold so it will
trigger
2. Create an APM Error Count Rule with a low threshold so it will
trigger
3. Click on the "Action Menu" (the ellipses) in the alert (in the Alert
Table) for the latency threshold alert
4. Click on the "View alert details" menu item for the latency threshold
alert
5. Verify it takes you to the new "alert details" page for APM
6. Repeat steps 3 & 4 for the error count alert BUT it should open the
"alert flyout" instead.

---------

Co-authored-by: Faisal Kanout <faisal.kanout@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-20 16:32:55 -07:00
Kevin Delemme
a04c420569
feat(slo): remove feature flag (#152834) 2023-03-08 12:45:05 -07:00
Coen Warmer
620b7d67af
React Queryify SLO (#151643) 2023-02-22 23:28:39 +01:00
Kevin Delemme
9ad5772526
feat(slo): Scaffold slo list page (#146639) 2022-12-02 08:07:33 -07:00
Faisal Kanout
608ac5adff
[Actionable Observability] - Add alert details page feature flag by App (#142839)
* Update the feature flags

* Fix tests and AlertFlyout footer

* Add unit test for the helper

* Update the order of the checks to fix tests

* Add test for edge cases

* Fix test direct access to the page

* Fix test
2022-10-17 03:21:12 -07:00
Bena Kansara
1b496c5eaa
Displaying alert data in alert summary in alert details page (#140339)
* displaying data in alert summary in alert details page

* refactoring index to include only exports

* fixing path error

* removing tooltip as not required

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* fixing failing tests

* Added unit tests for alert summary, refactoring

* fix: hook was called conditionally

* fixed path errors

* removing dependency on ruleId as not required

* removing dependency on ruleId as not required

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* fixing route

* removing ruleid dependency

* fixing error

* minor changes

* removing ruleId dependency as not required

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* changes as per design, bug fix

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* minor changes

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* changes as per feedback

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* making alertId not optional

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* removing hardcoded field names

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* fixing type error

* fixing CI errors

* fixing tests

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-23 08:44:11 -07:00
Faisal Kanout
d11ee880b1
[Actionable Observability] - Hide the alert details page behind a feature flag (#139806)
* WIP - feature flag alert details page

* Add tests

* Add comment for upcoming tests

* Fix tests

* fix test and add mocks for usePluginContext

* Fix failing test

* Fix wording

* Fix test

* Update readme and kibana-docker

* Fix tests permissions

* Restore tests

* Fix flaky test

* Fix flaky

* Fix flaky

* wait to display the button

* Fix flaky

* Fix flaky

* Add 404 page and skip the flaky test

* re-enable tests

* Put message for the flaky test

* Update comment
2022-09-06 17:36:46 +02:00
Clint Andrew Hall
0fbd0afdb1
[Shared UX] Complete package migration; delete plugin (#138962)
* [Shared UX] Complete package migration; delete plugin

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* Fix types, fix tests

* Create Storybook config package; organize Storybook

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* Revise Storybook config package; make mock packages compatible with web

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 13:00:03 -05:00
mgiota
c287a0205d
[Actionable Observability] parameterize shareable rules list to adapt to o11y (#134173)
* parameterize shareable rules list to adapt to o11y

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* parameterize rule details link

* add Refresh button to triggers_actions_ui

* hide create rule button in o11y rules page

* removed unused stuff

* fix CI issues

* state container for last response column

* fix CI issues

* fix failing functional test on o11y rule details page

* make ruleListProps optional

* sync status filter with urlbar

* remove flaky test

* temp

* temp2

* fix o11y functional failing test - use clickByButtonText instead of clickByLinkText

* fix CI

* remove noData, noPermission prompt and refactor use_load_hooks to get filteredRuleTypes as a prop

* hide create rule button on empty screen in the o11y rules page

* fix CI issues

* remove not needed unit tests

* remove unused hook

* fix failing tests

* fix no permission prompt failing tests

* fix re-rendering issue when clicking on create rule button

* remove statecontainers for lastResponse column from triggers_actions_ui plugin

* refactor statusFilter using useEffect

* refactor executionStatusFilter using useEffect

* sunchronize urlbar with filters

* rename executionStatusesFilter to lastResponseFilter

* add more unit tests for rules_list

* more unit tests

* temporarily disable flaky tests

* remove unused stuff and move stuff to rule_details page

* rename ruleDetailsLink to ruleDetailsRoute

* fix o11y unit tests

* add more scenarios in the use_load_rules tests

* delete kibanaFeature remnant code that was added with type filtering before

It was introduced here 2dfc0b9d19

* more cleanup

* bring rule_details_page tests in their original state

* add missing types

* bring back empty lines

* more cleanup

* add more types

* unskip o11y tests

* apply feedback

* more unit tests

* remove filteredRuleTypes, we already have everything that we need

* refactor to only use rule type id to filter in triggers action ui

* add selection of visible columns + fix rule definition to not harcoded kibana feature privileges + fix unit test with new logic

* fix type + unit test

* fix bug around no data when default rules type are on

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2022-07-13 09:06:17 -07:00
mgiota
165a604e1a
[Actionable Observability] Remove alerts, rules and cases experimental feature flags (#134157)
* remove rules feature flag

* remove alertingExperience feature flag

* remove cases feature flag

* remove experimental badge from alerts page, alerts flyout, rules page, rule details page, overview page

* rempve disclaimer files

* fix tests

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-15 16:54:41 +02:00
Ester Martí Vilaseca
bb3d5250d4
[Unified Observability] Remove core and plugins from PluginContext (#133466)
* replace core and plugins with specific dependencies

* remove core and plugins from tests

* clean unused plugins variable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-08 17:11:51 +02:00
Alison Goryachev
346dea9cb5
Migrate observability to new Kibana page template (#133021) 2022-06-08 10:55:58 -04:00
Ester Martí Vilaseca
3c648df094
[Unified Observability] Add Page load distribution chart to overview page (#132258)
* add serviceName to breakdown select

* add exploratory view to ux section

* fix chart height

* fix types

* Use datepicker values for page load distribution

* use translations

* memoize exploratory embeddable

* fix tests

* fix types

* remove memoization

* Update chart height

Co-authored-by: Casper Hübertz <casper@formgeist.com>

* remove actions

* minor improvements

* Undo AppDataType enum

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2022-05-23 17:58:51 +02:00
Ester Martí Vilaseca
b0fff69b2a
[Unified Observability] Clean overview page feature toggle (#130650)
* Move old overview page to index

* remove overview page feature toggle

* Remove code for old alerts section

* Fix translations

* remove feature toggle from tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-29 09:02:46 +02:00
spalger
3730dd0779 fix all violations 2022-04-16 01:37:30 -05:00
mgiota
2dfc0b9d19
[Actionable Observability] filter by o11y rule types (#128370)
* filter per o11y rule types

* fix typescript errors
2022-03-28 15:47:07 +02:00
mgiota
194140e696
[Actionable Observability] enable rules page by default (#127959)
* enable rules page by default

* fix failing tests

* fix uptime failing tests

* fix apm failing tests

* fix logs failing tests

* more fixes for failing apm tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-22 10:16:04 +01:00
Alejandro Fernández Gómez
87697c41dc
[Unified observability] use useKibana to access kibana services (#127030) 2022-03-16 11:31:42 +01:00
mgiota
2fa485a29b
123580 o11 rules page (#124132)
* testing find rules api & load observability rules

* add rules option in observability sidebar

* make rules menu option configurable

* create o11y rules page

* update manage rules link

* rules page

* filter o11y rule types only(temp solution)

* remove unused stuff

* Add documentation link

* fix typescript errors

* add selection to EuiBasicTable

* add rest columns in the table

* toggle popover

* add actions column

* temp

* add breadcrumbs to rules page

* add pagination to rules page

* add onChange handler in rules pagination

* add create rule button

* add icon type to the create rule button

* Show number of rules

* add auto refresh button

* use correct rule management link in apm based on feature flag

* use correct rule management link in infra and observability alerts page based on on feature flag

* centralize useRulesLink logic inside the new useRulesLinkCreator observability hook

* useRulesLink in uptime

* useRulesLink in apm

* mock observability useLinks function in uptime tests

* temporarily remove the create rule button

* remove unused console statement

* remove unused button

* fix uptime failing tests

* remove useContextForPlugin and rename hook to create_use_rules_link

* remove useKibanaForContext from uptime and use useKibana instead

* remove unused imports

* add a todo comment in the loadRules export

* use await import for createUseRulesLink and declare core and setup as async

* fix typescript error

* Revert "fix typescript error"

This reverts commit c5a67d5d56.

* Revert "use await import for createUseRulesLink and declare core and setup as async"

This reverts commit 627a6265cf.

* experiment with page bundle size

* fix for useEffect

* use async import for loadRules

* experiments

* Revert "experiments"

This reverts commit 8b389dbf6a.

* increase page bundle size limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-08 19:32:19 +01:00
Ester Martí Vilaseca
2c4196270a
[Unified Observability] Add feature flag for the new overview page (#119193)
* Add feature flag to display a blank overview page when enabled

* Add tests for overview page feature flag

* Fix types

* Fix more types

* Remove duplicated BucketSize type

* fix linter

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-29 17:06:25 +01:00
Tiago Costa
9d662b77be
chore(NA): splits types from code on @kbn/i18n (#119256)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

* chore(NA): split types from code on @kbn/i18n

* chore(NA): update yarn.lock file

* chore(NA): split @kbn/i18n and @kbn/i18n-react

* chore(NA): missing import fix

* chore(NA): fix jest project configs

* chore(NA): change imports on kbn i18n

* chore(NA): change imports on kbn i18n

* chore(NA): correct loader imports

* chore(NA): missnig i18nLoader export key

* chore(NA): fix type exports

* chore(NA): export type only

* chore(NA): export type only

* fix(NA): type exports

* chore(NA): missing @Kbn/i18n/react imports

* chore(NA): missing skip path for kbn-i18n-react

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 17:18:03 +00:00
Tyler Smalley
4681a80317
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Anton Dosov
be1c5bbd72
Don't import react-intl directly to reduce bundle sizes (#102497) 2021-06-24 16:52:55 +02:00
Felix Stürmer
06d276e060
[Logs UI] Add shared observability page template and navigation (#99380)
Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-27 16:58:15 +02:00
Nathan L Smith
7fc4a1f80f
Add kibana.yml configuration for cases (#100583)
Make it so `xpack.observability.unsafe.alertingExperience.enabled` only shows and hides the Alerts page, and `xpack.observability.unsafe.cases.enabled` show and hides the Cases page.
2021-05-27 09:43:12 -05:00
Dario Gieselaar
bdde884d09
[RAC] Decouple registry from alerts-as-data client (#98935) 2021-05-13 17:12:47 +02:00
Nathan L Smith
042fa1a2ce
Remove alerting feature flag from advanced settings (#97265)
* Remove alerting feature flag from advanced settings

Make it so the alerting UI in Observability can only be turned on and off in kibana.yml with `xpack.observability.enableAlertingExperience`.

We no longer:

* Allow turning this on and off for the current space in the advanced settings in Kibana
* Allow turning this on on cloud
* Send telemetry on whether or not the flag is enabled

Add some docs in READMEs as well.
2021-04-19 22:09:51 -05:00
Dario Gieselaar
5bb9eecd26
[RAC] Populate Observability alerts table with data from alerts indices (#96692)
* Set up Observability rule APIs

* Populate alerts table with data from API

* Move field map types/utils to common

* Format reason/link in alert type

* Format reason/link in alert type

* Fix issues with tsconfigs

* Storybook cleanup for example alerts

* Use `MemoryRouter` in the stories and `useHistory` in the component to get the history
* Replace examples with ones from "real" data
* Use `() => {}` instead of `jest.fn()` in mock registry data

* Store/display evaluations, add active/recovered badge

* Some more story fixes

* Decode rule data with type from owning registry

* Use transaction type/environment in link to app

* Fix type issues

* Fix API tests

* Undo changes in task_runner.ts

* Remove Mutable<> wrappers for field map

* Remove logger.debug calls in alerting es client

* Add API test for recovery of alerts

* Revert changes to src/core/server/http/router

* Use type imports where possible

* Update limits

* Set limit to 100kb

Co-authored-by: Nathan L Smith <smith@nlsmith.com>
2021-04-15 18:25:50 +02:00
Shahzad
b9f5d0c2e1
[Observability] Update plugin start/setup types naming (#95301) 2021-03-26 14:48:08 +01:00
Brandon Kobel
4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Nathan L Smith
e5588a129b
Move EUI styled components integration to kibana_react (#86065)
...from xpack_legacy.

Remove the duplicated typings from the observability plugin and only use the ones from kibana_react.

Fixes #78248.
2021-01-25 13:48:35 -06:00
Nathan L Smith
5ab41f5845
Put APM links into header action menu (#82292) 2020-11-10 19:16:02 -06:00
Cauê Marcondes
d8b4472a72
[Observability] Persist time range across apps (#79258)
* using kibana persisted date when available to set the date time

* fixing types

* adding setTime when changin the dates in the url

* renaming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 13:29:15 +02:00
Shahzad
de130abfbc
[UX] Add core web vitals in obsv homepage (#78976) 2020-10-05 19:15:13 +02:00
Cauê Marcondes
203fde92ac
Observability overview page (#69141)
* creating overview page and menu

* styling the home page

* adjusting breadcrumb

* renaming isnt working

* renaming isnt working

* renaming isnt working

* fixing import

* fixing scroll when resize window

* fixing eslint errors

* prepending links

* adding target option

* refactoring

* adding dark mode support

* fixing prettier format

* fixing i18n

* reverting some unnecessary changes

* addressing PR comments

* fixing functional tests

* ordering observability menu

* fixing tests

* addressing PR comments

* fixing scroll

* addressing pr comments

* addressing pr comments

* creating overview page

* mocking data

* mocking data

* refactoring

* crearting apm chart

* adding overview page

* adding metric charts

* adding charts

* changing mock data location

* adding mock registry

* adding date picker

* adding route validation

* adding io-ts

* adding io-ts

* adding io-ts support

* fixing imports and mock data

* adding app folder

* creating a section for each plugin

* adding stats

* adding domain min max

* refactoring xcoordinaters

* fixing route

* adding bucket size

* adding group property on logs

* adding home page

* dont break page if location  state is undefined

* each component fetches its own data

* Refactoring

* adding loading indicator to chart

* fixing uptime chart

* adding brush functionality to charts

* fixing refresh button and auto refresh function

* adding horizontal line to accordion section

* adding emptySection to dashboard page

* adding add data button

* adding resources section

* removing margins from horizontal rule

* changing min interval to 60s

* fixing empty section

* removing unnecessary code

* adding unit tests

* fixing imports

* adding initial story book for observability

* removeing uptime mock data

* fixing xDomain to show correct data on x-axis

* fixing empty state alignment

* adding story book and other improvements

* adding news component

* adding support to custom colors on EuiProgress and EuiStats

* removing infra mock data

* adding error message when api throwns an error

* adding alert section

* Adding alerts

* adding alert api call

* addressing PR comments

* adding storybook

* adding feedback button

* addressing PR comments

* chamging plugins return data

* fixing kibana app navigation

* fixing unit test

* fixing ts issues

* addressing PR comments

* using lodash truncate

* adding comment

* updating public documentation

* fixing alerts request

* fixing unit test

* fixing unit test

* aligin beta badge to the center

* adding moment duration to get the units as seconds

* addressing PR comments

* addressing PR comments
2020-07-08 21:52:16 +02:00