Commit graph

94 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
Coen Warmer
62c9a1f6cb
Add SLO Edit Form locator (#161753) 2023-07-12 07:12:12 -07:00
Coen Warmer
5c397fb5cb
[Tech Debt] Use consts for routes (#160521) 2023-06-27 15:25:21 +02:00
Dario Gieselaar
c5dace2e3b
[Observability] Rename coPilot settings to aiAssistant (#160144) 2023-06-21 08:33:07 -07:00
Maryam Saeidi
87b80cb21b
[AO] Add data view to the new threshold rule (#159479)
Closes #158840

## Summary

This PR adds selecting a persisted data view and using it in the new
threshold rule.

|Flyout|Rule saved object|
|---|---|

|![image](6f1115e2-e1f1-4348-b380-18b7ce2cacba)|

## 🧪 How to test
- Create a threshold rule with a persisted data view
- Make sure the related feature flag is configured:
`xpack.observability.unsafe.thresholdRule.enabled: true`
- Check whether the triggered alert matches the expectation related to
that data view
- Check the rule saved object to ensure data is saved there correctly

## What is not covered in this PR
I will follow up on the following list in future PRs:
- [Temporary data view](https://github.com/elastic/kibana/issues/159774)
- [Initial loading](https://github.com/elastic/kibana/issues/159779)
- [Setting a timeField beside the
timestamp](https://github.com/elastic/kibana/issues/159777)
- [Error handling](https://github.com/elastic/kibana/issues/159776)
- [Testing](https://github.com/elastic/kibana/issues/159778)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-21 13:25:51 +02:00
Anton Dosov
3a27239fbe
[Drift] Add to security/get_started and observability/overview (#159797)
## Summary

Partially address https://github.com/elastic/kibana/issues/158835
Fix https://github.com/elastic/kibana/issues/159800

We're adding Drift to a couple of "high value" pages identified by the
CSE team https://github.com/elastic/kibana/issues/158835. For now we
don't add Drift globally because we have a bunch of concerns we need to
resolve first https://github.com/elastic/kibana/issues/159691

<img width="1624" alt="Screenshot 2023-06-15 at 16 14 17"
src="2729984d-9d54-466e-9166-6afc79ea3c68">
<img width="1624" alt="Screenshot 2023-06-15 at 16 14 32"
src="77e77d70-a091-42bc-8ac0-ee7a684e2830">



To see how the chat bubble looks, you can use these URLs with my dummy
test drift account:
-
https://dosant-pr-159797-d-2023-06-16-drift-more.kbndev.co/app/observability/overview
-
https://dosant-pr-159797-d-2023-06-16-drift-more.kbndev.co/app/security/get_started
2023-06-19 14:02:21 +02: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
1506cb2aef
Add SloDetails Locator (#156995)
Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
2023-05-08 08:05:48 -07:00
Coen Warmer
53daa334f4
Add Locator for Rules page (#155799)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-04-26 09:05:02 -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
Coen Warmer
88f4f8082a
[Synthetics][Ux][Uptime] Use Observability Page Template from Observability Shared (#154774)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2023-04-18 15:00:15 -07:00
Coen Warmer
fb0c1bf400
Remove Beta badge from the SLO item in the sidebar Nav (#154854) 2023-04-12 11:45:39 -07: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
Coen Warmer
5ebb988db6
[Tech Debt] Reorder Alerts page (#152888) 2023-03-09 19:29:06 +01:00
Kevin Delemme
a04c420569
feat(slo): remove feature flag (#152834) 2023-03-08 12:45:05 -07:00
Jason Rhodes
5e397c4b60
Makes spaces optional in observability plugin (#151147)
## Summary

This PR makes spaces optional in the "observability" plugin as requested
in https://github.com/elastic/kibana/issues/149687

To test this, use the following setting in your kibana.yml config file:

```yaml
xpack.spaces.enabled: false
```

When you log in, there will be no spaces choice. 

<img width="2543" alt="Screenshot 2023-02-21 at 11 53 18 AM"
src="https://user-images.githubusercontent.com/159370/220409537-43a216d5-81c9-4b29-97d8-47705bdacd06.png">
2023-03-01 08:54:41 -07:00
Coen Warmer
620b7d67af
React Queryify SLO (#151643) 2023-02-22 23:28:39 +01:00
Kevin Delemme
aff771c287
feat(slo): introduce slo feature (#150554) 2023-02-16 10:52:57 -07:00
Cauê Marcondes
7b842280b8
[Obs] fixing news feed by using dynamic kibana version (#150053)
closes https://github.com/elastic/kibana/issues/149986

<img width="2551" alt="Screenshot 2023-02-01 at 9 03 40 AM"
src="https://user-images.githubusercontent.com/55978943/216064385-30cc4604-39d1-40bf-a6b8-0632ca8e27fd.png">

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-02-02 12:12:36 -05:00
Coen Warmer
a706a11002
SLO: Creation Form: Add Query Builder component (#149880)
Resolves https://github.com/elastic/kibana/issues/149867
2023-01-31 04:05:46 -07:00
Maryam Saeidi
ee8ca7ef15
[AO] Use theme and baseTheme from charts plugin for Alert Summary Widget (#149225)
Closes #148297

## 📝 Summary

- Use theme and baseTheme from charts plugin

## 🧪 How to test

From the UI's perspective, nothing has changed, so the Alert Summary
Widget on the Alerts page and Rule details page should work as
previously.
- Make sure the dark and light theme for Alert Summary Widget works as
expected.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-19 22:27:10 +01:00
Coen Warmer
5854bceb62
Add Platinum license check for SLO APIs and SLO pages (#149055)
Closes https://github.com/elastic/kibana/issues/148298
2023-01-18 09:52:47 -07:00
Shahzad
7bfd5fd243
[Synthetics] Monitor alerts panel (#148612)
Co-authored-by: Abdul Zahid <awahab07@yahoo.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Fixes https://github.com/elastic/kibana/issues/145376
2023-01-13 10:55:34 +01:00
Shahzad
86527753a2
[Synthetics] Initial monitor status alert (#147672)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Fixes https://github.com/elastic/kibana/issues/145980
2022-12-29 13:46:53 +01:00
Coen Warmer
d40b7fd15e
Filter SLOs based on feature flag from global nav (#147978)
Closes https://github.com/elastic/kibana/issues/147972

# Summary

This PR makes sure the SLO link is also filtered from the global
navigation, depending on feature flag configuration being passed.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-12-27 13:27:01 +01:00
Kevin Delemme
60867aacfb
feat(slo): Burn rate alert (#147557) 2022-12-20 10:08:09 -05:00
Coen Warmer
3cfada5a03
[SLO] SLO List (#147447)
Closes https://github.com/elastic/kibana/issues/146892
2022-12-20 09:53:04 +01:00
Maryam Saeidi
a30d225421
[Actionable Observability] Add rule details locator and make AlertSummaryWidget clickable (#147103)
Resolves #141467

## 📝 Summary

- Added a
[locator](https://docs.elastic.dev/kibana-dev-docs/routing-and-navigation#specifying-state)
for the rule details page
- Made AlertSummaryWidget clickable and implemented the related
navigation for rule details page

## 🧪 How to test
- Create a rule and go to the rule details page
- You should be able to click on all/active/recovered sections in Alert
Summary Widget and upon click going to alert tables with the correct
filter


https://user-images.githubusercontent.com/12370520/205959565-6c383910-763f-4214-9baa-cf191f012de9.mp4
2022-12-07 17:18:02 +01:00
Kevin Delemme
9ad5772526
feat(slo): Scaffold slo list page (#146639) 2022-12-02 08:07:33 -07:00
Maryam Saeidi
4d46bd79e0
[Actionable Observability] Move the alerts search bar to triggers action UI plugin (#144541)
* Move alerts search bar to triggers action use package

* Fix useAlertDataView test

* Fix mocks for useAlertDataView test

* Fix type issue and add getAlertsSearchBar mock
2022-11-07 10:28:40 +01:00
Maryam Saeidi
5c12624b30
[Actionable Observability] Refactor alert search bar (#143840)
* Refactor alerts search bar and remove refresh now

* Remove refreshNow from observability overview page

* Fix alert status query

* Remove relative time test

* Change AnyQuery type to Query
2022-11-02 03:06:10 -07:00
Alison Goryachev
048b11d274
[Guided onboarding] Update observability tour (#143006) 2022-10-19 08:16:49 -04: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
Faisal Kanout
c23579feb6
[Actionable Observability] - Fix Alert tab goes blank in APM because of Alert Details page feature flag (#142188)
* Add the o11y context to the alert table config

* Fix checks

* Make the feature flag optional

* optional config for the check

* Made option only for alertDetails
2022-09-30 14:37:15 +02: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
Christos Nasikas
c3a55d1aa8
[Cases] User profile hooks (#137830)
* Refactoring services, auth

* Adding suggest api and tests

* Working integration tests

* Switching suggest api tags

* Adding tests for size and owner

* Adding api tag tests

* Addressing feedback

* Create suggest query

* Add tests

* Add security as dependency and fix types

* Add bulk get profiles query

* Rename folder

* Revert security solution optional

* PR feedback

* Reduce size

* Make security required

* Fix tests

* Do not retry suggestions

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-04 15:22:09 +03:00
Shahzad
623365765a
[User Experience App] Fix kibana context usage (#136611) 2022-07-19 18:38:05 +02: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
Shahzad
66196769a7
[Exploratory view] Embed util (#135244) 2022-06-29 09:08:04 +02:00
Xavier Mouligneau
c4350f1f2a
[RAM] Refactor alert 011y fly-out to just use hook (#135161)
* refactor alert flyout to just use hook

* fix unit test

* thanks to test, we find out discrepency between reconcilliation of components

* open rule details from o11y
2022-06-28 08:28:32 +02:00
Xavier Mouligneau
da2315225c
[RAM] O11y register alert config (#134943)
* still lazy load alert configuration but on the start and not teh mount

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

* review I

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-22 19:58:49 -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
Shahzad
c930a7312e
[Observability exploratory view] Add single metric report type (#132446)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-30 14:50:11 +02:00