Skip to content

Commit e0ded14

Browse files
ahmatarokkk
authored andcommitted
Fluentd prometheus buffer prediction alert
1 parent 21358c8 commit e0ded14

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/resources/fluentd/prometheusrules.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ func (r *Reconciler) prometheusRules() (runtime.Object, reconciler.DesiredState,
139139
"description": `Fluentd buffer size capacity is {{ "{{ $value }}" }}% `,
140140
},
141141
},
142+
{
143+
Alert: "FluentdPredictedBufferGrowth",
144+
Expr: intstr.FromString(fmt.Sprintf("predict_linear(fluentd_output_status_buffer_total_bytes{%s}[10m], 600) > fluentd_output_status_buffer_total_bytes{%s}", nsJobLabel, nsJobLabel)),
145+
For: "10m",
146+
Labels: map[string]string{
147+
"service": "fluentd",
148+
"severity": "warning",
149+
},
150+
Annotations: map[string]string{
151+
"summary": `Fluentd buffer size prediction warning`,
152+
"description": `Fluentd buffer trending watcher`,
153+
},
154+
},
142155
},
143156
},
144157
}

0 commit comments

Comments
 (0)