Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The FluentdPredictedBufferGrowth alert is very sensitive #1923

Open
kingnarmer opened this issue Jan 23, 2025 · 0 comments
Open

The FluentdPredictedBufferGrowth alert is very sensitive #1923

kingnarmer opened this issue Jan 23, 2025 · 0 comments
Labels
enhancement New feature or request fluentd good first issue Good for newcomers output

Comments

@kingnarmer
Copy link

I am receiving many FluentdPredictedBufferGrowth alerts even though logs are being processed smoothly. One suggestion to fine-tune the alert rule is to add a condition that considers the current buffer value combined with a linear prediction.

Proposed updated condition:

(sum(predict_linear(fluentd_output_status_buffer_total_bytes{job="logging-operator-fluentd-metrics", namespace="cattle-logging-system"}[10m], 600)) > 
 sum(fluentd_output_status_buffer_total_bytes{job="logging-operator-fluentd-metrics", namespace="cattle-logging-system"}) * 1.5) 
and 
(sum(fluentd_output_status_buffer_total_bytes{job="logging-operator-fluentd-metrics", namespace="cattle-logging-system"}) > 10 * 1024 * 1024)

This modification adds a threshold to ensure the alert only triggers if both the predicted growth exceeds 1.5x the current buffer and the current buffer size is greater than 10 MB. This should reduce unnecessary alerts while maintaining accuracy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fluentd good first issue Good for newcomers output
Projects
None yet
Development

No branches or pull requests

2 participants