Skip to content

Commit 6fefd91

Browse files
fix rules
1 parent 616c872 commit 6fefd91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdk8s/src/monitoring/rules/resource-monitoring.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function getResourceMonitoringRuleGroups(): PrometheusRuleSpecGroups[] {
8282
summary: "Potential memory leak detected",
8383
},
8484
expr: PrometheusRuleSpecGroupsRulesExpr.fromString(
85-
"increase(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes[6h]) > 2147483648", // 2GB increase
85+
"(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) - (node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes offset 6h) > 2147483648", // 2GB increase
8686
),
8787
for: "30m",
8888
labels: { severity: "warning" },
@@ -293,7 +293,7 @@ export function getResourceMonitoringRuleGroups(): PrometheusRuleSpecGroups[] {
293293
summary: "Unusual process count detected",
294294
},
295295
expr: PrometheusRuleSpecGroupsRulesExpr.fromString(
296-
"node_procs_running > 2 * (avg_over_time(node_procs_running[7d]) by (instance))",
296+
"node_procs_running > 2 * avg_over_time(node_procs_running[7d])",
297297
),
298298
for: "10m",
299299
labels: { severity: "warning" },

0 commit comments

Comments
 (0)