-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new Rule Page under Observability #123580
Comments
Here are a couple of questions we need to clarify as part of How do we define "observability" rules? Is there a tagging mechanism when a rule is created, or do we have to maintain a hard-coded list of rule type IDs to query for? If the latter, can we at least centralize that list of IDs for ourselves? What is the current list of these IDs? According to this comment #116476 (comment) the find API takes filters so we can filter by rule type id (still named alertTypeId in the rule saved object). Here is an example of using the find API to filter by rule type: https://localhost:5601/api/alerting/rules/_find?page=1&per_page=10&filter=alert.attributes.alertTypeId%3A(apm.error_rate)&default_search_operator=AND&sort_field=name&sort_order=asc. So we need to keep a list of observability rule types for this kind of query. |
Rule list view for ObservabilityNotes
|
@katrin-freihofner Can you clarify a bit more the interaction with the Status column? I already see a challenge with the current design in the scenario user selects
Screen.Recording.2022-03-06.at.16.07.52.movAnother recommendation
Let me know what you think and how I should proceed. Until the |
This is a sub-issue of #119100
Acceptance criteria
Rules
menu option in the Observability sidebar and create a new rules page under observabilityroute
and rulespage
Manage rules
link in the Observability alerts page to to link to the new Rules pageBreadcrumbs
to the new Observability Rules PageEuiBasicTable
(currently used by current Rules and Connectors page)Implementation details
triggers_actions_ui
plugin exports aloadAlerts
method that internally calls thefind API
. All we need to pass to the loadAlerts function is a typeFilter argument, which should be an array of all the observability rule types. The value we need to use for each rule type is theid
of the rule type when registering it to the alerting framework.. The id is then stored in a savedObject asalert.attributes.alertTypeId
(alertTypeId is actually ruleTypeId).Below you can see an example code of how to use the existing loadAlerts method of the triggers_actions_ui plugin and right after the list of all observability registered rule types (id).
Uptime
APM
Metrics threshold and Inventory threshold
Log Threshold
Sub-tickets
The text was updated successfully, but these errors were encountered: