Skip to content

Commit

Permalink
Merge pull request #266 from stackrox/master
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jul 7, 2024
2 parents cff4946 + 12c3dfa commit f2e3fdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_METHOD: merge
MERGE_FILTER_AUTHOR: github-actions[bot]
MERGE_FORKS: false
MERGE_REQUIRED_APPROVALS: 1
UPDATE_METHOD: rebase
13 changes: 1 addition & 12 deletions resources/prometheus/prometheus-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -780,18 +780,7 @@ for the cluster autoscaler. Limits can be adjusted by modifying the cluster auto
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-cloud-service/runbooks/-/blob/master/sops/dp-043-selinux-violation.md"
- alert: ClusterAuditNetworkPolicyViolations
expr: |
network_policy_denials_sample_count > 0
for: 10m
labels:
severity: info
annotations:
summary: "Network Policy Violations occuring on cluster."
description: |
A cluster node logged Network Policy ACL denial(s) for 10 minutes.
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-cloud-service/runbooks/-/blob/master/sops/dp-044-network-policy-violation.md"
- alert: ClusterAuditNetworkPolicyViolations
expr: |
network_policy_denials_sample_count >= 15
network_policy_denials_sample_count >= 25
for: 1m
labels:
severity: info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tests:
- interval: 1m
input_series:
- series: network_policy_denials_sample_count{namespace="rhacs-cloudwatch"}
values: "15x1"
values: "25x1"
alert_rule_test:
- eval_time: 70s
alertname: ClusterAuditNetworkPolicyViolations
Expand All @@ -19,25 +19,7 @@ tests:
exp_annotations:
summary: "Network Policy Violations occuring on cluster."
description: |
A cluster node logged at least 15 Network Policy ACL denial(s) per minute.
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-cloud-service/runbooks/-/blob/master/sops/dp-044-network-policy-violation.md"

- interval: 1m
input_series:
- series: network_policy_denials_sample_count{namespace="rhacs-cloudwatch"}
values: "1x10"
alert_rule_test:
- eval_time: 610s
alertname: ClusterAuditNetworkPolicyViolations
exp_alerts:
- exp_labels:
alertname: ClusterAuditNetworkPolicyViolations
namespace: rhacs-cloudwatch
severity: info
exp_annotations:
summary: "Network Policy Violations occuring on cluster."
description: |
A cluster node logged Network Policy ACL denial(s) for 10 minutes.
A cluster node logged at least 25 Network Policy ACL denial(s) per minute.
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-cloud-service/runbooks/-/blob/master/sops/dp-044-network-policy-violation.md"

- interval: 1m
Expand All @@ -52,7 +34,7 @@ tests:
- interval: 1m
input_series:
- series: network_policy_denials_sample_count{namespace="rhacs-cloudwatch"}
values: "14x1"
values: "24x1"
alert_rule_test:
- eval_time: 70s
alertname: ClusterAuditNetworkPolicyViolations
Expand Down

0 comments on commit f2e3fdd

Please sign in to comment.