-
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
[Infra UI] Disable Infra UI inventory rule alert creation in serverless #164683
Comments
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
@katrin-freihofner - FYI |
To port current Infra rules, this is what it will look like in the Threshold Rule ![]() @roshan-elastic I started looking into this and I got a few questions
Do you mean having a dropdown in the Alerts flyout? Assuming that it's not what we want, we need something preceding the alerts Threshold Rule flyout, to allow users to select what metrics they want to use - similar to what we currently have, right? Asking this because the Threshold rule doesn't support such a thing. ![]()
Am I understanding correctly that if a user wants to create a CPU Usage alert, the flyout needs to open with the equation pre-filled? threshold_rule.movI don't know much about implementation details yet. I need to understand if we can reuse our current flyout and somehow translate the form result into a Threshold rule or if we need to open the Threshold rule flyout and pre-fill the form with the equation. |
Hey @crespocarlos, thanks for jumping on this.
At a high-level, we're effectively trying to give the user the same experience they have now in the UI but using the new 'threshold' rule. In short, we're replace the existing workflow (using inventory rules) with this new rule instead and try to achieve the same experience/capabilities. I think this is what you are suggesting too? Top menu 'rules and alerts' When someone clicks 'rules and alerts' in the top menu bar, I'd imagine we'll probably want to give them an option to create the new 'threshold' rule (and ensure it's easy to create rules on the different inventory types, like hosts). Gaps Does this help? |
Hi @maryam-saeidi @emma-raffenne @katrin-freihofner @simianhacker @crespocarlos @smith @neptunian (@kkurstak), Thanks for your time earlier. Just to summarise the call and next steps: Primary ProblemsIn Infra UI, when you create inventory rules the user can select the type of asset and relevant metrics for the rule in the rule workflow: However:
Goals
Action Points
@smith - I'm away from tomorrow lunch time so booked in some time in today to chat about this quickly so it can progressed in my absence? |
@maryam-saeidi @emma-raffenne @katrin-freihofner @simianhacker @crespocarlos @smith @neptunian (@kkurstak) Hi all, Quick update after catching up with @smith: Thoughts
ProposalWe therefore have the following proposal:
*The solution could be that we need to make some changes in our UI to pass in information to the threshold rule so that the user has a good experience - or it could lean more heavily on work in the threshold rule itself - the scope of the issue be to figure that out Action Points@katrin-freihofner - Could you remind the thread why inventory alerts wouldn't be present in serverless? Obviously, it would be easier if they were available as the current work wouldn't be required as quickly but I understand there are good reasons for this - would you mind sharing with the thread? @katrin-freihofner - I'm wondering if you have any idea on when/how you might like to supersede the current inventory/metric threshold rules totally (i.e. across stateful too)? This could help us with how much effort we put in the the interim solution (i.e. how robust the serverless version should be...). @katrin-freihofner / @emma-raffenne - If you agree, do you think you could work with @smith on when we could start looking at (3)? @smith - Do you think you could help shape up (3) so we have an item in the backlog that we could work with across both teams (and coordinate with @emma-raffenne/ @katrin-freihofner on how we can collaborate on this)? I've put this in our issue backlog just underneath the serverless issues. @smith - If you need PM input into this whilst I'm away, please feel free to lean on @vinaychandrasekhar whilst I'm away. Hopefully this makes sense. |
@maryam-saeidi @emma-raffenne @katrin-freihofner @simianhacker @crespocarlos @smith @neptunian (@kkurstak) UpdateHi everyone, @katrin-freihofner had a chat yesterday and we propose the following (largely in agreement with what @smith and I discussed yesterday):
Other Notes
|
@roshan-elastic @smith fyi, I'm going to split the support for the |
…167978) Closes #164683 ## Summary This PR disables the infrastructure, metrics and logs alerts rule in Serverless: - Deletes the code responsible for the "Metric Anomaly" rule as it was [previously disabled](#93813) with plans to re-enable it as the previous PR describes but that never happened. - Adds feature flags for all three types of alert rules - Prevents rules registration in serverless based on the feature flags - Adds logic for showing/hiding items in the "Alerts and rules" dropdown - Disables custom threshold rule in the Infra UI by default in serverless as the rule needs to first be enabled by default by @elastic/actionable-observability team ([context](https://elastic.slack.com/archives/C023GDA0WMP/p1696853751040269)) **Dropdown**  **Host details**  ### How to test - Checkout locally Run in Serveless mode - Enable, Infra plugin, custom threshold in Infra, and custom threshold rule in general: ``` xpack.infra.enabled: true xpack.infra.featureFlags.customThresholdAlertsEnabled: true xpack.observability.unsafe.thresholdRule.enabled: true ``` - Go to `/app/metrics/hosts` and make sure there are no "Infrastructure" and "Metrics" items in the "Alerts and rules" dropdown - Click on "Manage rules" in the "Alerts and rules" dropdown, then "Create rule" to open the rule selection flyout - Make sure there are no rules for "Inventory", "Metrics" or "Logs" threshold - Run Kibana in traditional mode - Make sure the "Alerts and rules" dropdown looks as usual and you can create "Infrastructure" and "Metrics" alerts --------- Co-authored-by: Kibana Machine <[email protected]>
…lastic#167978) Closes elastic#164683 ## Summary This PR disables the infrastructure, metrics and logs alerts rule in Serverless: - Deletes the code responsible for the "Metric Anomaly" rule as it was [previously disabled](elastic#93813) with plans to re-enable it as the previous PR describes but that never happened. - Adds feature flags for all three types of alert rules - Prevents rules registration in serverless based on the feature flags - Adds logic for showing/hiding items in the "Alerts and rules" dropdown - Disables custom threshold rule in the Infra UI by default in serverless as the rule needs to first be enabled by default by @elastic/actionable-observability team ([context](https://elastic.slack.com/archives/C023GDA0WMP/p1696853751040269)) **Dropdown**  **Host details**  ### How to test - Checkout locally Run in Serveless mode - Enable, Infra plugin, custom threshold in Infra, and custom threshold rule in general: ``` xpack.infra.enabled: true xpack.infra.featureFlags.customThresholdAlertsEnabled: true xpack.observability.unsafe.thresholdRule.enabled: true ``` - Go to `/app/metrics/hosts` and make sure there are no "Infrastructure" and "Metrics" items in the "Alerts and rules" dropdown - Click on "Manage rules" in the "Alerts and rules" dropdown, then "Create rule" to open the rule selection flyout - Make sure there are no rules for "Inventory", "Metrics" or "Logs" threshold - Run Kibana in traditional mode - Make sure the "Alerts and rules" dropdown looks as usual and you can create "Infrastructure" and "Metrics" alerts --------- Co-authored-by: Kibana Machine <[email protected]>
📖 Description
Remove creation of 'inventory rule' alerts in the Infra UI until a solution can be found to allow users to create alerts per asset type (and their associated metrics).
Notes
Create rule would need to be deleted

Implementation hints
Feature flags might help here: (see doc)
Frontend
Example of feature flag object to be added to plugin_config_types.ts
Server
Example of feature flag object to be added to plugin.ts.
To be able to access the feature flags in the components, an idea would be to create a service, similar to
ExperimentalFeaturesService
or passconfig
over to therenderApp
to have access to the feature flags via context, similar to what APM does✔️ Acceptance criteria
What must this feature have?
1. Must Have
Must be delivered in this issue in order for the release to be valuable
2. Should Have
3. Could Have
Would be nice to have but not critical
4. Will Not Have (for now)
Explicitly will not be looked at within this issue
The text was updated successfully, but these errors were encountered: