Skip to content

Commit

Permalink
acm aap
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzheng422 committed Nov 22, 2024
1 parent 22ebbbd commit 6684855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redhat/ocp4/4.16/2024.10.acm.aap.collect.heap.dump.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ subjects:

## using policy to enforce promethus alert rule

We now use policy to enforce promethus alert rule. Here is the promethus rule:
We now use policy to enforce promethus alert rule. Here is the promethus rule example:

```yaml
apiVersion: monitoring.coreos.com/v1
Expand All @@ -480,7 +480,7 @@ spec:
description: "Pod {{ $labels.pod }} is using more than 80% CPU for the last 5 minutes."
```

Convert it into policy
Before setting in acm, we need to convert it into policy, because by default, the acm build-in policy-template does not support promethus rule.

```yaml
apiVersion: policy.open-cluster-management.io/v1
Expand Down

0 comments on commit 6684855

Please sign in to comment.