Skip to content

Commit 33af984

Browse files
committed
chore: fine-tune FluentdPredictedBufferGrowth
Signed-off-by: Bence Csati <[email protected]>
1 parent 7935e02 commit 33af984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/resources/fluentd/prometheusrules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (r *Reconciler) prometheusRules() (runtime.Object, reconciler.DesiredState,
121121
},
122122
{
123123
Alert: "FluentdPredictedBufferGrowth",
124-
Expr: intstr.FromString(fmt.Sprintf("sum(predict_linear(fluentd_output_status_buffer_total_bytes{%[1]s}[10m], 600)) > sum(fluentd_output_status_buffer_total_bytes{%[1]s}) * 1.5", nsJobLabel)),
124+
Expr: intstr.FromString(fmt.Sprintf("sum(predict_linear(fluentd_output_status_buffer_total_bytes{%[1]s}[10m], 600)) > sum(fluentd_output_status_buffer_total_bytes{%[1]s}) * 1.5 and sum(fluentd_output_status_buffer_total_bytes{%[1]s}) > 10 * 1024 * 1024", nsJobLabel)),
125125
For: prometheus_operator.Duration("10m"),
126126
Labels: map[string]string{
127127
"rulegroup": ruleGroupName,

0 commit comments

Comments
 (0)