Skip to content

Commit

Permalink
[Synthetics] Show rules created in Obs Rules page !! (#197215)
Browse files Browse the repository at this point in the history
## Summary

Fixes #197071

---------

Co-authored-by: Christos Nasikas <[email protected]>
  • Loading branch information
shahzad31 and cnasikas authored Oct 23, 2024
1 parent 9349ea4 commit 9c4e67c
Show file tree
Hide file tree
Showing 3 changed files with 927 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/kbn-rule-data-utils/src/rule_types/o11y_rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ export enum ApmRuleType {
TransactionDuration = 'apm.transaction_duration',
Anomaly = 'apm.anomaly',
}

export const SYNTHETICS_STATUS_RULE = 'xpack.synthetics.alerts.monitorStatus';
export const SYNTHETICS_TLS_RULE = 'xpack.synthetics.alerts.tls';
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import {
METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID,
OBSERVABILITY_THRESHOLD_RULE_TYPE_ID,
SLO_BURN_RATE_RULE_TYPE_ID,
SYNTHETICS_STATUS_RULE,
SYNTHETICS_TLS_RULE,
} from '@kbn/rule-data-utils';
import { RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server';
import { SharePluginSetup } from '@kbn/share-plugin/server';
Expand Down Expand Up @@ -83,6 +85,8 @@ const o11yRuleTypes = [
ML_ANOMALY_DETECTION_RULE_TYPE_ID,
METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID,
...Object.values(ApmRuleType),
SYNTHETICS_STATUS_RULE,
SYNTHETICS_TLS_RULE,
];

export class ObservabilityPlugin implements Plugin<ObservabilityPluginSetup> {
Expand Down
Loading

0 comments on commit 9c4e67c

Please sign in to comment.