Skip to content

Commit

Permalink
Enable custom threshold and inventory rules in Serverless (#170351)
Browse files Browse the repository at this point in the history
Closes #170327
Relates to #168034

## Summary

This PR enables the custom threshold and inventory rules in Serverless.

|Custom threshold rule|Inventory rule|
|---|---|

|![image](https://github.com/elastic/kibana/assets/12370520/35468ded-d936-4bb1-b16b-0bcfe987e0f1)|![image](https://github.com/elastic/kibana/assets/12370520/1d1a65e0-78f5-4550-a620-9342b28ec5a9)|

Related PR: [Add the query delay mechanism to the inventory rule type
and change consumer to
Observability](#170628)
  • Loading branch information
maryam-saeidi authored Nov 10, 2023
1 parent 2c90ba9 commit 4df1cbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/infra/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const config: PluginConfigDescriptor<InfraConfig> = {
}),
inventoryThresholdAlertRuleEnabled: offeringBasedSchema({
traditional: schema.boolean({ defaultValue: true }),
serverless: schema.boolean({ defaultValue: false }),
serverless: schema.boolean({ defaultValue: true }),
}),
metricThresholdAlertRuleEnabled: offeringBasedSchema({
traditional: schema.boolean({ defaultValue: true }),
Expand All @@ -110,7 +110,7 @@ export const config: PluginConfigDescriptor<InfraConfig> = {
}),
alertsAndRulesDropdownEnabled: offeringBasedSchema({
traditional: schema.boolean({ defaultValue: true }),
serverless: schema.boolean({ defaultValue: false }),
serverless: schema.boolean({ defaultValue: true }),
}),
}),
}),
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/observability/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const configSchema = schema.object({
}),
thresholdRule: schema.object({
enabled: offeringBasedSchema({
serverless: schema.boolean({ defaultValue: false }),
serverless: schema.boolean({ defaultValue: true }),
traditional: schema.boolean({ defaultValue: true }),
}),
}),
Expand Down

0 comments on commit 4df1cbe

Please sign in to comment.