grafana/public/app/features/alerting
Konrad Lalik 91704cf7de
Alerting: Loki-based alert state history modal (#66595)
* adds alertstatehistory backend config to grafanaBootData

* add alertStateHistory api

* show different ASH modal when using loki implementation

* group log lines by instance (unique set of labels)
Co-Authored-By: Konrad Lalik <konrad.lalik@grafana.com>

* render log lines for each instance
Co-Authored-By: Konrad Lalik <konrad.lalik@grafana.com>

* Add visual improvements to the log record of state changes

* Add values to log records

* compute common labels and show unique labels

* Add state changes visualization

* fix common labels extraction

* Code cleanup

* Add timespan-based log record view

* WIP

* scroll to timestamp - poc

* Use SortedVector for timestamp field

* add conditional accessor for frames

* update some of the log formats and styles

* Timestamp-based visualization with scrolling

* minor improvements

* Split Loki's state history viewer into multiple files

* Add memoization to prevent graph rerender on filter updates

* make chart size shrink when fewer instances

* style updates

* show warning when instances are hidden

* Add basic label-based filtering

* Improve label-based filtering

* Add regex validation

* Improve no instances message when everything was filtered out

* Update warning message

* Move timeline viewer to a separate file, refactor handling timeline pointer changes

* Remove unused component, add comments

* Fix test snapshot, fix type error

* adds tests for common.ts

* Add tests for converting log records into data frames

* Add basic component test, fix type guards

* Use a constant for timeseries limit

* Improve a11y, update component test

* Memoize AlertStateTag, migrate from deprecated ArrayVector

* Update public/app/features/alerting/unified/components/rules/state-history/common.ts

* Move helper hook into a separate file. Add Search input component

* Change the limit of visible time series on the timeline

* Add LogRecordViewer perf improvements, refactor timeline cursor events tracking

* Use callback to pass timeline refs

* Add grouping tests for the log record viewer

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2023-04-24 09:28:11 +02:00
..
components Alerting: Update legacy alerting warning (#66269) 2023-04-17 11:02:29 +03:00
partials
state Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
unified Alerting: Loki-based alert state history modal (#66595) 2023-04-24 09:28:11 +02:00
utils Dashboards: Filter out expressions when going to Explore (#64654) 2023-03-13 07:53:19 -05:00
AlertHowToModal.tsx
AlertRuleItem.test.tsx
AlertRuleItem.tsx
AlertRuleList.test.tsx
AlertRuleList.tsx
AlertTab.tsx
AlertTabCtrl.test.ts Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
AlertTabCtrl.ts
AlertTabIndex.tsx
EditNotificationChannelPage.tsx
FeatureTogglePage.tsx
getAlertingValidationMessage.test.ts Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
getAlertingValidationMessage.ts
NewNotificationChannelPage.tsx
NotificationsListPage.tsx Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
routes.tsx Chore: Clean up old navigation (#66287) 2023-04-14 09:43:11 +01:00
StateHistory.tsx
TestRuleResult.test.tsx Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
TestRuleResult.tsx