Skip to content
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

Invalid rule type warnings in O11y serverless projects #204101

Closed
ymao1 opened this issue Dec 12, 2024 · 4 comments · Fixed by #204366
Closed

Invalid rule type warnings in O11y serverless projects #204101

ymao1 opened this issue Dec 12, 2024 · 4 comments · Fixed by #204366
Assignees
Labels
Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@ymao1
Copy link
Contributor

ymao1 commented Dec 12, 2024

To recreate, run a serverless observability project and navigate to the alerts table (you don't have to add any rules). In your console, you will see the following logs:

[2024-12-12T13:03:43.077-05:00][WARN ][plugins.ruleRegistry] Found invalid rule type 'metrics.alert.threshold' while using privateRuleRegistryAlertsSearchStrategy search strategy. No alert data from this rule type will be searched.
[2024-12-12T13:03:43.078-05:00][WARN ][plugins.ruleRegistry] Found invalid rule type 'xpack.uptime.alerts.tls' while using privateRuleRegistryAlertsSearchStrategy search strategy. No alert data from this rule type will be searched.
[2024-12-12T13:03:43.078-05:00][WARN ][plugins.ruleRegistry] Found invalid rule type 'xpack.uptime.alerts.tlsCertificate' while using privateRuleRegistryAlertsSearchStrategy search strategy. No alert data from this rule type will be searched.
[2024-12-12T13:03:43.078-05:00][WARN ][plugins.ruleRegistry] Found invalid rule type 'xpack.uptime.alerts.monitorStatus' while using privateRuleRegistryAlertsSearchStrategy search strategy. No alert data from this rule type will be searched.
[2024-12-12T13:03:43.078-05:00][WARN ][plugins.ruleRegistry] Found invalid rule type 'xpack.uptime.alerts.durationAnomaly' while using privateRuleRegistryAlertsSearchStrategy search strategy. No alert data from this rule type will be searched.
[2024-12-12T13:03:43.078-05:00][WARN ][plugins.ruleRegistry] Found invalid rule type 'logs.alert.document.count' while using privateRuleRegistryAlertsSearchStrategy search strategy. No alert data from this rule type will be searched.

This is because these rule types are not registered in the serverless o11y project but the alerts table is still sending them in the request:

https://localhost:5601/internal/rac/alerts/index?ruleTypeIds=apm.error_rate&ruleTypeIds=apm.transaction_error_rate&ruleTypeIds=apm.transaction_duration&ruleTypeIds=apm.anomaly&ruleTypeIds=xpack.synthetics.alerts.monitorStatus&ruleTypeIds=xpack.synthetics.alerts.tls&ruleTypeIds=metrics.alert.threshold&ruleTypeIds=metrics.alert.inventory.threshold&ruleTypeIds=xpack.uptime.alerts.tls&ruleTypeIds=xpack.uptime.alerts.tlsCertificate&ruleTypeIds=xpack.uptime.alerts.monitorStatus&ruleTypeIds=xpack.uptime.alerts.durationAnomaly&ruleTypeIds=logs.alert.document.count&ruleTypeIds=slo.rules.burnRate&ruleTypeIds=observability.rules.custom_threshold&ruleTypeIds=.es-query&ruleTypeIds=xpack.ml.anomaly_detection_alert

@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 12, 2024
@maryam-saeidi maryam-saeidi added the Team:obs-ux-management Observability Management User Experience Team label Dec 13, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 13, 2024
@maryam-saeidi
Copy link
Member

maryam-saeidi commented Dec 13, 2024

@cnasikas @umbopepato, do you have any idea what might be the issue? Maybe for uptime rules, it is because they are deprecated. 🤔

@cnasikas cnasikas added the Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) label Dec 13, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@cnasikas
Copy link
Member

The alerts table accepts an array of rule type IDs. Then, it uses the provided rule type IDs and passes them to the API to fetch the alerts. The search strategy related to alerts logs this message in serverless because the alerts table requests rule types that are not registered. We discussed it offline and decided to remove the log because it did not seem useful. We filter out unsupported rule type IDs before fetching the alerts.

@cnasikas cnasikas removed the Team:obs-ux-management Observability Management User Experience Team label Dec 13, 2024
@js-jankisalvi js-jankisalvi self-assigned this Dec 16, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Jan 2, 2025
cqliu1 pushed a commit to cqliu1/kibana that referenced this issue Jan 2, 2025
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Jan 13, 2025
viduni94 pushed a commit to viduni94/kibana that referenced this issue Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants