You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alerting: Central alert history part4 (grafana#90088)
* Implement EventDetails for expanded rows and pagination on the events list
* Add test for getPanelDataForRule function
* prettier
* refactor EventState component
* create interfaces for props
* Add missing translations
* Update some comments
* Add plus button in alertrulename , to add it into the filter
* Add plus button to add filters from the list labels and alert name
* Add clear labels filter button
* run prettier
* fix RBAC checks
* Update AlertLabels onLabelClick functionality
* add limit=0 in useCombinedRule call
* Add filter by state
* remove plus button in labels
* Fix state filter
* Add filter by previous state
* fix some errors after solving conflicts
* Add comments and remove some type assertions
* Update the number of transitions calculation to be for each instance
* Add tests for state filters
* remove type assertion
* Address review comments
* Update returnTo prop in alert list view url
* Update translations
* address review comments
* prettier
* update cursor to pointer
* Address Deyan review comments
* address review pr comments from Deyan
* fix label styles
* Visualize expanded row as a state graph and address some pr review comments
* Add warning when limit of events is reached and rename onClickLabel
* Update texts
* Fix translations
* Update some Labels in the expanded states visualization
* move getPanelDataForRule to a separate file
* Add header to the list of events
* Move HistoryErrorMessage to a separate file
* remove getPanelDataForRule function and test
* add comment
* fitler by instance label results shown inthe state chart
* remove defaults.ini changes
* fix having single event on time state chart
---------
Co-authored-by: Gilles De Mey <[email protected]>
SubTitle: "View a history of all alert events generated by your Grafana-managed alert rules. All alert events are displayed regardless of whether silences or mute timings are set.",
@@ -144,8 +186,10 @@ export function getEventsScenesFlexItem(datasource: DataSourceInformation) {
144
186
returnnewSceneFlexItem({
145
187
minHeight: 300,
146
188
body: PanelBuilders.timeseries()
147
-
.setTitle('Events')
148
-
.setDescription('Alert events during the period of time.')
189
+
.setTitle('Alert Events')
190
+
.setDescription(
191
+
'Each alert event represents an alert instance that changed its state at a particular point in time. The history of the data is displayed over a period of time.'
192
+
)
149
193
.setData(getSceneQuery(datasource))
150
194
.setColor({mode: 'continuous-BlPu'})
151
195
.setCustomFieldConfig('fillOpacity',100)
@@ -167,11 +211,66 @@ export function getEventsScenesFlexItem(datasource: DataSourceInformation) {
167
211
.build(),
168
212
});
169
213
}
214
+
/*
215
+
* This component shows a button to clear the filters.
216
+
* It is shown when the filters are active.
217
+
* props:
218
+
* labelsFilterVariable: the textbox variable for filtering by labels
219
+
* transitionsToFilterVariable: the custom variable for filtering by the current state
220
+
* transitionsFromFilterVariable: the custom variable for filtering by the previous state
0 commit comments