Skip to content

Commit f047cfb

Browse files
committed
Move more rules as recording
1 parent 0bb7f34 commit f047cfb

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

api/flowcollector/v1beta2/flowcollector_defaults.go

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,11 @@ var (
4949
DefaultHealthRules = []FLPHealthRule{
5050
{
5151
Template: HealthRulePacketDropsByKernel,
52+
Mode: ModeRecording,
5253
Variants: []HealthRuleVariant{
53-
{
54-
Mode: ptr.To(ModeRecording),
55-
Thresholds: HealthRuleThresholds{
56-
Info: "10",
57-
},
58-
LowVolumeThreshold: "5",
59-
GroupBy: GroupByNamespace,
60-
},
6154
{
6255
Thresholds: HealthRuleThresholds{
56+
Info: "10",
6357
Warning: "20",
6458
},
6559
LowVolumeThreshold: "5",
@@ -68,13 +62,8 @@ var (
6862
{
6963
Mode: ptr.To(ModeRecording),
7064
Thresholds: HealthRuleThresholds{
71-
Info: "5",
72-
},
73-
GroupBy: GroupByNode,
74-
},
75-
{
76-
Thresholds: HealthRuleThresholds{
77-
Warning: "10",
65+
Info: "5",
66+
Warning: "15",
7867
},
7968
GroupBy: GroupByNode,
8069
},
@@ -85,7 +74,8 @@ var (
8574
Variants: []HealthRuleVariant{
8675
{
8776
Thresholds: HealthRuleThresholds{
88-
Warning: "5",
77+
Info: "5",
78+
Warning: "10",
8979
},
9080
GroupBy: GroupByNode,
9181
},
@@ -96,12 +86,12 @@ var (
9686
Variants: []HealthRuleVariant{
9787
{
9888
Thresholds: HealthRuleThresholds{
99-
Critical: "2",
89+
Warning: "2",
10090
},
10191
},
10292
{
10393
Thresholds: HealthRuleThresholds{
104-
Critical: "2",
94+
Warning: "2",
10595
},
10696
GroupBy: GroupByNode,
10797
},
@@ -139,16 +129,11 @@ var (
139129
},
140130
{
141131
Template: HealthRuleNetpolDenied,
132+
Mode: ModeRecording,
142133
Variants: []HealthRuleVariant{
143-
{
144-
Mode: ptr.To(ModeRecording),
145-
Thresholds: HealthRuleThresholds{
146-
Info: "5",
147-
},
148-
GroupBy: GroupByNamespace,
149-
},
150134
{
151135
Thresholds: HealthRuleThresholds{
136+
Info: "5",
152137
Warning: "10",
153138
},
154139
GroupBy: GroupByNamespace,

0 commit comments

Comments
 (0)