Skip to content

Commit

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

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Synthetics] Show rules created in Obs Rules page !!
(#197215)](#197215)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-23T11:22:24Z","message":"[Synthetics]
Show rules created in Obs Rules page !! (#197215)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/197071\r\n\r\n---------\r\n\r\nCo-authored-by:
Christos Nasikas
<[email protected]>","sha":"9c4e67c985cf917a3664151d427a4fcdef0563d6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics]
Show rules created in Obs Rules page
!!","number":197215,"url":"https://github.com/elastic/kibana/pull/197215","mergeCommit":{"message":"[Synthetics]
Show rules created in Obs Rules page !! (#197215)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/197071\r\n\r\n---------\r\n\r\nCo-authored-by:
Christos Nasikas
<[email protected]>","sha":"9c4e67c985cf917a3664151d427a4fcdef0563d6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197215","number":197215,"mergeCommit":{"message":"[Synthetics]
Show rules created in Obs Rules page !! (#197215)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/197071\r\n\r\n---------\r\n\r\nCo-authored-by:
Christos Nasikas
<[email protected]>","sha":"9c4e67c985cf917a3664151d427a4fcdef0563d6"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <[email protected]>
  • Loading branch information
kibanamachine and shahzad31 authored Oct 23, 2024
1 parent 9cb7f7e commit 1cb79c1
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 1cb79c1

Please sign in to comment.